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.1.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.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: calc_figure_area-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 00b957dded2b26768421399e80002af0bf6716e7a20062f89a9713e713226824
MD5 2d12206391679d1aeeea12a51116fe6b
BLAKE2b-256 1857c19a3ddfcfdb4a9aa17013c95b0c1be5f7b33925ac7f2b3a0922f54ab418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for calc_figure_area-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a17a79975b5ab5ca79bd7112ff6d00dd2a19ab3aa47921b5011e67ef0607bc8
MD5 b0d000e85d228e3e962fb5d485a7d9b9
BLAKE2b-256 935364060b44f7f02b5ba5220e2462158814a503207d07d8ef1cf67c83a07fa0

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