A two-dimensional geometry library for humans.
Project description
twod - A Two-Dimensional Geometry Library for Humans™
twod (pronounced "two dee") is a geometry library that supplies simple two-dimensional geometric primtives:
twod.Pointtwod.Rect
Install
Installing twod is a snap!
$ python3 -m pip install -U twod
Development Workflow
$ git clone https://github.com/JnyJny/twod.git
$ cd twod
$ poetry shell
...
(twod-...) $
Usage Exmaples
from twod import Point
o = Point()
b = Point.from_polar(10, 0)
assert b.distance(o) == 10.0
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 Distribution
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 twod-0.3.1.tar.gz.
File metadata
- Download URL: twod-0.3.1.tar.gz
- Upload date:
- Size: 44.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540e234e5fa01a9a8765c95a2081232257c3ca3abd3ac738ea57c9664a03c715
|
|
| MD5 |
64245b071b6af433de98330883c31e75
|
|
| BLAKE2b-256 |
5369a45e6336e7b5732c8026940d1a5d06772b93cc54d7f234135beba94e66db
|
Provenance
The following attestation bundles were made for twod-0.3.1.tar.gz:
Publisher:
release.yaml on JnyJny/twod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twod-0.3.1.tar.gz -
Subject digest:
540e234e5fa01a9a8765c95a2081232257c3ca3abd3ac738ea57c9664a03c715 - Sigstore transparency entry: 219351920
- Sigstore integration time:
-
Permalink:
JnyJny/twod@e6839c92f42a8f45e594602b7979f8b07a9eabbd -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/JnyJny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e6839c92f42a8f45e594602b7979f8b07a9eabbd -
Trigger Event:
push
-
Statement type:
File details
Details for the file twod-0.3.1-py3-none-any.whl.
File metadata
- Download URL: twod-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5e90d25d86f93f9ef9b43ced928c4a279e5658c974dc746e15e6756528050c
|
|
| MD5 |
f52fe217c699fa8a7bc37fecac7bfd22
|
|
| BLAKE2b-256 |
54f4b494e65f69de34779f227b5a7b55afb0a6ef4dc8d2db355624b603d7b5ca
|
Provenance
The following attestation bundles were made for twod-0.3.1-py3-none-any.whl:
Publisher:
release.yaml on JnyJny/twod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twod-0.3.1-py3-none-any.whl -
Subject digest:
3c5e90d25d86f93f9ef9b43ced928c4a279e5658c974dc746e15e6756528050c - Sigstore transparency entry: 219351923
- Sigstore integration time:
-
Permalink:
JnyJny/twod@e6839c92f42a8f45e594602b7979f8b07a9eabbd -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/JnyJny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e6839c92f42a8f45e594602b7979f8b07a9eabbd -
Trigger Event:
push
-
Statement type: