Skip to content

Bikram-ghuku/shapes

Repository files navigation

Shapes

Github Top Language Github release Github License Github Workflow tests Codecov result

Shapes library

Bored of defining constants and using formula for finding area and perimeter of shape??

Download our shapes library and use it in your code for easy calculation of area and perimeter

Provided an example for your help:

To build the library

Clone the repo

git clone https://github.com/Bikram-ghuku/shapes.git && cd shapes

Build the library

pip install -r requirements.txt
python setup.py sdist bdist_wheel

Installing the library

Install using pip

pip install GeometricShapes

Install the repo from wheel

cd dist && pip install GeometricShapes-0.1.0-py3-none-any.whl

Supported shapes:

Shapes Supported Functions
Rectangle Area, Perimeter
Square Area, Perimeter
Circle Area, Perimeter
Triangle Area, Perimeter
Ellipse Area, Perimeter
Sphere Area, Volume
Cylinder Total Surface area, Lateral surface area, Volume

Feel free to fork the repo and create pull request to fix error and/or new feature. :)