Build Typer CLI Apps with File System-Based Routing
Project description
typer-router
Overview
Build Typer CLI Apps with File System-Based Routing
Getting Started
Install typer-router:
pip install typer-router
A simple example:
import typer_router
from my_package import my_app
router = typer_router.Router.from_app_module(my_app)
app = router.to_typer(name="my_app_name")
See a more in-depth tutorial here.
Development Status
This project is currently in early-stage development. There may be breaking changes often. While the major version is 0, minor version upgrades will often have breaking changes.
Developing
First, you need a couple global dependencies installed, see their documentation for details:
Then clone the repo and run npm install and mvenv sync dev. Make your changes and then run just to run formatting,
linting, and tests.
Develop documentation by running just docs to start up a dev server.
To run tests only, run just test. You can pass additional arguments to pytest,
e.g. just test -k test_something.
Prior to committing, you can run just with no arguments to run all the checks.
Author
Created by Nick DeRobertis. MIT License.
Links
See the documentation here.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typer-router-1.1.0.tar.gz.
File metadata
- Download URL: typer-router-1.1.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7be471d7d084a354944219da9f865ca4becc32e62d1d95cee853ec48ecb9ff65
|
|
| MD5 |
14ce3ca01c62d995d4359d3effa7870a
|
|
| BLAKE2b-256 |
f7f165b1ed2720b5af984ec6ae3b99da9c785bf31278279cdcfea1614db52517
|
File details
Details for the file typer_router-1.1.0-py3-none-any.whl.
File metadata
- Download URL: typer_router-1.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06204d7c2c97c4048d2a4a3447e9dc1c9275e294c04dd594065bbc319ae87d04
|
|
| MD5 |
3c835f5d680e48388ef70d6f413ca148
|
|
| BLAKE2b-256 |
c634fd3a8362ff0e56d68c0e5bc7e49b221f662958de7f35e76578a49de276f4
|