A POP cli interface
Project description
A cli interface for pop that exposes a persistent hub on the command line.
Getting Started
First off, install cPop from pypi:
pip3 install pop-cli
You can now initialize pop from the cli:
python -m hub my_sub.init.cli
or:
hub my_sub.init.cli
Specify a namespace that should host the authoritative CLI by calling using –cli as the first argument:
hub --cli=my_app my_sub.init.cli
If you don’t specify a –cli, unknown args will be forwarded as parameters to the reference you give:
hub pop.test.func arg1 arg2 --kwarg1=asdf --kwarg2 asdf
You can access anything that is on the hub, this is very useful for debugging.
Try this to see the subs that made it onto the hub:
hub _subs
You can do this to see everything that made it into hub.OPT:
hub OPT
Start an interactive python shell that includes a hub and allows async code to be run:
hub -i
#>>> await hub.lib.asyncio.sleep(0)
Release
The following steps are how to release a project with hatch
pip install .\[build\]
hatch build
export HATCH_INDEX_USER="__token__"
export HATCH_INDEX_AUTH="pypi-api-token"
hatch publish
Documentation
Check out the docs for more information:
There is a much more in depth tutorial here, followed by documents on how to think in Plugin Oriented Programming. Take your time to read it, it is not long and can change how you look at writing software!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pop_cli-3.0.1.tar.gz
.
File metadata
- Download URL: pop_cli-3.0.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c9cf356755c4010c627401dc74e935f62b663272bafa587977b3e315ec339a |
|
MD5 | 9651b229d6aebb5964f7bde4954db76e |
|
BLAKE2b-256 | f3f73cd0e0d946f1344fb8ee43a7c58a5a88f8bc4ed60735920ea9c6bfd0412e |
File details
Details for the file pop_cli-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: pop_cli-3.0.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e1ea46da072f17056b71e4ea334395e95eb06f0189cb2c15e5e37dc478f3c1 |
|
MD5 | e6ca80ade83bd0d6590be1275824bc29 |
|
BLAKE2b-256 | d07b5a4599a31f85a4743bdc8d942d220aa3cddb0e0370cc6cc9ab35f8415c99 |