Metadata-Version: 2.1
Name: typer-router
Version: 1.0.0
Summary: Build Typer CLI Apps with File System-Based Routing
Home-page: https://github.com/nickderobertis/typer-router
Author: Nick DeRobertis
Author-email: derobertis.nick@gmail.com
License: MIT
Project-URL: Code, https://github.com/nickderobertis/typer-router
Project-URL: Documentation, https://nickderobertis.github.io/typer-router
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE.md



[![](https://codecov.io/gh/nickderobertis/typer-router/branch/main/graph/badge.svg)](https://codecov.io/gh/nickderobertis/typer-router)
[![PyPI](https://img.shields.io/pypi/v/typer-router)](https://pypi.org/project/typer-router/)
![PyPI - License](https://img.shields.io/pypi/l/typer-router)
[![Documentation](https://img.shields.io/badge/documentation-pass-green)](https://nickderobertis.github.io/typer-router/)
![Tests Run on Ubuntu Python Versions](https://img.shields.io/badge/Tests%20Ubuntu%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
![Tests Run on Macos Python Versions](https://img.shields.io/badge/Tests%20Macos%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
![Tests Run on Windows Python Versions](https://img.shields.io/badge/Tests%20Windows%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
[![Github Repo](https://img.shields.io/badge/repo-github-informational)](https://github.com/nickderobertis/typer-router/)


#  typer-router

## Overview

Build Typer CLI Apps with File System-Based Routing

## Getting Started

Install `typer-router`:

```
pip install typer-router
```

A simple example:

```python
import typer_router

router = typer_router.Router.from_app_import_path('my_package.my_app')
app = router.to_typer(name="my_app_name")
```

See a
[more in-depth tutorial here.](
https://nickderobertis.github.io/typer-router/tutorial.html
)

## 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:
- [pipx](https://pypa.github.io/pipx/installation/)
- [direnv](https://direnv.net/docs/installation.html)

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.](
https://nickderobertis.github.io/typer-router/
)
