Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dr1dex/figures
- Owner: Dr1DeX
- License: mit
- Created: 2024-03-25T12:48:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-30T13:28:28.000Z (8 months ago)
- Last Synced: 2024-03-30T14:34:26.519Z (8 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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