Randomized algorithm for trapezoidal decomposition by R. Seidel.
Project description
seidel
In what follows python is an alias for python3.5 or any later
version (python3.6 and so on).
Installation
Install the latest pip & setuptools packages versions:
python -m pip install --upgrade pip setuptools
User
Download and install the latest stable version from PyPI repository:
python -m pip install --upgrade seidel
Developer
Download the latest version from GitHub repository
git clone https://github.com/lycantropos/seidel.git
cd seidel
Install dependencies:
python -m pip install --force-reinstall -r requirements.txt
Install:
python setup.py install
Usage
>>> from seidel.point import Point
>>> square = [Point(0, 0), Point(2, 0), Point(2, 2), Point(0, 2)]
>>> from seidel.trapezoidal_map import build_graph
>>> graph = build_graph(square, shuffle=True)
>>> node = graph.search_point(Point(1, 1))
>>> from seidel.leaf import Leaf
>>> isinstance(node, Leaf)
True
>>> trapezoid = node.trapezoid
>>> [trapezoid.below.left, trapezoid.below.right,
... trapezoid.above.right, trapezoid.above.left] == square
True
original C++ implementation can be invoked by importing from _seidel module instead.
Development
Bumping version
Preparation
Install bump2version.
Pre-release
Choose which version number category to bump following semver specification.
Test bumping version
bump2version --dry-run --verbose $CATEGORY
where $CATEGORY is the target version number category name, possible
values are patch/minor/major.
Bump version
bump2version --verbose $CATEGORY
This will set version to major.minor.patch-alpha.
Release
Test bumping version
bump2version --dry-run --verbose release
Bump version
bump2version --verbose release
This will set version to major.minor.patch.
Running tests
Install dependencies:
python -m pip install --force-reinstall -r requirements-tests.txt
Plain
pytest
Inside Docker container:
docker-compose up
Bash script (e.g. can be used in Git hooks):
./run-tests.sh
PowerShell script (e.g. can be used in Git hooks):
.\run-tests.ps1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seidel-0.0.2.tar.gz.
File metadata
- Download URL: seidel-0.0.2.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea64534d06e7a34e10f4030ba698cb4c40ecb651710b140789ae589ee6d9220
|
|
| MD5 |
fefe1d3ccaaa456daad0faf9679db47c
|
|
| BLAKE2b-256 |
8792f645f585bb1853cae4df7a26109d242d55f1feb28ffabd341c2e5f291d81
|
File details
Details for the file seidel-0.0.2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: seidel-0.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 112.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3baa9971e95bbc2439bc03aec54be74513127296c3f28d2caf6ae60eb7ce6f4b
|
|
| MD5 |
fb550b857fc4c7c395ebba97c42d6485
|
|
| BLAKE2b-256 |
ae9a02ee53bbc609db5d227839a2a8a669a2c269085c4b4fdbd01e145b68de58
|
File details
Details for the file seidel-0.0.2-cp38-cp38-win32.whl.
File metadata
- Download URL: seidel-0.0.2-cp38-cp38-win32.whl
- Upload date:
- Size: 100.1 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
448651f05d447948b8ec70ef198838bf8bc64ac778f76e0d1b2ddaa6c719eb37
|
|
| MD5 |
f87c1369586495b35a3863c7886a8443
|
|
| BLAKE2b-256 |
560e423e4fddd75cf747f2586a1310765b1b8063ae4d22523971e9b47fc3fef1
|
File details
Details for the file seidel-0.0.2-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0770b787c1dca3593ec86616e543dca31953866d6dbdfdba43aeb72865b7c0f
|
|
| MD5 |
bdf40050340b5645a665e7d577a52d82
|
|
| BLAKE2b-256 |
23bfdafcc8928d8bb34671520e55128b68febdbd4e6cf8262b9e2be420253834
|
File details
Details for the file seidel-0.0.2-cp38-cp38-manylinux2010_i686.whl.
File metadata
- Download URL: seidel-0.0.2-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b48d3628fa77db471473470fd22afe91e150ac10ffc3e415e9789f79e1ecc94
|
|
| MD5 |
e71e011ebc81cf3e1fadfdcc6ba9f045
|
|
| BLAKE2b-256 |
63f56f4fb74bfd9bdea95a41164f664905549b10b5550274988ef13254580232
|
File details
Details for the file seidel-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 168.5 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8350083d16b7befaae6d5c9c636018da3167e03a597e7488454f233fa8e62d3d
|
|
| MD5 |
d24e1dcf443871ebc5c4faad3bfc4c6a
|
|
| BLAKE2b-256 |
ccd08d5bc9c7fe98ca207d1cebbd4a6b7bf03c9059d15108e54d86b199541745
|
File details
Details for the file seidel-0.0.2-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: seidel-0.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ea592576043fa165d317ef3b486ba91622cce81c59fac691255560a2235c513
|
|
| MD5 |
a3d89bd2c4e1988ef147bc51a8e8672f
|
|
| BLAKE2b-256 |
f5bc72513bd8e0c667f7b4ea5c5e2361eacc6191a6752b29ed0e96e22d30e5dc
|
File details
Details for the file seidel-0.0.2-cp37-cp37m-win32.whl.
File metadata
- Download URL: seidel-0.0.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 100.7 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c5dac0a5ad73dbf750c958d95d3fa59983a348d85f0e7b7764fabad389c14f6
|
|
| MD5 |
3489ee7a32baaa7ad1055d909b748e67
|
|
| BLAKE2b-256 |
842f94a1a42b889a41b6ee5dc03697e13203d8990580080547d0cdb6f3b95f07
|
File details
Details for the file seidel-0.0.2-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa55e91cc4205f164b31a129bdd7192663045377658728ee8a03e262de33a431
|
|
| MD5 |
ebad1365b030d55b4c18ed69a43df54b
|
|
| BLAKE2b-256 |
0da080d05229741e5110a76ab35a0f316980a8e4a8c4f56ecb87f37564ea7753
|
File details
Details for the file seidel-0.0.2-cp37-cp37m-manylinux2010_i686.whl.
File metadata
- Download URL: seidel-0.0.2-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9227e0bee2c38af3b148483c5922be8020b78e414920fae8148091dcac9b5dfe
|
|
| MD5 |
d168743af00841846b699f5ebb5f7797
|
|
| BLAKE2b-256 |
745ebbea8f231372e0dc4656bf2fcf459a8a827e66bb2ea9029aadf26c552aa9
|
File details
Details for the file seidel-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 165.2 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45ca64131322a4c8991431ce097eaa124e74c334c3f9f53f65fcf91ca969452d
|
|
| MD5 |
59e48183b45deda157b50da04af08c75
|
|
| BLAKE2b-256 |
8f9b89729744d2945f7ff5ca7a39cdcec4f6139854983c46e381f77e482f6527
|
File details
Details for the file seidel-0.0.2-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: seidel-0.0.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 110.6 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b9f95fff65a64f01372b0c33b3deb8601c4ed138c2073c8f6de6eb548585e59
|
|
| MD5 |
96298044ed69f9f5f30e45f70c3a14f3
|
|
| BLAKE2b-256 |
2bcb93869db593b5097330deb3e194b380fe0718d1a7b3acc24690d32035d324
|
File details
Details for the file seidel-0.0.2-cp36-cp36m-win32.whl.
File metadata
- Download URL: seidel-0.0.2-cp36-cp36m-win32.whl
- Upload date:
- Size: 100.4 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ff855152713f422d52bb6dfeb80cead2ebf416fa6dfa4e909551519cca62ed
|
|
| MD5 |
3f33222e4362f76f4e6b1ef9fcc4aaff
|
|
| BLAKE2b-256 |
491b7ea81153a0b4296fb0b363beaec679c43ba82496698257854b982d6f2a2e
|
File details
Details for the file seidel-0.0.2-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f330b7f69aa10eaa122ab63ed209a4dc71754bc377df6a2e7057cca9b69cf7
|
|
| MD5 |
c4b597a81d5a81cfcba25f6a4252adb5
|
|
| BLAKE2b-256 |
a0af6097d7c5915dfea093a55427b295476611c094900f9205c7ad5a47c2b422
|
File details
Details for the file seidel-0.0.2-cp36-cp36m-manylinux2010_i686.whl.
File metadata
- Download URL: seidel-0.0.2-cp36-cp36m-manylinux2010_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d6c78560fc286754549e3fd44bebd532d3438ce24e7635d53bada3c5c1581a0
|
|
| MD5 |
bfa0b2308b03337d4ea4dff6972fe34b
|
|
| BLAKE2b-256 |
4cd39633fcfd55d53304b2b2f5eb2013439aded3f6a9645431a6de16a5e4173f
|
File details
Details for the file seidel-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 164.9 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c0b22b35219ad5df63d25a542a921b940e32555b4be5c3977efe10ccfb21b4
|
|
| MD5 |
f71cf2aa7a42ed7c0a3ce56528727309
|
|
| BLAKE2b-256 |
a8a6ca73c06757b46583f77ab4d0c5d5d3c0863f668638584ae1f42017fb42b2
|
File details
Details for the file seidel-0.0.2-cp35-cp35m-win_amd64.whl.
File metadata
- Download URL: seidel-0.0.2-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 110.6 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8392bc8d173afcb9fd5a6afa7c631c4f396cee92d7839008b10de230e25b665
|
|
| MD5 |
b04664637499f16b72f0840b18344cdd
|
|
| BLAKE2b-256 |
7ec6340c36cb56468393d2d007f8a851f14e16f4073a48244a499aebcc1e0574
|
File details
Details for the file seidel-0.0.2-cp35-cp35m-win32.whl.
File metadata
- Download URL: seidel-0.0.2-cp35-cp35m-win32.whl
- Upload date:
- Size: 100.4 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a11d0b909ebe83d03252e86d36c3de043dff4173b54a511a507481b3484e448
|
|
| MD5 |
2906052f8eaf56f91596495507f01d35
|
|
| BLAKE2b-256 |
e587390e5330eb16c14a431c5de0ea4d970b541fac326c1c252ec8c4bd7aa9ce
|
File details
Details for the file seidel-0.0.2-cp35-cp35m-manylinux2010_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37cb727ff86dd36eba7ca4d2aeec39f56642f69ebbef5c71d4bb8b144663bee2
|
|
| MD5 |
ecc00140a6a376639acbcdf56979de5b
|
|
| BLAKE2b-256 |
143800ea1d9b4c0603117578d67cb9378c6e42396cebc83eb2cc96a1451e1b40
|
File details
Details for the file seidel-0.0.2-cp35-cp35m-manylinux2010_i686.whl.
File metadata
- Download URL: seidel-0.0.2-cp35-cp35m-manylinux2010_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a37f5c2917969b422dfecb17304797ed7d4e651197f88995e90212e48a27bb17
|
|
| MD5 |
220fe76047842307df9eee7db4756c37
|
|
| BLAKE2b-256 |
4d1a87571aa715f90f5f29219674a39946f7f04c472ee07ca5aaee4d25f3cb62
|
File details
Details for the file seidel-0.0.2-cp35-cp35m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: seidel-0.0.2-cp35-cp35m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 164.8 kB
- Tags: CPython 3.5m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4ec57f0105686a87c019c51218b64a4eece90b6a78dbaab1cacf6185dd9be19
|
|
| MD5 |
13ecaa0378ed286df7b9d6a6b4022099
|
|
| BLAKE2b-256 |
f3e53c53d14ed86b0ab133ccf4108d290d16d82edf1cf3f9be7b3c517d2ddf89
|