Python Geometry
Install
pip install simple-geometry
Features
- Create simple shapes
- axis-aligned rectangles
- axis-aligned path segments
- groups containing other shapes
- Manipulate shapes
- stretch align
- translation align
- Visualize shapes
Read more in the full documentation.
Example
# Create some shapes
from geometry import Rect
big = Rect[100, 100, 'blue']
small = Rect[50, 50, 'red']
# Translate relatively
small.translate(center=big.top_right)
# Some topology
tiny = big.intersection(small).copy('green')
# Visualize them
from geometry import Canvas
c = Canvas(width=200, height=200)
c.append(big)
c.append(small)
c.append(tiny)
# This draws the shapes in jupyter notebook
c
Metadata
Release files for simple-geometry 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple-geometry-0.1.4.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_geometry-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / simple-geometry-0.1.4.tar.gz
| Download URL | simple-geometry-0.1.4.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54982f1f22124afc70a45203e5b75f8f0041220d29e4d25a974656d117b56113
|
|
BLAKE2b-256 checksum How to use checksums |
ada415313e6ecfc3a69c96fce443a126d9620fbe0f494ff6532bb1ad4d826fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Release files / simple_geometry-0.1.4-py3-none-any.whl
| Download URL | simple_geometry-0.1.4-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c19583850da210f6a96ef04933d3432f7ebc1b0e988c2653b0d287126af8c27
|
|
BLAKE2b-256 checksum How to use checksums |
81bf13e54c65589d77d1718e40fab3a5369b0a487e7376fb45f4e0490734fd41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|