Skip to main content

Библиотека для вычисления площадей фигур

Project description

ShapesLib

Библиотека для вычисления площади геометрических фигур.

Установка

pip install shapeslib

Использование

Круг

from shapeslib import Circle

circle = Circle(5)
print(circle.area())  # 78.53981633974483

Треугольник

from shapeslib import Triangle

triangle = Triangle(3, 4, 5)
print(triangle.area())  # 6.0
print(triangle.is_right_angled())  # True

Общий расчет площади

from shapeslib import calculate_area, Circle, Triangle

print(calculate_area(Circle(2)))  # 12.566370614359172
print(calculate_area(Triangle(5, 5, 5)))  # 10.825317547305483

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

shapeslib-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shapeslib-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file shapeslib-0.0.1.tar.gz.

File metadata

  • Download URL: shapeslib-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for shapeslib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3302b00b3d873555f694e9b94436225187cbed3963689ba1b97251858b140341
MD5 74607ad64387890aff331615d082d8e0
BLAKE2b-256 d2c7a953c6e439c8c5d31d4bf38077f969f9ba219206e9940d10350e842fcc46

See more details on using hashes here.

File details

Details for the file shapeslib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: shapeslib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for shapeslib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0582f22d323802a55ef599083e004c4d77c16679383984c34cb193a195583d2c
MD5 3c9421f3ce7b9dc3593212e7a209f344
BLAKE2b-256 0f77a22271566f232edfeb36de9654e2434dd2902189292513b757dd822ef161

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