https://github.com/bashkirtsevich/popug
https://github.com/bashkirtsevich/popug
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bashkirtsevich/popug
- Owner: bashkirtsevich
- License: gpl-3.0
- Created: 2023-01-13T18:26:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T19:09:19.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T00:08:42.361Z (12 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦜 Python parrot cli args echo lib example
`setup.py`:
```
...
entry_points={
'console_scripts': [
'popug = popug.__main__:main',
]
},
packages=setuptools.find_packages(),
...
```
Files structure:
```
.
├── LICENSE
├── README.md
├── popug
│  ├── __init__.py
│  └── __main__.py
└── setup.py
```
Installing:
```
pip install git+https://github.com/bashkirtsevich/popug.git
```
Example:
```
root@b819542c6d4a:~# pip install git+https://github.com/bashkirtsevich/popug.git
Collecting git+https://github.com/bashkirtsevich/popug.git
Cloning https://github.com/bashkirtsevich/popug.git to /tmp/pip-req-build-9ut6lyd0
Running command git clone -q https://github.com/bashkirtsevich/popug.git /tmp/pip-req-build-9ut6lyd0
Building wheels for collected packages: popug
Building wheel for popug (setup.py) ... done
Created wheel for popug: filename=popug-0.0.1-py3-none-any.whl size=14455 sha256=3458d4d73d381955e5a980627c0e23e27df7adc4b076b4ad613003c2059cc524
Stored in directory: /tmp/pip-ephem-wheel-cache-h2liz35r/wheels/b2/8e/ae/3c178a6215851fba4128ff1f528230f55cc90b0848497b4d6e
Successfully built popug
Installing collected packages: popug
Successfully installed popug-0.0.1
WARNING: You are using pip version 21.0.1; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
root@b819542c6d4a:~#
root@b819542c6d4a:~# popug foo bar baz
██████████
██░░░░░░░░░░████
██░░░░░░░░░░░░░░░░██
██░░░░░░░░░░░░░░░░░░░░██
██░░░░░░██░░░░░░░░░░░░████
██░░░░░░░░██░░████████░░██░░██
██░░░░░░░░░░░░██░░░░░░██░░░░██
████░░░░░░░░░░░░██░░░░░░██░░░░░░██
██░░░░░░░░░░░░░░██░░░░░░██░░░░░░░░██
██░░░░░░░░░░░░░░░░██░░░░████░░░░░░░░██
██░░░░░░░░░░░░░░░░░░██░░██░░░░░░░░░░██
██░░░░░░░░░░░░░░░░░░██░░██░░░░░░░░░░██
██░░░░░░░░░░░░░░░░░░██░░░░░░░░░░░░██
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░████
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██
██░░██████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██
██░░░░░░░░██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██
████████████████████████████████████████████████
----------------------------------------------------
Popug lib demo
Arg: 0 value: /usr/local/bin/popug
Arg: 1 value: foo
Arg: 2 value: bar
Arg: 3 value: baz
```