A 'manage' command to add an interactive shell and commands support to your Python applications, based on click
Project description
Manage
A “manage” command to add an interactive shell and commands support to your Python applications, based on click
Free software: ISC license
Documentation: https://manage.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0651f7df771b195a44b9ba9dbd68ce5820c17a376c8caaacb13cc98818ee3b |
|
MD5 | 68b6afff077466c7db6c5eee4f94d107 |
|
BLAKE2b-256 | 7f41ccab3e3a709267bf90cb461a131a16234c620b7650a051b9cb79eda6011e |
File details
Details for the file manage-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: manage-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2edb3e9fa4cd61b489f220b0826c982bf1c887dcd0217ea0ee5505e9508c10d |
|
MD5 | 96706f485f5a9a044d73b113a1522fdd |
|
BLAKE2b-256 | 6085a7334e5b2e51e492c17be9e0ebb31808fb2bd9ac9c802e820c9cdf078066 |