A package for calculating the area/perimeter/volume of some geometric shapes.
Project description
ShapeCal
A package for calculating the area/perimeter/volume of some geometric shapes.
Installation
pip install ShapeCal
Usage
squaresquare.area(): Takes one float and returns area as a float.square.perimeter(): Takes one float and returns perimeter as a float.
triangletriangle.area(): Takes two floats (base, height) and returns area as a float.triangle.perimeter(): Takes three floats (sideA, sideB, sideC) and returns perimeter as a float.
circlecircle.area(): Takes one float (radius) and returns area as a float.circle.perimeter(): Takes one float (radius) and returns perimeter as a float.
trapezoidtrapezoid.area(): Takes three floats (short_base, long_base, height) and returns area as a float.trapezoid.perimeter(): Takes four floats (short_base, long_base, sideA, sideB) and returns perimeter as a float.
conecone.volume(): Takes two floats (height, radius) and returns volume as a float.cone.surfaceArea(): Takes two floats (height, radius) and returns surfaceArea as a float.
cubecube.volume(): Takes one float (one float) and returns volume as a float.cube.surfaceArea(): Takes one float (one float) and returns surfaceArea as a float.
cylindercylinder.volume(): Takes two floats (height, radius) and returns volume as a float.cylinder.surfaceArea(): Takes two floats (height, radius) and returns surfaceArea as a float.
rectangularPrismrectangularPrism.volume(): Takes three floats (lenght, width, height) and returns volume as a float.rectangularPrism.surfaceArea(): Takes three floats (lenght, width, height) and returns surfaceArea as a float.
pyramidpyramid.volume(): Takes three floats (lenght, width, height) and returns volume as a float.pyramid.surfaceArea(): Takes three floats (lenght, width, height) and returns surfaceArea as a float.
spheresphere.volume(): Takes one float (radius) and returns volume as a float.sphere.surfaceArea(): Takes one float (radius) and returns surfaceArea as a float.
hemispherehemisphere.volume(): Takes one float (radius) and returns volume as a float.hemisphere.surfaceArea(): Takes one float (radius) and returns surfaceArea as a float.
frustrumfrustrum.volume(): Takes three floats (radiusTop, radiusBottom, height) and returns volume as a float.frustrum.surfaceArea(): Takes three floats (radiusTop, radiusBottom, height) and returns surfaceArea as a float.
Update Log
-
0.0.2
- Added Riposte framework and refactored code for ShapeCal.py
- Added CLI support
-
0.0.1
- Initial
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
ShapeCal-0.0.2.tar.gz
(6.1 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 ShapeCal-0.0.2.tar.gz.
File metadata
- Download URL: ShapeCal-0.0.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74141f3a04defc64093c30c6bc5794374f2e26037695ac7347c2f749934afaed
|
|
| MD5 |
a334f9b22eb45a44cfa55ce3b4fc7621
|
|
| BLAKE2b-256 |
26d5c9790007cd7d6a272b334fcc8af906cd45d320b885aee368d900826b88bb
|
File details
Details for the file ShapeCal-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ShapeCal-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c3f2e206491e85a879cb98fb1306eb1955fa35c8fb3a7a3e780b7320cc45e87
|
|
| MD5 |
d9ecbb17bcfe41235d4e29b5efc66f31
|
|
| BLAKE2b-256 |
b518a05b831e3410e5e27d449e8c2089326786dc3181fd981ce2543e424ebc78
|