Skip to main content

A 'manage' command to add an interactive shell and commands support to your Python applications, based on click

Project description

Manage

https://img.shields.io/pypi/v/manage.svg https://img.shields.io/travis/rochacbruno/manage.svg Documentation Status Dependencies

A “manage” command to add an interactive shell and commands support to your Python applications, based on click

Features

With manage you add a commands manager to your Python project and also it comes with an interactive shell with iPython support.

$ pip install manage
$ cd /my_project_root_folder
$ manage init
creating manage.yml....

With that you now have a file manage.yml file describing how manage command should discovery your app modules and custom commands

The Shell

By default the command manage shell is included, it is a simple Python REPL console with some configurable options.

You can change the banner message to say anything you want, e.g: “Welcome to my shell!” and you can also specify some objects to be automatically imported in to the shell context so when you enter in to the shell you already have your project’s common objects available.

Also you can specify a custom function to run or a string based code block to run, useful to init and configure the objects.

If IPython is installed it will use it, otherwise will use the default Python console including support for tab autocomplete.

Check the example in: https://github.com/rochacbruno/manage/tree/master/examples/simple

Custom Commands

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-06-09)

  • First release on PyPI.

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

manage-0.1.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

manage-0.1.1-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file manage-0.1.1.tar.gz.

File metadata

  • Download URL: manage-0.1.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for manage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e0651f7df771b195a44b9ba9dbd68ce5820c17a376c8caaacb13cc98818ee3b
MD5 68b6afff077466c7db6c5eee4f94d107
BLAKE2b-256 7f41ccab3e3a709267bf90cb461a131a16234c620b7650a051b9cb79eda6011e

See more details on using hashes here.

File details

Details for the file manage-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for manage-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e2edb3e9fa4cd61b489f220b0826c982bf1c887dcd0217ea0ee5505e9508c10d
MD5 96706f485f5a9a044d73b113a1522fdd
BLAKE2b-256 6085a7334e5b2e51e492c17be9e0ebb31808fb2bd9ac9c802e820c9cdf078066

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