Skip to main content

Build Status

shape is a Python package for 2D shapes handling.

Features

  • objects:
    • abstract shape
    • point
    • polygon
    • bounding box
    • rotated bounding box
    • ellipse
  • relations: intersection, closeness
  • manipulation: move and rotate
  • visualization using matplotlib

Installation

pip install shape

Documentation

See tests for now.

Alternatives

https://github.com/varunagrawal/bbox

  • bounding box only
  • lightweight

https://github.com/shapely/shapely

  • complex
  • based on C++ GEOS library

Metadata

Release files for shape 0.1.1

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

Source distribution (sdist)

Source distribution for shape 0.1.1
File Size Uploaded
shape-0.1.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shape 0.1.1
File Interpreter ABI Platform
shape-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.7 kB

Release files / shape-0.1.1.tar.gz

Download URL shape-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc50cb2f0d637611acb48cf5426ee626be2ae7378f03e86dce4363c0cc1eae63
BLAKE2b-256 checksum
How to use checksums
a09337a1972de1553c4866653566faa0d498c0b4b2a331f7e5f748bd137b9575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.4

Release files / shape-0.1.1-py2.py3-none-any.whl

Download URL shape-0.1.1-py2.py3-none-any.whl
Size 14.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d73f8618c2628f159ddcf22a271c43c85076d18ea536a31da556ff40dac00a06
BLAKE2b-256 checksum
How to use checksums
e9dd548fce0c6f7a4c06c7ab44753bf3db782ab06545a979a994f61cc9e16acb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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