Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Async cli application builder.

Project description


CircleCI Documentation Status Coverage Status PyPI version LICENSE Downloads

Async application framework.


Install with pip: $ pip install precept



from precept import Precept, Command, Argument

class MyCli(Precept):
    The name of the application will be the spinal-case version of 
    the name of the class.
    Class docstring is added as cli description.
    @Command(Argument('argument', type=str))
    async def my_command(self, argument):

def cli():

if __name__ == '__main__':

For local testing:

  • Set entry_points.console_script to my-cli = my_package.my_cli:cli in
  • Install locally: $ pip install -e .
  • Then call: $ my-cli my-command hello -> print hello

Full documentation

Project details

Download files

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

Files for precept, version 0.6.3
Filename, size File type Python version Upload date Hashes
Filename, size precept-0.6.3.tar.gz (18.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page