metafold 0.8.dev2__tar.gz → 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {metafold-0.8.dev2 → metafold-0.9.0}/PKG-INFO +3 -3
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/assets.py +2 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/func_types.py +9 -9
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold.egg-info/PKG-INFO +3 -3
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold.egg-info/requires.txt +1 -1
- {metafold-0.8.dev2 → metafold-0.9.0}/pyproject.toml +6 -3
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_assets.py +6 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_func.py +4 -4
- {metafold-0.8.dev2 → metafold-0.9.0}/LICENSE +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/README.md +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/__init__.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/api.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/auth.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/client.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/exceptions.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/func.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/jobs.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/nx.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/projects.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/utils.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold/workflows.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold.egg-info/SOURCES.txt +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold.egg-info/dependency_links.txt +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/metafold.egg-info/top_level.txt +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/setup.cfg +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_jobs.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_projects.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_utils.py +0 -0
- {metafold-0.8.dev2 → metafold-0.9.0}/tests/test_workflows.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metafold
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Metafold SDK for Python
|
|
5
5
|
Author-email: Metafold 3D <info@metafold3d.com>
|
|
6
6
|
License: Copyright 2024 Metafold 3D
|
|
@@ -26,12 +26,12 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
26
26
|
Classifier: Programming Language :: Python :: 3.11
|
|
27
27
|
Classifier: Topic :: Scientific/Engineering
|
|
28
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
|
-
Requires-Python: >=3.
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
License-File: LICENSE
|
|
32
32
|
Requires-Dist: attrs~=23.2
|
|
33
33
|
Requires-Dist: auth0-python~=4.7
|
|
34
|
-
Requires-Dist: numpy~=1
|
|
34
|
+
Requires-Dist: numpy~=2.1
|
|
35
35
|
Requires-Dist: requests~=2.31
|
|
36
36
|
Requires-Dist: scipy~=1.11
|
|
37
37
|
Provides-Extra: docs
|
|
@@ -20,6 +20,7 @@ class Asset:
|
|
|
20
20
|
created: Asset creation datetime.
|
|
21
21
|
modified: Asset last modified datetime.
|
|
22
22
|
project_id: Project ID.
|
|
23
|
+
job_id: Job ID.
|
|
23
24
|
"""
|
|
24
25
|
id: str
|
|
25
26
|
filename: str
|
|
@@ -28,6 +29,7 @@ class Asset:
|
|
|
28
29
|
created: datetime = field(converter=asdatetime)
|
|
29
30
|
modified: datetime = field(converter=asdatetime)
|
|
30
31
|
project_id: str
|
|
32
|
+
job_id: Optional[str] = None
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
class AssetsEndpoint:
|
|
@@ -27,39 +27,39 @@ except ImportError:
|
|
|
27
27
|
|
|
28
28
|
Vec2i: TypeAlias = Union[
|
|
29
29
|
Annotated[list[int], 2],
|
|
30
|
-
"np.ndarray[Literal[2], np.dtype[np.
|
|
30
|
+
"np.ndarray[tuple[Literal[2]], np.dtype[np.int32]]",
|
|
31
31
|
]
|
|
32
32
|
Vec2f: TypeAlias = Union[
|
|
33
33
|
Annotated[list[float], 2],
|
|
34
|
-
"np.ndarray[Literal[2], np.dtype[np.
|
|
34
|
+
"np.ndarray[tuple[Literal[2]], np.dtype[np.float32]]",
|
|
35
35
|
]
|
|
36
36
|
Vec3i: TypeAlias = Union[
|
|
37
37
|
Annotated[list[int], 3],
|
|
38
|
-
"np.ndarray[Literal[3], np.dtype[np.
|
|
38
|
+
"np.ndarray[tuple[Literal[3]], np.dtype[np.int32]]",
|
|
39
39
|
]
|
|
40
40
|
Vec3f: TypeAlias = Union[
|
|
41
41
|
Annotated[list[float], 3],
|
|
42
|
-
"np.ndarray[Literal[3], np.dtype[np.
|
|
42
|
+
"np.ndarray[tuple[Literal[3]], np.dtype[np.float32]]",
|
|
43
43
|
]
|
|
44
44
|
Vec4i: TypeAlias = Union[
|
|
45
45
|
Annotated[list[int], 4],
|
|
46
|
-
"np.ndarray[Literal[4], np.dtype[np.
|
|
46
|
+
"np.ndarray[tuple[Literal[4]], np.dtype[np.int32]]",
|
|
47
47
|
]
|
|
48
48
|
Vec4f: TypeAlias = Union[
|
|
49
49
|
Annotated[list[float], 4],
|
|
50
|
-
"np.ndarray[Literal[4], np.dtype[np.
|
|
50
|
+
"np.ndarray[tuple[Literal[4]], np.dtype[np.float32]]",
|
|
51
51
|
]
|
|
52
52
|
Mat2f: TypeAlias = Union[
|
|
53
53
|
Annotated[list[float], 4],
|
|
54
|
-
"np.ndarray[tuple[Literal[2], Literal[2]], np.dtype[np.
|
|
54
|
+
"np.ndarray[tuple[Literal[2], Literal[2]], np.dtype[np.float32]]",
|
|
55
55
|
]
|
|
56
56
|
Mat3f: TypeAlias = Union[
|
|
57
57
|
Annotated[list[float], 9],
|
|
58
|
-
"np.ndarray[tuple[Literal[3], Literal[3]], np.dtype[np.
|
|
58
|
+
"np.ndarray[tuple[Literal[3], Literal[3]], np.dtype[np.float32]]",
|
|
59
59
|
]
|
|
60
60
|
Mat4f: TypeAlias = Union[
|
|
61
61
|
Annotated[list[float], 16],
|
|
62
|
-
"np.ndarray[tuple[Literal[4], Literal[4]], np.dtype[np.
|
|
62
|
+
"np.ndarray[tuple[Literal[4], Literal[4]], np.dtype[np.float32]]",
|
|
63
63
|
]
|
|
64
64
|
|
|
65
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metafold
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Metafold SDK for Python
|
|
5
5
|
Author-email: Metafold 3D <info@metafold3d.com>
|
|
6
6
|
License: Copyright 2024 Metafold 3D
|
|
@@ -26,12 +26,12 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
26
26
|
Classifier: Programming Language :: Python :: 3.11
|
|
27
27
|
Classifier: Topic :: Scientific/Engineering
|
|
28
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
|
-
Requires-Python: >=3.
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
License-File: LICENSE
|
|
32
32
|
Requires-Dist: attrs~=23.2
|
|
33
33
|
Requires-Dist: auth0-python~=4.7
|
|
34
|
-
Requires-Dist: numpy~=1
|
|
34
|
+
Requires-Dist: numpy~=2.1
|
|
35
35
|
Requires-Dist: requests~=2.31
|
|
36
36
|
Requires-Dist: scipy~=1.11
|
|
37
37
|
Provides-Extra: docs
|
|
@@ -4,21 +4,21 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "metafold"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.9.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Metafold 3D", email = "info@metafold3d.com"},
|
|
10
10
|
]
|
|
11
11
|
dependencies = [
|
|
12
12
|
"attrs~=23.2",
|
|
13
13
|
"auth0-python~=4.7",
|
|
14
|
-
"numpy~=1
|
|
14
|
+
"numpy~=2.1",
|
|
15
15
|
"requests~=2.31",
|
|
16
16
|
"scipy~=1.11",
|
|
17
17
|
]
|
|
18
18
|
readme = "README.md"
|
|
19
19
|
license = {file = "LICENSE"}
|
|
20
20
|
description = "Metafold SDK for Python"
|
|
21
|
-
requires-python = ">=3.
|
|
21
|
+
requires-python = ">=3.10"
|
|
22
22
|
keywords = ["metafold", "api", "sdk", "implicit geometry"]
|
|
23
23
|
classifiers = [
|
|
24
24
|
"Development Status :: 3 - Alpha",
|
|
@@ -59,3 +59,6 @@ networkx = [
|
|
|
59
59
|
|
|
60
60
|
[tool.setuptools]
|
|
61
61
|
packages = ["metafold"]
|
|
62
|
+
|
|
63
|
+
[tool.ruff.lint]
|
|
64
|
+
select = ["NPY201"]
|
|
@@ -25,6 +25,7 @@ asset_list = [
|
|
|
25
25
|
"created": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
26
26
|
"modified": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
27
27
|
"project_id": "1",
|
|
28
|
+
"job_id": None,
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
"id": "2",
|
|
@@ -34,6 +35,7 @@ asset_list = [
|
|
|
34
35
|
"created": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
35
36
|
"modified": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
36
37
|
"project_id": "1",
|
|
38
|
+
"job_id": None,
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
41
|
"id": "1",
|
|
@@ -43,6 +45,7 @@ asset_list = [
|
|
|
43
45
|
"created": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
44
46
|
"modified": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
45
47
|
"project_id": "1",
|
|
48
|
+
"job_id": None,
|
|
46
49
|
},
|
|
47
50
|
]
|
|
48
51
|
|
|
@@ -54,6 +57,7 @@ new_asset = {
|
|
|
54
57
|
"created": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
55
58
|
"modified": "Mon, 01 Jan 2024 00:00:00 GMT",
|
|
56
59
|
"project_id": "1",
|
|
60
|
+
"job_id": None,
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
|
|
@@ -154,6 +158,7 @@ def test_get_asset(client):
|
|
|
154
158
|
created=default_dt,
|
|
155
159
|
modified=default_dt,
|
|
156
160
|
project_id="1",
|
|
161
|
+
job_id=None,
|
|
157
162
|
)
|
|
158
163
|
|
|
159
164
|
|
|
@@ -174,6 +179,7 @@ def test_create_asset(client):
|
|
|
174
179
|
created=default_dt,
|
|
175
180
|
modified=default_dt,
|
|
176
181
|
project_id="1",
|
|
182
|
+
job_id=None,
|
|
177
183
|
)
|
|
178
184
|
|
|
179
185
|
|
|
@@ -77,7 +77,7 @@ def test_build_graph_json():
|
|
|
77
77
|
Redistance(
|
|
78
78
|
CSGIntersect(
|
|
79
79
|
SampleSurfaceLattice(source, gyroidParams),
|
|
80
|
-
EllipsoidPrimitive(source, {"size":
|
|
80
|
+
EllipsoidPrimitive(source, {"size": [1.0, 1.0, 1.0]}),
|
|
81
81
|
),
|
|
82
82
|
),
|
|
83
83
|
)
|
|
@@ -91,7 +91,7 @@ def test_build_graph_json():
|
|
|
91
91
|
Redistance(
|
|
92
92
|
CSGIntersect(
|
|
93
93
|
SampleSurfaceLattice(PointSource, gyroidParams),
|
|
94
|
-
EllipsoidPrimitive(PointSource, {"size":
|
|
94
|
+
EllipsoidPrimitive(PointSource, {"size": [1.0, 1.0, 1.0]}),
|
|
95
95
|
),
|
|
96
96
|
),
|
|
97
97
|
)
|
|
@@ -184,7 +184,7 @@ def test_build_nx_graph():
|
|
|
184
184
|
Redistance(
|
|
185
185
|
CSGIntersect(
|
|
186
186
|
SampleSurfaceLattice(source, gyroidParams),
|
|
187
|
-
EllipsoidPrimitive(source, {"size":
|
|
187
|
+
EllipsoidPrimitive(source, {"size": [1.0, 1.0, 1.0]}),
|
|
188
188
|
),
|
|
189
189
|
),
|
|
190
190
|
)
|
|
@@ -201,7 +201,7 @@ def test_build_nx_graph():
|
|
|
201
201
|
Redistance(
|
|
202
202
|
CSGIntersect(
|
|
203
203
|
SampleSurfaceLattice(PointSource, gyroidParams),
|
|
204
|
-
EllipsoidPrimitive(PointSource, {"size":
|
|
204
|
+
EllipsoidPrimitive(PointSource, {"size": [1.0, 1.0, 1.0]}),
|
|
205
205
|
),
|
|
206
206
|
),
|
|
207
207
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|