Skip to main content

A two-dimensional geometry library for humans.

Project description

twod - A Two-Dimensional Geometry Library for Humans™

version pytest license monthly-downloads Code style: black

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 Exmaples

from twod import Point

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twod-0.3.1.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twod-0.3.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

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

Hashes for twod-0.3.1.tar.gz
Algorithm Hash digest
SHA256 540e234e5fa01a9a8765c95a2081232257c3ca3abd3ac738ea57c9664a03c715
MD5 64245b071b6af433de98330883c31e75
BLAKE2b-256 5369a45e6336e7b5732c8026940d1a5d06772b93cc54d7f234135beba94e66db

See more details on using hashes here.

Provenance

The following attestation bundles were made for twod-0.3.1.tar.gz:

Publisher: release.yaml on JnyJny/twod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for twod-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5e90d25d86f93f9ef9b43ced928c4a279e5658c974dc746e15e6756528050c
MD5 f52fe217c699fa8a7bc37fecac7bfd22
BLAKE2b-256 54f4b494e65f69de34779f227b5a7b55afb0a6ef4dc8d2db355624b603d7b5ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for twod-0.3.1-py3-none-any.whl:

Publisher: release.yaml on JnyJny/twod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page