TurboLaunch
TurboLaunch is a CLI parser for Python programs that requires almost no setup.
- ✅ Run Python functions directly as CLI commands
- ✅ Support for enums and other built-in types
- 🚧 Help messages derived from docstrings
- 🚧 Plugins to extend the functionality of this library
- 🚧 Fuzzing of as much code paths as possible to ensure quality
TurboLaunch was initially written as part of the Mage project.
Quick Start
Simply create or edit a module with the following code:
def main() -> int:
import turbolaunch
turbolaunch.launch(__name__)
In your pyproject.toml-file, you'd have something like this:
[project.scripts]
mycommand = "mylibrary:main"
That's it!
Now if you would like to have command test which e.g. takes a filename and an optional foo flag:
def test(filename: str, foo: bool = False) -> int:
if foo:
print("'foo' is enabled")
print(f"Reading {filename}")
return 0
The above code would be run like this:
mycommand test loremipsum.txt --foo
More options, such as programmatic usage and plugins will come soon.
License
This software is licensed under the MIT license.
Metadata
Release files for turbolaunch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| turbolaunch-0.1.0.tar.gz | 11.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| turbolaunch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.5 kB
Release files / turbolaunch-0.1.0.tar.gz
| Download URL | turbolaunch-0.1.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6ab62ea46efb0c198fc86c107cb142432bd821297d03bb10a90d519006ab000
|
|
BLAKE2b-256 checksum How to use checksums |
caf4b5f46ce696b4cd539736f0af726db93eed1d196636e3277861170883caac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / turbolaunch-0.1.0-py3-none-any.whl
| Download URL | turbolaunch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9068aedadf42b62ba088d16cb0783c12924b3212ddac2df0221dddd5987a0a0d
|
|
BLAKE2b-256 checksum How to use checksums |
5d9d6156982509b3ec32b6a0a2faf3de7f3318b9b9ce85ad6d0672e84c34f867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for turbolaunch 0.1.0
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.