python-discord / quackstack

An on-demand procedural ducky delivery service. An infinite stack of duckies!
MIT License
7 stars 1 forks source link

CLI: Generate ducky from CLI command. #5

Open lemonsaurus opened 3 years ago

lemonsaurus commented 3 years ago

Let's use a tool like Click and write a few CLI commands that can be easily called to trigger some of the duck delivery features available via the API.

It should be easy to just create a duck from the terminal without spinning up the whole webserver.

Assigning this to @Akarys42 since you expressed interest in making a duck generator PyPI package - this will be the first part of doing that.

jb3 commented 3 years ago

We're not going to proceed with packaging Quackstack for PyPI at this point. Integrations such as Sir Lancebot and potentially a CLI in future will call out to the publicly hosted instance at quackstack.pythondiscord.com. I'll keep this issue open but retarget it as a long term goal of the project.

Kronifer commented 3 years ago

I'd be interested in doing this, however would this be done in this repository or another?

Kronifer commented 3 years ago

I can spin up an example using typer in a personal repo.

onerandomusername commented 3 years ago

Typer is just a wrapper for click, and uvicorn already uses click, so it may be more efficient to use click to make a simple wrapper. Typer does not seem necessary to me.