Skip to main content

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 tool.py file and main project.py file. You put new commands into the tool.py and the project.py will automatically add them to

Install

pip install magic-toolbox 
poety add magic-toolbox

Usage

How to create a new project

toolbox create_project foo
ls foo
foo.py  tools.py

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

Add new functions.

cd foo
toolbox add_function bar
cat tools.py
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 tools.py 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.

Metadata

Release files for magic-toolbox 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magic-toolbox 0.1.11
File Size Uploaded Provenance Actions
magic_toolbox-0.1.11.tar.gz 7.8 kB Without provenance Details for magic_toolbox-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for magic-toolbox 0.1.11
File Interpreter ABI Platform Actions
magic_toolbox-0.1.11-py3-none-any.whl Python 3 none any Details for magic_toolbox-0.1.11-py3-none-any.whl

Total release size: 18.1 kB

Release files / magic_toolbox-0.1.11.tar.gz

Download URL magic_toolbox-0.1.11.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
83ea185ea3f22f45580647a67723d0ec008b61f0eab954cff5914ffb110aae23
BLAKE2b-256 checksum
How to use checksums
477a1af6ff7a167abd3986247e9806dbf0c81662cee24b38a0f8d79a84786f47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.9 Linux/5.15.133.1-microsoft-standard-WSL2

Release files / magic_toolbox-0.1.11-py3-none-any.whl

Download URL magic_toolbox-0.1.11-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
289cf9d959ae4b49e1b720298c5f05aeb8bec3ce328a0967d2e9b0b2119d6a03
BLAKE2b-256 checksum
How to use checksums
cafb1592f341a71a310a7c0c8c7f4ea4c9e7a62dbaf46036889b24050380c92f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.9 Linux/5.15.133.1-microsoft-standard-WSL2

Security for magic-toolbox 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page