Skip to main content

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?

Release files for pyareas 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyareas 0.1.0
File Size Uploaded
pyareas-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyareas 0.1.0
File Interpreter ABI Platform
pyareas-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / pyareas-0.1.0.tar.gz

Download URL pyareas-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
64f15f150cfd936fc53fb2583dfc7348b2b92c5679a7b1a1cb9769962fd530d0
BLAKE2b-256 checksum
How to use checksums
de32b53310a136ae834b8e28211403ceca803bcb1c99c9463a365e7d8308d87f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / pyareas-0.1.0-py3-none-any.whl

Download URL pyareas-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
142be68f5f5dd252fc968a8f94d1108c77cbf2944b2697a449e7966656abc993
BLAKE2b-256 checksum
How to use checksums
1df3b56fffaa34de63cc0a9c39c4297745f2fb875b864d69ac33209c73366355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page