Skip to main content

ShapeCal

License Version Python Code Style Build Status

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

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)

Source distribution for ShapeCal 0.0.2
File Size Uploaded
ShapeCal-0.0.2.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ShapeCal 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page