Python package for areas of 2D shapes
Project description
pyareas
A simple Python library for finding the areas of 2D shapes
Shapes Included:
- Square
- Triangle
- Rectangle
- Circle
- Parellelogram
- Ellipse
- Rhombus
- Trapezoid
- Polygon(regular)
- Kite
- Star
Install command:
pip install pyareas
Example:
from pyareas import *
print(Square(10))
Gives the output:
100
Newest Feature:
- Star!
- Takes the arguments of the internal shape's side, the internal shape's apothem, the number of points on the star, and the height of the triangles(the points)
- The old functions of pentagram, hexagram and heptagram are still in the source code, but i thought i would add a function for all stars.
To do:
- Add more shapes
- Create a new library for volume of 3D shapes
- pyvolumes?
- pyareas3d?
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
pyareas-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pyareas-0.1.0.tar.gz
.
File metadata
- Download URL: pyareas-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f15f150cfd936fc53fb2583dfc7348b2b92c5679a7b1a1cb9769962fd530d0 |
|
MD5 | f4a046e0666c03e9226bfd8d8a18533d |
|
BLAKE2b-256 | de32b53310a136ae834b8e28211403ceca803bcb1c99c9463a365e7d8308d87f |
File details
Details for the file pyareas-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyareas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 142be68f5f5dd252fc968a8f94d1108c77cbf2944b2697a449e7966656abc993 |
|
MD5 | 05adc4a04bba59f18f0748f022c4b790 |
|
BLAKE2b-256 | 1df3b56fffaa34de63cc0a9c39c4297745f2fb875b864d69ac33209c73366355 |