Typer API Documentation (or: Where do I find the arguments to Typer())? #701
-
First Check
Commit to Help
Example CodeN/A, this is a documentation discussion.DescriptionI really like Typer, but one thing I struggle with is the "narrative style" tutorial documentation; it's really good for getting started, but I really struggle with using it to answer questions like "What documentation options do I have in the "Typer()" call?" I end up clicking all around and hunting for something that answers my question. For example, searching for "epilog" in the typer documentation doesn't list it as being an option to Typer(), but it is. What I'm thinking is:
Thoughts? Am I missing some documentation? Operating SystemLinux Operating System DetailsNo response Typer Version0.9.0 Python Version3.11 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
|
I would also like this. I can't find anywhere that lists or explains the |
Beta Was this translation helpful? Give feedback.
-
|
I see your point - I'll label this as a feature request. In the meantime, while it's not fully complete yet, you might enjoy looking at this user contribution: #634 -> Cheat sheet |
Beta Was this translation helpful? Give feedback.
-
|
Strong agree.These docs and others (looking at you, sqlmodel :) ) seem to lack "readthedocs"-style API references for each class, which is a significant problem in my book. It's great that there's high-quality material for beginners -- I wish more libraries had this -- but it also makes complex issues with this library impossible to debug. (Thx for a great library btw!) |
Beta Was this translation helpful? Give feedback.
-
|
Related issue: |
Beta Was this translation helpful? Give feedback.
-
|
if one of us outsiders were to just start to write some docstrings and send a pull request, would that be considered? Or would the contributor team prefer to coordinate this effort when the time is right? |
Beta Was this translation helpful? Give feedback.
-
|
Hi all! I just discussed this with Tiangolo and we agreed I'll work on this. I'll prioritize this in the next few weeks. If there's an easy way to help out (while still ensuring things are coordinated), I'll let you know here. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Draft PR: #1504 |
Beta Was this translation helpful? Give feedback.
-
|
The typer reference docs are now available here: https://typer.tiangolo.com/reference/ |
Beta Was this translation helpful? Give feedback.
The typer reference docs are now available here: https://typer.tiangolo.com/reference/