https://github.com/alpertunga-bile/cliutility
Utilities For CLI applications
https://github.com/alpertunga-bile/cliutility
cli cli-tool cli-toolbox cli-toolkit cli-tools cli-utilities
Last synced: 4 months ago
JSON representation
Utilities For CLI applications
- Host: GitHub
- URL: https://github.com/alpertunga-bile/cliutility
- Owner: alpertunga-bile
- License: mit
- Created: 2023-05-17T18:47:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T13:51:54.000Z (about 2 years ago)
- Last Synced: 2024-12-28T13:20:11.490Z (about 1 year ago)
- Topics: cli, cli-tool, cli-toolbox, cli-toolkit, cli-tools, cli-utilities
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLIUtility
- Providing some utility classes for CLI applications.
## Utilities
### Loader Class
- Providing loader for CLI like tqdm package.
- You can use it with range, list, tuple, set and dict data types.
- Can specify description and loading char to visualize.
#### Example For Range
```python
for i in Loader(range(1, 10), description="Test"):
pass
```
#### Example For List, Set And Tuple
```python
tempList = ["10", "2", "5"]
for i in Loader(tempList, description="Test"):
pass
```
#### Example For Dictionary
```python
tempDict = {"Physics":43, "Math":23}
for key, value in Loader(tempDict.items(), description="Test"):
pass
```
#### Example Result
```Test [####################################################################################################] %100 ETA [ 0 h| 0 m| 0 s]```
### Completer Class
- Providing tab completer for CLI.
- You can specify your completer functions with words.
- You can use it for get files and folders for given directory or current directory.
### VenvManager Class
You can
- Create virtual environment
- Install packages with requirements file
- Run scripts with args
- Clone repository
- Update repository
- Install requirements from repository
- Run scripts from repository
- [x] ```VenvManager-functional``` is the breakdown of the ```VenvManager``` class to functions.