polycubetools 1.1.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.
- polycubetools-1.1.0/LICENSE +21 -0
- polycubetools-1.1.0/PKG-INFO +44 -0
- polycubetools-1.1.0/README.md +24 -0
- polycubetools-1.1.0/pyproject.toml +58 -0
- polycubetools-1.1.0/requirements.txt +0 -0
- polycubetools-1.1.0/setup.cfg +4 -0
- polycubetools-1.1.0/setup.py +11 -0
- polycubetools-1.1.0/src/polycubetools/__init__.py +19 -0
- polycubetools-1.1.0/src/polycubetools/data/heptacubes.json +945197 -0
- polycubetools-1.1.0/src/polycubetools/data/hexacubes.json +122667 -0
- polycubetools-1.1.0/src/polycubetools/data/pentacubes.json +16167 -0
- polycubetools-1.1.0/src/polycubetools/grid.py +192 -0
- polycubetools-1.1.0/src/polycubetools/hull.py +121 -0
- polycubetools-1.1.0/src/polycubetools/models.py +172 -0
- polycubetools-1.1.0/src/polycubetools/py.typed +0 -0
- polycubetools-1.1.0/src/polycubetools/solver.py +178 -0
- polycubetools-1.1.0/src/polycubetools/utils.py +198 -0
- polycubetools-1.1.0/src/polycubetools.egg-info/PKG-INFO +44 -0
- polycubetools-1.1.0/src/polycubetools.egg-info/SOURCES.txt +24 -0
- polycubetools-1.1.0/src/polycubetools.egg-info/dependency_links.txt +1 -0
- polycubetools-1.1.0/src/polycubetools.egg-info/requires.txt +5 -0
- polycubetools-1.1.0/src/polycubetools.egg-info/top_level.txt +1 -0
- polycubetools-1.1.0/tests/test_grid.py +22 -0
- polycubetools-1.1.0/tests/test_models.py +126 -0
- polycubetools-1.1.0/tests/test_parallel_solver.py +49 -0
- polycubetools-1.1.0/tests/test_solver.py +45 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Sprylos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: polycubetools
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: Basic framework for working with polycubes in a 3-dimensional grid.
|
|
5
|
+
Author: Team Polycube
|
|
6
|
+
Classifier: Development Status :: 3 - Alpha
|
|
7
|
+
Classifier: Intended Audience :: Science/Research
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Typing :: Typed
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Provides-Extra: test
|
|
16
|
+
Requires-Dist: coverage[toml]; extra == "test"
|
|
17
|
+
Requires-Dist: pytest; extra == "test"
|
|
18
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
# polycube-framework
|
|
22
|
+
|
|
23
|
+
### Workflows
|
|
24
|
+
|
|
25
|
+
These are **only** available on github, not locally
|
|
26
|
+
|
|
27
|
+
1. lint workflow (runs automatically on PR, required for merging in main:
|
|
28
|
+
- runs pyright with the config in pyproject.toml (pyright strict)
|
|
29
|
+
- runs `black --check --line-length 120 "./src/polycubetools"`
|
|
30
|
+
2. format workflow (can be run manually)
|
|
31
|
+
- runs `black --line-length 120 "./src/polycubetools"`
|
|
32
|
+
- commits and push to the chosen branch
|
|
33
|
+
|
|
34
|
+
### Recommendations
|
|
35
|
+
|
|
36
|
+
1. PyCharm IDE
|
|
37
|
+
- EAP (EARLY ACCESS PRODUCT) version: has pyright and black tools integrated
|
|
38
|
+
- alternatively: `pip install pyright black`
|
|
39
|
+
|
|
40
|
+
### Getting started
|
|
41
|
+
|
|
42
|
+
1. Have a look at pyproject.toml
|
|
43
|
+
2. Configure a virtual environment (use python `>=3.12`)
|
|
44
|
+
3. For quick testing, feel free to create a script in `scripts/`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# polycube-framework
|
|
2
|
+
|
|
3
|
+
### Workflows
|
|
4
|
+
|
|
5
|
+
These are **only** available on github, not locally
|
|
6
|
+
|
|
7
|
+
1. lint workflow (runs automatically on PR, required for merging in main:
|
|
8
|
+
- runs pyright with the config in pyproject.toml (pyright strict)
|
|
9
|
+
- runs `black --check --line-length 120 "./src/polycubetools"`
|
|
10
|
+
2. format workflow (can be run manually)
|
|
11
|
+
- runs `black --line-length 120 "./src/polycubetools"`
|
|
12
|
+
- commits and push to the chosen branch
|
|
13
|
+
|
|
14
|
+
### Recommendations
|
|
15
|
+
|
|
16
|
+
1. PyCharm IDE
|
|
17
|
+
- EAP (EARLY ACCESS PRODUCT) version: has pyright and black tools integrated
|
|
18
|
+
- alternatively: `pip install pyright black`
|
|
19
|
+
|
|
20
|
+
### Getting started
|
|
21
|
+
|
|
22
|
+
1. Have a look at pyproject.toml
|
|
23
|
+
2. Configure a virtual environment (use python `>=3.12`)
|
|
24
|
+
3. For quick testing, feel free to create a script in `scripts/`
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "polycubetools"
|
|
7
|
+
description = "Basic framework for working with polycubes in a 3-dimensional grid."
|
|
8
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
9
|
+
license-files = ["LICENSE"]
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
authors = [{ name = "Team Polycube" }]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 3 - Alpha",
|
|
14
|
+
"Intended Audience :: Science/Research",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.12",
|
|
17
|
+
"Programming Language :: Python :: 3.13",
|
|
18
|
+
"Typing :: Typed",
|
|
19
|
+
]
|
|
20
|
+
dynamic = ["version", "dependencies"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
[tool.setuptools]
|
|
24
|
+
package-dir = { "" = "src" }
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.package-data]
|
|
27
|
+
polycubetools = ["data/*.json"]
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.packages.find]
|
|
30
|
+
where = ["src"]
|
|
31
|
+
include = ["polycubetools*"]
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.dynamic]
|
|
34
|
+
dependencies = { file = "requirements.txt" }
|
|
35
|
+
|
|
36
|
+
[project.optional-dependencies]
|
|
37
|
+
test = [
|
|
38
|
+
"coverage[toml]",
|
|
39
|
+
"pytest",
|
|
40
|
+
"pytest-cov",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[tool.pyright]
|
|
44
|
+
include = [
|
|
45
|
+
"src/polycubetools",
|
|
46
|
+
]
|
|
47
|
+
exclude = [
|
|
48
|
+
"**/__pycache__",
|
|
49
|
+
"build",
|
|
50
|
+
"dist",
|
|
51
|
+
]
|
|
52
|
+
reportUnusedImport = "error"
|
|
53
|
+
pythonVersion = "3.12"
|
|
54
|
+
typeCheckingMode = "strict"
|
|
55
|
+
|
|
56
|
+
[tool.black]
|
|
57
|
+
line-length = 120
|
|
58
|
+
target-version = ["py312", "py313"]
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Polycube Tools
|
|
3
|
+
~~~~~~~~~~~~~~~~~~~
|
|
4
|
+
|
|
5
|
+
Basic framework for working with polycubes in a 3-dimensional grid.
|
|
6
|
+
|
|
7
|
+
:license: MIT, see LICENSE for more details.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__author__ = "Team Polycube"
|
|
11
|
+
__title__ = "polycubetools"
|
|
12
|
+
__license__ = "MIT"
|
|
13
|
+
__version__ = "1.1.0"
|
|
14
|
+
|
|
15
|
+
from . import utils as utils
|
|
16
|
+
from .grid import *
|
|
17
|
+
from .hull import *
|
|
18
|
+
from .models import *
|
|
19
|
+
from .solver import *
|