Skip to main content

Geometry Library

A simple Python library for 2D geometry, including core concepts like points, lines, circles, rectangles, and polygons, with basic operations such as calculating distance, area, and perimeter.

Features

  • Point: Represents a point in 2D space with x and y coordinates.
  • Line: Represents a line defined by two points.
  • Circle: Represents a circle defined by a center point and a radius.
  • Rectangle: Represents a rectangle defined by its top-left corner, width, and height.
  • Polygon: Represents a polygon defined by a list of points.
  • Basic operations:
    • Distance between points
    • Length of a line
    • Area and perimeter of circles, rectangles, and polygons

Installation

Assuming you have the library code in a directory named geometry_library_package with the correct structure (including setup.py), you can install it locally using pip:

Metadata

Release files for geometry-library 0.1.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 geometry-library 0.1.0
File Size Uploaded Provenance
geometry_library-0.1.0.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for geometry-library 0.1.0
File Interpreter ABI Platform
geometry_library-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / geometry_library-0.1.0.tar.gz

Download URL geometry_library-0.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ac6ac7dafb0a64e4021166a007e07552711a57f0e93bc9a7ae6edde59a84c45
BLAKE2b-256 checksum
How to use checksums
17f8abc7fdaf5782e727cd8fd3964a4615406cfe4468f3e2317e226dadea8d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / geometry_library-0.1.0-py3-none-any.whl

Download URL geometry_library-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d0aae9f8edd93b4e48842ce43a9568b9913a50edf6ff75d7db1940a5d110b20
BLAKE2b-256 checksum
How to use checksums
741e8d3a2d751ec727f9f593a99e893e0915c23e25401ece744e025c8cd6d331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for geometry-library 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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