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
Release files for ShapeCal 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ShapeCal-0.0.2.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ShapeCal-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / ShapeCal-0.0.2.tar.gz
| Download URL | ShapeCal-0.0.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74141f3a04defc64093c30c6bc5794374f2e26037695ac7347c2f749934afaed
|
|
BLAKE2b-256 checksum How to use checksums |
26d5c9790007cd7d6a272b334fcc8af906cd45d320b885aee368d900826b88bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ShapeCal-0.0.2-py3-none-any.whl
| Download URL | ShapeCal-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c3f2e206491e85a879cb98fb1306eb1955fa35c8fb3a7a3e780b7320cc45e87
|
|
BLAKE2b-256 checksum How to use checksums |
b518a05b831e3410e5e27d449e8c2089326786dc3181fd981ce2543e424ebc78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|