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-2.0.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

pop_cli-2.0.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pop_cli-2.0.2.tar.gz
Algorithm Hash digest
SHA256 8c0aac6811b81717c8058b5c0191a4f20282aa3c07779c59c459fbefe26f592a
MD5 68998d753e6226a5cada0b6fec8eab1d
BLAKE2b-256 2030da683fda22b26acd97f3b9a71dfa588fefbac802964b5a60c72b645226d0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pop_cli-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2e52bd3b0cb669e864a016a02d9c305e80c1d5c33e7f7c90fd6fb1ef15778b36
MD5 b5606cf8b3ab71c7416cbf7f3f0cddd3
BLAKE2b-256 81fb6936d83fa17d1cf380dc6ba0b9c40a003b023d46d75887563bd2a0f27d45

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