Skip to main content

This is a test task module for shapes square calculation.

Reason this release was yanked:

deprecated

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.2.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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shapesqr-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 97a9482c22bcd41b3d3aa558d42863aa413b03154c1262059389297af959a03b
MD5 1ad6d20aaba4ad1de648620272853687
BLAKE2b-256 d638e7c0ba35bfdb55e11abd01d76c5966144df84c3e56008652d71f6eb5c260

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shapesqr-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13b4a5e29752679ee7c6b05d132dc98a999cd2636ed7c6cde08ab40ecbe0047c
MD5 7cb4ec6cf0ed14e5e758f30a65fe28df
BLAKE2b-256 aae0ba1737705f38c306dcdd9f8b4c4faf8b2cfdebf39029476a114f41e85ce2

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