A Python package providing geometric formulas for 2D shapes and 3D solid figures
Project description
Geometry Toolkit
geometry_toolkit 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
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
-
Rectangle
rectangle_area
rectangle_perimeter
rectangle_diagonal
-
Square
square_area
square_perimeter
square_diagonal
-
Triangle
triangle_area_simple
triangle_area_herons
triangle_perimeter
-
Equilateral Triangle
equiletral_triangle_area
equiletral_triangle_perimeter
equiletral_triangle_height
-
Parallelogram
parellelogram_area
parellelogram_perimeter
-
Rhombus
rhombus_area_diagonal
rhombus_area_height
rhombus_perimeter
-
Trapezium
trapezium_area
-
Circle
circle_area
circle_circumference
arc_length
sector_area
-
Semicircle
semicircle_area
semicircle_perimeter
3D Shapes
-
Cube
cube_volume
cube_tsa
cube_lsa
cube_diagonal
-
Cuboid
cuboid_volume
cuboid_tsa
cuboid_lsa
cuboid_diagonal
-
Cylinder
cylinder_volume
cylinder_csa
cylinder_tsa
-
Cone
cone_slant_height
cone_volume
cone_csa
cone_tsa
-
Sphere
sphere_volume
sphere_surface_area
-
Hemisphere
hemisphere_volume
hemisphere_csa
hemisphere_tsa
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geometry_toolkit_hvj-1.0.0.tar.gz.
File metadata
- Download URL: geometry_toolkit_hvj-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47af4b6eefe0dedcddbb823856950239f07a9b05407bbcfb8d460dd4794a8825
|
|
| MD5 |
3803b5342ce6d568bb1d65611c235041
|
|
| BLAKE2b-256 |
48a121bb22c464e5c3cc594f718d4a7df44af879872e738f7f8a156d7b414d5b
|
File details
Details for the file geometry_toolkit_hvj-1.0.0-py3-none-any.whl.
File metadata
- Download URL: geometry_toolkit_hvj-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b5be23851d8826350bf31c7ca4fb2d527aa9b89e5694403e95c2d95da3032e
|
|
| MD5 |
fcfda985ca31c99d79d1ac69fd7864cc
|
|
| BLAKE2b-256 |
b8c88d7926f99e5f178eca28af54ffa0a664d9af03d9a750baf85bc488793387
|