Skip to main content

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:

https://pop.readthedocs.io

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!

Metadata

Release files for pop-cli 7.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pop-cli 7.0.1
File Size Uploaded
pop_cli-7.0.1.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pop-cli 7.0.1
File Interpreter ABI Platform
pop_cli-7.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.7 kB

Release files / pop_cli-7.0.1.tar.gz

Download URL pop_cli-7.0.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70d0b709695335d18bd093e0be4c18717a37bc145f16595f94824d8a2be10b09
BLAKE2b-256 checksum
How to use checksums
6b6c15e79db028eba710700225912a58a59e734d3e7f888eb3c8d6cb8be291d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / pop_cli-7.0.1-py3-none-any.whl

Download URL pop_cli-7.0.1-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e90229bcf55fbfdb75d80c173f65da00881af3f35c06e7ac2a7b5b82703ea56
BLAKE2b-256 checksum
How to use checksums
a6f1df403f82b835ae68ad51e9969d6ea4b3e37a51f218555e76e050a2b4979d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release history Release notifications | RSS feed

This release

7.0.1 This release

2 release files

7.0.0

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.1.1

2 release files

5.1.0

2 release files

4.3.1

2 release files

4.3.0

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page