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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6723ea7c59aaeaacca9f8c4c49838b0c80f0550484f38994387a0140c6aac2
|
|
| MD5 |
4a0635241dc8ec7afcf3b5c1a33106d9
|
|
| BLAKE2b-256 |
944199dbdeec6bd41c9b3233fab1ecfab3c65c6e5a3ab1bc6e1b3ff813524d5a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2289a8a7a1a96f3e5605799bb900fb8c9bf94545056618b69fcc8c621d19a416
|
|
| MD5 |
06e280bad7653420b0737152f4f2fad6
|
|
| BLAKE2b-256 |
68253f72e5ccea32de53ca2218ef3326725ed63a1aff720028313603f0d86126
|