Skip to content

rbrook/dyncli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dyncli

An example of a generic CLI which builds itself dynamically around an existing FastAPI backend endpoints.

This work is based on a lecture given by Oliver Rew at EuroPython 2023.

It has been modified in order to utilise Typer's rich CLI capabilities.

Instructions

In order to start the local server, install the requirements using "pip" and then run

uvicorn server.app:app --reload

Then open a new terminal and run

pip install .

Assuming everything worked, you can run

dcli --help

to see the Typer help message, available commands etc.

*You can - of course - skip the local installation of dcli call directly:

python dyncli.py --help

About

A generic CLI which builds itself dynamically based on an existing API FastAPI backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages