Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use pyproject.toml for app discovery and other config #460

wigging started this conversation in Ideas
Discussion options

It would be convenient to define config options in pyproject.toml instead of the command line. Something like the following in pyproject.toml would define the app path along with host and port:

[tool.quart]
entrypoint = "myapp.main:app"
host = "10.123.189.2"
port = 8080

This would allow the run command to just be this:

quart run

Instead of the current syntax which is something like this:

quart --app myapp.main:app run --host 10.123.189.2 --port 8080
You must be logged in to vote

Replies: 1 comment

Comment options

I've got you covered: my Click Extra project can feed options to a Click CLI from a [tool.*] section of a pyproject.toml. See the details at: https://kdeldycke.github.io/click-extra/config.html#pyproject-toml

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /