Skip to main content

A Python package providing geometric formulas for 2D shapes and 3D solid figures

Project description

Geometry Toolkit

geometry_toolkit-hvj is a lightweight and comprehensive Python package designed to perform geometric calculations for both 2D shapes and 3D solid figures. It is ideal for students, developers, and professionals who work with geometry-related computations.

Features

Supports 49+ geometric formulas

Covers 2D shapes (triangle, square, circle, rhombus, trapezium, etc.)

Covers 3D solids (cube, cuboid, cylinder, cone, sphere, hemisphere, frustum)

Clean and simple function-based API

Beginner-friendly and easy to integrate in any project

Installation

Install the package using pip:

pip install geometry-toolkit-hvj

Usage Example

for single import

from geometry_toolkit import rectangle_area

print(rectangle_area(4,5)) #20

for multiple import

from geometry_toolkit import ( rectangle_area, rectangle_perimeter, rectangle_diagonal, square_area, square_perimeter, square_diagonal, circle_area, circle_circumference )

when we want to import all

from geometry_toolkit import *

print(rectangle_area(5, 3)) # 15

print(square_perimeter(4)) # 16

print(circle_area(3)) # 28.27

print(circle_circumference(3)) # 18.85

Supported Functions

  1. Rectangle

    rectangle_area

    rectangle_perimeter

    rectangle_diagonal

  2. Square

    square_area

    square_perimeter

    square_diagonal

  3. Triangle

    triangle_area_simple

    triangle_area_herons

    triangle_perimeter

  4. Equilateral Triangle

    equiletral_triangle_area

    equiletral_triangle_perimeter

    equiletral_triangle_height

  5. Parallelogram

    parellelogram_area

    parellelogram_perimeter

  6. Rhombus

    rhombus_area_diagonal

    rhombus_area_height

    rhombus_perimeter

  7. Trapezium

    trapezium_area

  8. Circle

    circle_area

    circle_circumference

    arc_length

    sector_area

  9. Semicircle

    semicircle_area

    semicircle_perimeter

3D Shapes

  1. Cube

    cube_volume

    cube_tsa

    cube_lsa

    cube_diagonal

  2. Cuboid

    cuboid_volume

    cuboid_tsa

    cuboid_lsa

    cuboid_diagonal

  3. Cylinder

    cylinder_volume

    cylinder_csa

    cylinder_tsa

  4. Cone

    cone_slant_height

    cone_volume

    cone_csa

    cone_tsa

  5. Sphere

    sphere_volume

    sphere_surface_area

  6. Hemisphere

    hemisphere_volume

    hemisphere_csa

    hemisphere_tsa

  7. Frustum of a Cone

    frustum_slant_height

    frustum_volume

    frustum_csa

    frustum_tsa

Cotributing

Contributions, issues, and feature requests are welcome.

Feel free to submit a pull request or open an issue on the repository.

License

This project is released under the MIT License.# geometry_toolkit

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

geometry_toolkit_hvj-1.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

geometry_toolkit_hvj-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file geometry_toolkit_hvj-1.0.1.tar.gz.

File metadata

  • Download URL: geometry_toolkit_hvj-1.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for geometry_toolkit_hvj-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e07de409d8b3b68d4efa492e38ec2b9c61b0e94e66b0ed96bf7dc67ff11995c0
MD5 89fc46c35754cbf5c4f27cbf6d449e09
BLAKE2b-256 75a14758af8beaf25fa1b6c31233af16b40f3a1acc0d879df344165136b7f092

See more details on using hashes here.

File details

Details for the file geometry_toolkit_hvj-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for geometry_toolkit_hvj-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90ecb927a3dd1e13541bf32edf1c99e7cae081cec2ffba21a5cc44feed44f1ce
MD5 85f0e72857cec21be0e0f8d798f8a5cd
BLAKE2b-256 e81b2d4f02b2b411137ef04740d67b268fd07f9ccc09e0d0e9299aaf2b243422

See more details on using hashes here.

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