Skip to main content

This is test library

Project description

Calc figure area Library

What is this?

This library is test library. The library can calculate the area of a circle by its radius and a triangle by its three sides.

There is also a check to see if a triangle is right-angled.

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 calc_figure_area_package import * construct).

Examples of all operations:

# Create new object - circle
my_circle = FigureFactory.create('circle', radius=5)
# Calc figure area
circle_area = get_figure_area(my_circle)

# Print result
print(f"Circle area: {circle_area}")
print(f"Is triangle rectangle? {is_figure_rectangle(my_circle)}")

# Create new object - triangle
my_triangle = FigureFactory.create('triangle', side1=3, side2=4, side3=5)
# Calc figure area
triangle_area = get_figure_area(my_triangle)

# Print result
print(f"Triangle area: {triangle_area}")
print(f"Is triangle rectangle? {is_figure_rectangle(my_triangle)}")

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

calc_figure_area-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

calc_figure_area-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file calc_figure_area-0.0.2.tar.gz.

File metadata

  • Download URL: calc_figure_area-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for calc_figure_area-0.0.2.tar.gz
Algorithm Hash digest
SHA256 93552973180fcc5081375f82c22a9fdb3d65d6c291e7dbad17badac082ca01dd
MD5 8402e8c40056e1c543f07e90f1235115
BLAKE2b-256 bc1f629ab381a9edacb9b99503fab8637012dfe68d321346673dc5d29ba5b6c9

See more details on using hashes here.

File details

Details for the file calc_figure_area-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for calc_figure_area-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f0b3af0759991cee5921383b79833dd9ad23ae2c7eb286bbb5794713e5e89b
MD5 546bea36c8a36eafb9399da7d7e9b2cd
BLAKE2b-256 ba46bd8541726c41594c13d1b8a4f7a74583316293639a3ddf2861610b39098d

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