Files
cadquery/cadquery/__init__.py

82 lines
1.5 KiB
Python
Raw Normal View History

2022-05-20 15:20:06 -04:00
from importlib.metadata import version, PackageNotFoundError
try:
version__ = version("cadquery")
except PackageNotFoundError:
# package is not installed
pass
# these items point to the OCC implementation
from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
from .occ_impl.shapes import (
Shape,
Vertex,
Edge,
Face,
Wire,
Solid,
Shell,
Compound,
sortWiresByBuildOrder,
)
2017-05-14 12:35:56 +02:00
from .occ_impl import exporters
from .occ_impl import importers
2013-04-14 18:39:47 -04:00
# these items are the common implementation
2013-04-16 22:29:06 -04:00
# the order of these matter
from .selectors import (
NearestToPointSelector,
ParallelDirSelector,
DirectionSelector,
PerpendicularDirSelector,
TypeSelector,
DirectionMinMaxSelector,
StringSyntaxSelector,
Selector,
)
from .sketch import Sketch
2020-07-28 20:33:52 +02:00
from .cq import CQ, Workplane
from .assembly import Assembly, Color, Constraint
2020-07-28 20:33:52 +02:00
from . import selectors
2019-05-20 21:27:28 +02:00
from . import plugins
2013-04-16 22:29:06 -04:00
2013-04-15 21:46:52 -04:00
2013-04-14 18:39:47 -04:00
__all__ = [
"CQ",
"Workplane",
2020-08-31 15:31:21 +02:00
"Assembly",
2020-09-06 17:45:32 +02:00
"Color",
"Constraint",
"plugins",
"selectors",
"Plane",
"BoundBox",
"Matrix",
"Vector",
"Location",
"sortWiresByBuildOrder",
"Shape",
"Vertex",
"Edge",
"Wire",
"Face",
"Solid",
"Shell",
"Compound",
"exporters",
"importers",
"NearestToPointSelector",
"ParallelDirSelector",
"DirectionSelector",
"PerpendicularDirSelector",
"TypeSelector",
"DirectionMinMaxSelector",
"StringSyntaxSelector",
"Selector",
"plugins",
"Sketch",
2013-04-14 18:39:47 -04:00
]
__version__ = "2.1"