Skip to main content

This is a test task module for shapes square calculation.

Project description

Shape Square Calculation Library

What is this?

The test task which should calculate square of circle by its radius and triangle by its sides.

Quick Guide

Set up the library

pip install shapesqr

Then import ShapeFabric from the library and pass into its constructor a tuple, containing one or three integers or floats.

from shapesqr import ShapeFabric


circle = ShapeFabric().get_shape((1.0,))

triangle = ShapeFabric().get_shape((4, 3, 5))

Using

Using the library is as simple and convenient as possible:

    from shapesqr import ShapeFabric


    circle = ShapeFabric().get_shape((1.0,))
    circle.get_shape_type()  # "circle"
    
    circle.calculate_square()
    status, result = shape.get_calculated_result()  # 1 - for OK, -1 - for NOK, 0 - default

Developer

My site: link

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

shapesqr-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

shapesqr-0.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file shapesqr-0.0.3.tar.gz.

File metadata

  • Download URL: shapesqr-0.0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for shapesqr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9b6723ea7c59aaeaacca9f8c4c49838b0c80f0550484f38994387a0140c6aac2
MD5 4a0635241dc8ec7afcf3b5c1a33106d9
BLAKE2b-256 944199dbdeec6bd41c9b3233fab1ecfab3c65c6e5a3ab1bc6e1b3ff813524d5a

See more details on using hashes here.

File details

Details for the file shapesqr-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: shapesqr-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for shapesqr-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2289a8a7a1a96f3e5605799bb900fb8c9bf94545056618b69fcc8c621d19a416
MD5 06e280bad7653420b0737152f4f2fad6
BLAKE2b-256 68253f72e5ccea32de53ca2218ef3326725ed63a1aff720028313603f0d86126

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