This is the simplest module for calculating the area of a geometric figures.
Project description
Simple GeometryLibpy
What is this?
Python lib that allows to calculate area of geometric figures
Using
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the from ... import * construct).
Examples of all operations:
Triangle
Create a triangle and get it area:
triangle = Triangle([15, 9, 7])
area = triangle.get_area()
print(area)
Resize the triangle and get updated area:
triangle.update_sides([5, 6, 7])
area = triangle.get_area()
print(area)
Circumference
Create a circumference and get area:
circle = Circumference(5)
area = circle.get_area()
print(area)
Update radius of the circumference and get new area:
circle.update_radius(4)
area = circle.get_area()
print(area)
UnitTest
Run in terminal in root directory:
cd GeometryLibPy
python -m unittest -v testLib
Developer
My GitHub: 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 geometrylibpy-1.0.0.tar.gz.
File metadata
- Download URL: geometrylibpy-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc1cd985d66b0829aee35fe41d1e6d11118dbb5b9a92c67a3d44f3fb35595661
|
|
| MD5 |
1dfe3a8d513e9498bac7999e7f92a576
|
|
| BLAKE2b-256 |
627bd610aa03b5d38e795b1712536e66379570dc55a87fac5b97914c7bdf0aa6
|
File details
Details for the file geometryLibPy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: geometryLibPy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4aa8770842dd06276c1493abff8d40fd4114fbde94a13014168e3681e38ff14
|
|
| MD5 |
2c7f14b308f6c282a5b93e79f61f9f38
|
|
| BLAKE2b-256 |
eb73804efc29202e49a21a28f87afaee8011f6399d39ea1ddde03c5eb64eed64
|