JIC Geometry
Python package for basic geometry operations.
Documentation: http://jicgeometry.readthedocs.org/en/latest/
Free software: MIT License
Features
Lightweight: no dependencies outside Python’s standard library
Cross-platform: Linux, Mac and Windows are all supported
Works with with Python 2.7, 3.2, 3.3, and 3.4
Quick Guide
To install jicgeometry:
sudo pip install jicgeometry
Create some points:
>>> from jicgeometry import Point2D >>> p1 = Point2D(6, 1) >>> p2 = Point2D(3, 5)
Find the distances between two points:
>>> p1.distance(p2) 5.0
Add/subtract points from each other:
>>> p1 + p2 <Point2D(x=9, y=6, dtype=int)>
Scale points using multiplication/division:
>>> p1 / 2.0 <Point2D(x=3.00, y=0.50, dtype=float)>
Treat points as vectors:
>>> p1.unit_vector <Point2D(x=0.99, y=0.16, dtype=float)> >>> round(p1.magnitude, 4) 6.0828
History
0.6.0
Added Point3D class
0.5.0
Initial upload to PyPi
Metadata
Release files for jicgeometry 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jicgeometry-0.6.0.tar.gz | 4.4 kB | Without provenance | Details |
Release files / jicgeometry-0.6.0.tar.gz
| Download URL | jicgeometry-0.6.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f90aeefbe8f2929d068fcd7789780f70607df282fb866a7989a8d51182dc4c33
|
|
BLAKE2b-256 checksum How to use checksums |
5491f9bbb090d5d4cfef7578e4cf396c5786d92c1f74000bd2a6d25722e9caaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jicgeometry 0.6.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.