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
square
square.area()
: Takes one float and returns area as a float.square.perimeter()
: Takes one float and returns perimeter as a float.
triangle
triangle.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.
circle
circle.area()
: Takes one float (radius) and returns area as a float.circle.perimeter()
: Takes one float (radius) and returns perimeter as a float.
trapezoid
trapezoid.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.
cone
cone.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.
cube
cube.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.
cylinder
cylinder.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.
rectangularPrism
rectangularPrism.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.
pyramid
pyramid.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.
sphere
sphere.volume()
: Takes one float (radius) and returns volume as a float.sphere.surfaceArea()
: Takes one float (radius) and returns surfaceArea as a float.
hemisphere
hemisphere.volume()
: Takes one float (radius) and returns volume as a float.hemisphere.surfaceArea()
: Takes one float (radius) and returns surfaceArea as a float.
frustrum
frustrum.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
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 |