https://github.com/dkundih/duality
Decorator library for the creation of CLI applications and scripts.
https://github.com/dkundih/duality
algorithms algorithms-and-data-structures data-science data-visualization decorator decorators digital-transformation logistics logistics-4-0 machine-learning python
Last synced: 21 days ago
JSON representation
Decorator library for the creation of CLI applications and scripts.
- Host: GitHub
- URL: https://github.com/dkundih/duality
- Owner: dkundih
- License: apache-2.0
- Created: 2021-11-03T14:59:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T12:49:27.000Z (about 1 year ago)
- Last Synced: 2024-12-23T13:44:12.722Z (about 1 year ago)
- Topics: algorithms, algorithms-and-data-structures, data-science, data-visualization, decorator, decorators, digital-transformation, logistics, logistics-4-0, machine-learning, python
- Language: Python
- Homepage: https://pypi.org/project/duality/
- Size: 4.69 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

[](https://pypi.org/project/duality)
[](https://github.com/dkundih/duality/blob/main/LICENSE)
[](https://pypi.org/project/duality)
[](https://pypi.org/project/duality)
[](https://github.com/dkundih/duality)
[](https://pypi.org/project/duality)
duality
=====
Decorator library for the creation of CLI applications and scripts.
Use permitted according to the terms of use and conditions set by the attached license.
**Example of use - SCRIPT**
Example code over a Car object. - DualityApp.script (v5.3.3)

Example use in the terminal. - DualityApp.script (v5.3.3)

**Example of use - WHEEL**
Example code over a Car object. - DualityApp.wheel (v5.3.3)

Example use in the terminal. - DualityApp.wheel (v5.3.3)

**Example of use - APPLY CUSTOM COLORING**
Example code for the creation of a university with custom coloring defined in the 'myset' dictionary. (v5.3.3)
NOTE: Fore coloring is defined as F(c, m, y, k, r, g, b) - for example, 'Fr' stands for fore coloring in red.
Background coloring is defined as B(c, m, y, k, r, g, b) - for example, 'Br' stands for background coloring in red.
Dictionary keys must be named as shown, only coloring values are subject to change.
In order to apply custom coloring, define color_mode = 'custom', custom_color_mode = your_dictionary_name_here.

Example use in the terminal with custom coloring applied. (v5.3.3)

**Installation**
```sh
# using pip
pip install duality
```
**Import**
```sh
# for Python environment
import duality
```
**A word from the author!**
The module itself, its maintenance, updates and stability, logo, videos, promotional materials and everything associated with duality are done by **David Kundih** from **Croatia**.
Hi! :wave:
My latest projects: