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.0.7.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.0.7.tar.gz.
File metadata
- Download URL: geometool-0.0.7.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 |
0487a52eb9dc8be897c79ec2665415a69cf0fefb74960d2e9bef44ee59cb9768
|
|
| MD5 |
82954923a605af476a47af4ea33b27b3
|
|
| BLAKE2b-256 |
19fc6f538b5a5598c474ddf73550b9fd936c240b97b4cebf85ea66f634117dca
|
File details
Details for the file geometool-0.0.7-py3-none-any.whl.
File metadata
- Download URL: geometool-0.0.7-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 |
8ab92608807a0ff6cf9ce2ab65ddfafdd2fa35c2f9130ee970eb3d76b606fc1d
|
|
| MD5 |
6bc58581d862e510db3d201f0425c7f4
|
|
| BLAKE2b-256 |
da9de3a0a819faa7fddcddce3250c62e6bb0b419b66117f5cb7919ab9220b5b8
|