Skip to main content

AreaNinja

Быстро и точно, как ниндзя, считает площади


Возможности

  • Вычисление площади круга по радиусу.
  • Вычисление площади треугольника по трём сторонам (формула Герона).
  • Вычисление площади прямоугольника.
  • Проверка, является ли треугольник прямоугольным.
  • Лёгкое расширение для других фигур.

Установка

pip install AreaNinja

Быстрый старт

from AreaNinja import Circle, Triangle

# Площадь круга
c = Circle(5)
print(c.area())  # 78.53981633974483

# Площадь треугольника
t = Triangle(3, 4, 5)
print(t.area())  # 6.0

# Проверка на прямоугольность
print(t.is_right_angled())  # True

Требования

Python 3.7+

Библиотека math (входит в стандартную библиотеку Python)

Тестирование

Тесты находятся в папке tests/.

Для запуска всех тестов:

python -m unittest discover tests

Лицензия

Этот проект распространяется под лицензией MIT.

Автор

Kirill Domitin — domitin@gmail.com

Metadata

Release files for AreaNinja 0.1.4

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

Source distribution (sdist)

Source distribution for AreaNinja 0.1.4
File Size Uploaded Provenance
areaninja-0.1.4.tar.gz 2.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.4 kB

Release files / areaninja-0.1.4.tar.gz

Download URL areaninja-0.1.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a61a37926ab8204a44bc2e0ca3f9cd72e85700b30b6638a1778e2defbd7367d
BLAKE2b-256 checksum
How to use checksums
f90b59a45643ce251ae5c64774a532500b9267ad3192d9d83c90dfffcd5f4e5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / areaninja-0.1.4-py3-none-any.whl

Download URL areaninja-0.1.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b474f99a7c66840493493ab4157eaa5a6d5bd422d54331d1467c2ac0bde65d0
BLAKE2b-256 checksum
How to use checksums
1dcfbcd9ec6aa742ab5512091e1b0f85670aa00c3329e1743892f18983d84659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Security for AreaNinja 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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