Skip to main content

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:

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pop_cli-5.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

pop_cli-5.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pop_cli-5.1.1.tar.gz.

File metadata

  • Download URL: pop_cli-5.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for pop_cli-5.1.1.tar.gz
Algorithm Hash digest
SHA256 b3f71cfd4adc0e9fa0cb5038639dfa0b2d411615d4d0b44d790555dca3c13c66
MD5 36da3debb65547c53ac35e2a1fb27f6e
BLAKE2b-256 c811af20c2a6ec7e626171d2021459c5d000b36d4349dd5db5e8b41eb4a89ea0

See more details on using hashes here.

File details

Details for the file pop_cli-5.1.1-py3-none-any.whl.

File metadata

  • Download URL: pop_cli-5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for pop_cli-5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 268b640bac2f95aaa07b8327a0f0107780b006337106aa7825057f02eb077aef
MD5 7f97c1f7f29136ec2e6b5644cbd0c49d
BLAKE2b-256 61c069813b05b723b0499dab339ecc00d9ce70727c77dcd3a759a827bfef3362

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page