Skip to main content

A cli framwork in same vane as django

Project description

Magic Toolbox

Magic toolbox is a framework built off of plac. When you create a new cli project toolbox creates a new floder, adds a file and main file. You put new commands into the and the will automatically add them to


pip install magic-toolbox 
poety add magic-toolbox


How to create a new project

toolbox create_project foo
ls foo

This creates a new project, by creating a project folder, and two python files; the project file, and the tools file The project file is used likepython args.

Add new functions.

cd foo
toolbox add_function bar
def foo(self,):
        This is just a dummy sub command to use as an example.
        You can use this as help message.

def bar(self):
    Put your doc string here

Inside the project folder you can run the add_function to create a sub-command. This adds a function to which is the entry point into your python code.

Turns current directory into a magic_toolbox project

toolbox init

You can turn the current directory into a project if you like.

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

magic_toolbox-0.1.11.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

magic_toolbox-0.1.11-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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