Skip to main content

twod - A Two-Dimensional Geometry Library for Humans™

Test & Publish Version Release Date Python Version License Code Style: ruff Monthly Downloads

twod (pronounced "two dee") is a geometry library that supplies simple two-dimensional geometric primtives:

  • twod.Point
  • twod.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 Examples

from twod import Point

o = Point()
b = Point.from_polar(10, 0)
assert b.distance(o) == 10.0

Metadata

Release files for twod 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twod 0.4.0
File Size Uploaded Provenance Actions
twod-0.4.0.tar.gz 828.9 kB With provenance Details for twod-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for twod 0.4.0
File Interpreter ABI Platform Actions
twod-0.4.0-py3-none-any.whl Python 3 none any Details for twod-0.4.0-py3-none-any.whl

Total release size: 853.1 kB

Release files / twod-0.4.0.tar.gz

Download URL twod-0.4.0.tar.gz
Size 828.9 kB
Tags Source
SHA-256 checksum
How to use checksums
71ca267af8935eca8c3e0a2883154fbc69cd1812cd6122716d876f20831c29cd
BLAKE2b-256 checksum
How to use checksums
e33a00f8bad434fc2b00bbe2db8438a5ed243736360dda97183d89c00028be43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / twod-0.4.0-py3-none-any.whl

Download URL twod-0.4.0-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
426fe2bb362cfcb2ce0a061cc38d338cd1d3267e46bf35b219e61fd163e33bd4
BLAKE2b-256 checksum
How to use checksums
b38622fe6898ca336559726871a5b7fcc56fc51da425191bce27f73537a354f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for twod 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for twod-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page