A Geometric Shape Calculator Tool
Project description
Geometool - Geometric Shape Calculation Library
MB Task-1
This Python package provides functions to calculate the area and perimeter of various geometric shapes.
Installation
You can install the package using pip:
$ pip install geometool
Methods
The package provides the following functions (yet):
calculate_area(shape): Calculates the area of a given shape. Supported shapes include:- Circle(radius)
- Triangle(3 sides)
Classes
Shape
Abstract base class for geometric shapes.
Circle
calc_area()to calculate the area.
Triangle
calc_area()to calculate the areais_rightangled()to check if the triangle is right-angled.
Usage
import geometool as g
# Declare a shape object
s1 = g.Circle(5)
s2 = g.Triangle(6, 8, 9)
# Use calculate_area() to calculate the area of the object
g.calculate_area(s1)
g.calculate_area(s2)
Authors: Idris Taha
- Contact: dri.taha24@gmail.com
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
geometool-0.1.0.tar.gz
(3.2 kB
view details)
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 geometool-0.1.0.tar.gz.
File metadata
- Download URL: geometool-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a51198f5e55b3ff00dd3b897b4958179ae7f8ad496792119f91972ced5c890
|
|
| MD5 |
d8a2d29a6739d0add0bd63da0ab1e0d3
|
|
| BLAKE2b-256 |
20d339b1b420cb3f4287a0c4445b94140cd844a52bd5786eb24e06d600befde4
|
File details
Details for the file geometool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: geometool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
025c2bfa6ffeb697e07cce5abcaac92366628756ddc6446a9405a7af2824eeeb
|
|
| MD5 |
867988167beaee4e54b444effae172e4
|
|
| BLAKE2b-256 |
a9c780db062e51c54341114655355b95f7dd9b8d16999590b529fe9b3239d304
|