Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65cec8d9df | ||
|
|
c4704f4b06 | ||
|
|
cad07e6e16 | ||
|
|
82f0ac4fbd |
@@ -4,7 +4,7 @@
|
||||
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
# SCL - A Python3 STEP Class Library
|
||||
# stepcode - A Python3 STEP Library
|
||||
|
||||
SCL is a Python3-based library for parsing and manipulating ISO 10303 Part 21 ("STEP") files.
|
||||
STEPCODE Python is a Python3-based library for parsing and manipulating ISO 10303 Part 21 ("STEP") files.
|
||||
|
||||
# Use
|
||||
|
||||
To parse a ISO 10303 Part 21 file, use the `Parser` class of `SCL.Part21`. On a successful parse, the result will be a Part 21 parse tree and associated STEP instances.
|
||||
To parse a ISO 10303 Part 21 file, use the `Parser` class of `stepcode.Part21`. On a successful parse, the result will be a Part 21 parse tree and associated STEP instances.
|
||||
|
||||
See [test_parser](tests/test_parser.py) for use of the `SCL.Part21` parser with a sample STEP file.
|
||||
See [test_parser](tests/test_parser.py) for use of the `stepcode.Part21` parser with a sample STEP file.
|
||||
|
||||
|
||||
# Building
|
||||
|
||||
The SCL Python package can be built directly using [PyPA's build module](https://github.com/pypa/build). Run `python3 -m build` from this directory.
|
||||
The stepcode Python package can be built directly using [PyPA's build module](https://github.com/pypa/build). Run `python3 -m build` from this directory.
|
||||
|
||||
# Testing
|
||||
|
||||
SCL comes with a small test suite (additions welcome!) From this directory, `python3 -m unittest discover`.
|
||||
STEPCODE Python comes with a small test suite (additions welcome!) From this directory, `python3 -m unittest discover`.
|
||||
|
||||
# License
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[metadata]
|
||||
name = stepcode-scl
|
||||
version = 0.6.1
|
||||
name = stepcode
|
||||
version = 0.7.0
|
||||
author = Thomas Paviot <tpaviot@gmail.com>, Christopher HORLER (cshorler@googlemail.com), Devon Sparks (devonsparks.com)
|
||||
description = stepcode-scl is a Python3-based library for parsing and manipulating ISO 10303 Part 21 ("STEP") files.
|
||||
description = stepcode is a Python3-based library for parsing and manipulating ISO 10303 Part 21 ("STEP") files.
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
|
||||
@@ -15,7 +15,7 @@ classifiers =
|
||||
[options]
|
||||
package_dir =
|
||||
=.
|
||||
packages = SCL
|
||||
packages = stepcode
|
||||
python_requires = >=3.6
|
||||
install_requires =
|
||||
ply
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011-2012, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011-2012, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011-2012, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copyright (c) 2022, Chris Horler (cshorler@googlemail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the StepClassLibrary (SCL).
|
||||
* This file is part of the STEPCODE project.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is part of the StepClassLibrary (SCL).
|
||||
* This file is part of the STEPCODE project.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is part of the StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -32,10 +32,10 @@
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from SCL.SimpleDataTypes import *
|
||||
from SCL.TypeChecker import *
|
||||
from SCL.ConstructedDataTypes import *
|
||||
from SCL.AggregationDataTypes import *
|
||||
from stepcode.SimpleDataTypes import *
|
||||
from stepcode.TypeChecker import *
|
||||
from stepcode.ConstructedDataTypes import *
|
||||
from stepcode.AggregationDataTypes import *
|
||||
|
||||
#
|
||||
# Simple data types
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011-2012, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -32,11 +32,11 @@
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from SCL.SimpleDataTypes import *
|
||||
from SCL.TypeChecker import *
|
||||
from SCL.ConstructedDataTypes import *
|
||||
from SCL.AggregationDataTypes import *
|
||||
from SCL.Builtin import *
|
||||
from stepcode.SimpleDataTypes import *
|
||||
from stepcode.TypeChecker import *
|
||||
from stepcode.ConstructedDataTypes import *
|
||||
from stepcode.AggregationDataTypes import *
|
||||
from stepcode.Builtin import *
|
||||
|
||||
float_epsilon = 1e-8
|
||||
#
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2021, Devon Sparks (devonsparks.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -30,7 +30,7 @@
|
||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
import unittest
|
||||
from SCL.Part21 import Parser
|
||||
from stepcode.Part21 import Parser
|
||||
|
||||
ShapesSample ="""
|
||||
ISO-10303-21;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
|
||||
# All rights reserved.
|
||||
|
||||
# This file is part StepClassLibrary (SCL).
|
||||
# This file is part of the STEPCODE project.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@@ -36,11 +36,11 @@ import os
|
||||
here = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.append(os.path.join(here, "..", "..", "examples", "unitary_schemas"))
|
||||
|
||||
from SCL.SCLBase import *
|
||||
from SCL.SimpleDataTypes import *
|
||||
from SCL.ConstructedDataTypes import *
|
||||
from SCL.AggregationDataTypes import *
|
||||
from SCL.TypeChecker import check_type
|
||||
from stepcode.SCLBase import *
|
||||
from stepcode.SimpleDataTypes import *
|
||||
from stepcode.ConstructedDataTypes import *
|
||||
from stepcode.AggregationDataTypes import *
|
||||
from stepcode.TypeChecker import check_type
|
||||
|
||||
class TestSelectDataType(unittest.TestCase):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user