Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dr1dex/figures

Calculating the area of ​​shapes
https://github.com/dr1dex/figures

Last synced: 6 days ago
JSON representation

Calculating the area of ​​shapes

Awesome Lists containing this project

README

        

# FiguresLib
![workflow](https://github.com/Dr1DeX/figures/actions/workflows/main.yml/badge.svg)

## What it is? ##
This module reads the user data and calculates the radius of a circle or triangle (there will be other shapes in the future).
## A little guide... ##
The main launcher has the following structure:

params = Commander.parse_command()
if params:
print(detector(len(params), params))

First, the input parameters are read, if the parameter exists, then they are passed on to the detector function,
where the logic for defining a figure and calling the corresponding method of the figure class is implemented.

----------

### Using ###
The module can be launched in several ways
1) Create virtual environment ``python -m venv venv``
2) Installing the package ``python -m pip install --index-url https://test.pypi.org/simple/ --no-deps FiguresLib-Dr1DeX==0.0.4 ``
3) Create file ``test.py``
4) Import module ``Figures.utils.runner import runner``
5) Call function ``runner``

Example:

def main():
# other code.
runner()
if __name__ == '__main__':
main()

We follow further instructions.

## Developer ##
Dr1DeX