Skip to main content

Geometry Calculation tool

Project description

Calculator CLI Tool

Calculator CLI tool is CLI based that calculate 2D and 3D shapes Formulas

Setup Project


sudo apt-get install python3-venv
git clone https://github.com/deepesh141291/calculator-cli-tool.git
cd calculator-cli-tool
python3 -m venv calc
source calc/bin/activate
python3 -m pip install --editable .

Help and Usage


ubuntu@ubuntu:~/calculator-cli-tool$ calculate
Usage: calculate [OPTIONS] COMMAND [ARGS]...

Options:
  -d      Print debug messages to stdout.
  --help  Show this message and exit.

Commands:
  circle     List of operations performed on circle.
  cube       List of operations performed on Cube.
  rectangle  List of operations performed on rectangle.
  sphere     List of operations performed on sphere.
  square     List of operations performed on square.


ubuntu@ubuntu:~/calculator-cli-tool$ calculate rectangle --help
Click Version: 7.1.1
Python Version: 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0]
Usage: calculate rectangle [OPTIONS] WIDTH HEIGHT

  List of operations performed on rectangle.

Options:
  -o, --operation TEXT  List of Operation Performed are ['area', 'perimeter']
                        [required]

  --help                Show this message and exit.

Calculate 2D shapes Opearions Area and Perimeter

ubuntu@ubuntu:~/calculator-cli-tool$ calculate circle -o area 10

Formula of Circle area = 3.14xradiusxradius Circle area= 314.000000

Calculate 3D shapes Opearions SurfaceArea and Volume

ubuntu@ubuntu:~/calculator-cli-tool$ calculate sphere -o volume 10

Formula of Sphere volume = (4/3)xpixradiusxradiusxradius Sphere volume= 4188.790205

ubuntu@ubuntu:~/calculator-cli-tool$ calculate cone -o surfacearea 10 12.2 Click Version: 7.1.1 Python Version: 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] Formula of Cones surfacearea = pixradius(radius+sqrt(radiusxradius+heightxheight))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calculate-shapes-0.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calculate_shapes-0.7-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file calculate-shapes-0.7.tar.gz.

File metadata

  • Download URL: calculate-shapes-0.7.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for calculate-shapes-0.7.tar.gz
Algorithm Hash digest
SHA256 7de7a5bef1ed40e7b40e4811127b60773e5c8d1c7a96f83c041605b187c61600
MD5 6cf2dfce2ef711d890fc668aed63b020
BLAKE2b-256 7511795a94197bfdc2e3106ee9991559171a8185e4a476f6d347671b89cff67c

See more details on using hashes here.

File details

Details for the file calculate_shapes-0.7-py3-none-any.whl.

File metadata

  • Download URL: calculate_shapes-0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for calculate_shapes-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e0b6b947cec9da058cf231687023ad2c5c29ce4370fdf5ae69f7492526cce472
MD5 0f13ee179111be84803ca5247dc6a859
BLAKE2b-256 b41e04d9800d2fd2d80f42fd9a4175c2ab2027723892bd0cb9be540e919a1a1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page