Skip to content
Myr

help-typer.md

This file

Path

docs/help-typer.md

249 lines · 11.8 KiB · Markdown

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than dcdfc68 point at it.

🔧 Update MkDocs to have titles in Markdown files instead of config (#913)Sebastián Ramírezbefore adoption6b264ac

lines 1–2why, one step back
1# Help Typer - Get Help
2

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 3–24why, one step back
3Are you liking **Typer**?
45Would you like to help Typer, other users, and the author?67Or would you like to get help with **Typer**?89There are very simple ways to help (several involve just one or two clicks).1011And there are several ways to get help too.1213## Subscribe to the newsletter1415You can subscribe to the (infrequent) [**FastAPI and friends** newsletter](/newsletter/){.internal-link target=_blank} to stay updated about:1617* News about FastAPI and friends, including Typer 🚀18* Guides 📝19* Features ✨20* Breaking changes 🚨21* Tips and tricks ✅2223## Star **Typer** in GitHub24

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 25why, one step back
25You can "star" Typer in GitHub (clicking the star button at the top right): <a href="https://github.com/fastapi/typer" class="external-link" target="_blank">https://github.com/fastapi/typer</a>.

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 26–30why, one step back
26
27By adding a star, other users will be able to find it more easily and see that it has been already useful for others.2829## Watch the GitHub repository for releases30

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 31why, one step back
31You can "watch" Typer in GitHub (clicking the "watch" button at the top right): <a href="https://github.com/fastapi/typer" class="external-link" target="_blank">https://github.com/fastapi/typer</a>.

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 32–56why, one step back
32
33There you can select "Releases only".3435By doing it, you will receive notifications (in your email) whenever there's a new release (a new version) of **Typer** with bug fixes and new features.3637## Connect with the author3839You can connect with <a href="https://tiangolo.com" class="external-link" target="_blank">me (Sebastián Ramírez / `tiangolo`)</a>, the author.4041You can:4243* <a href="https://github.com/tiangolo" class="external-link" target="_blank">Follow me on **GitHub**</a>.44 * See other Open Source projects I have created that could help you.45 * Follow me to see when I create a new Open Source project.46* <a href="https://twitter.com/tiangolo" class="external-link" target="_blank">Follow me on **Twitter**</a>.47 * Tell me how you use Typer (I love to hear that).48 * Hear when I make announcements or release new tools.49* <a href="https://www.linkedin.com/in/tiangolo/" class="external-link" target="_blank">Connect with me on **Linkedin**</a>.50 * Hear when I make announcements or release new tools (although I use Twitter more often 🤷‍♂).51* Read what I write (or follow me) on <a href="https://dev.to/tiangolo" class="external-link" target="_blank">**Dev.to**</a> or <a href="https://medium.com/@tiangolo" class="external-link" target="_blank">**Medium**</a>.52 * Read other ideas, articles, and read about tools I have created.53 * Follow me to read when I publish something new.5455## Tweet about **Typer**56

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 57why, one step back
57<a href="https://twitter.com/compose/tweet?text=I'm loving Typer because... https://github.com/fastapi/typer cc @tiangolo" class="external-link" target="_blank">Tweet about **Typer**</a> and let me and others know why you like it.

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 58–64why, one step back
58
59I love to hear about how **Typer** is being used, what have you liked in it, in which project/company you are using it, etc.6061## Help others with questions in GitHub6263You can try and help others with their questions in:64

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

lines 65–66why, one step back
65* <a href="https://github.com/fastapi/typer/discussions/categories/questions?discussions_q=category%3AQuestions+is%3Aunanswered" class="external-link" target="_blank">GitHub Discussions</a>
66* <a href="https://github.com/fastapi/typer/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Aquestion+-label%3Aanswered+" class="external-link" target="_blank">GitHub Issues</a>

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 67–114why, one step back
67
68In many cases you might already know the answer for those questions. 🤓6970Just remember, the most important point is: try to be kind. People come with their frustrations and in many cases don't ask in the best way, but try as best as you can to be kind. 🤗7172The idea is for the **Typer** community to be kind and welcoming. At the same time, don't accept bullying or disrespectful behavior towards others. We have to take care of each other.7374---7576Here's how to help others with questions (in discussions or issues):7778### Understand the question7980* Check if you can understand what is the **purpose** and use case of the person asking.8182* Then check if the question (the vast majority are questions) is **clear**.8384* In many cases the question asked is about an imaginary solution from the user, but there might be a **better** one. If you can understand the problem and use case better, you might be able to suggest a better **alternative solution**.8586* If you can't understand the question, ask for more **details**.8788### Reproduce the problem8990For most of the cases and most of the questions there's something related to the person's **original code**.9192In many cases they will only copy a fragment of the code, but that's not enough to **reproduce the problem**.9394* You can ask them to provide a <a href="https://stackoverflow.com/help/minimal-reproducible-example" class="external-link" target="_blank">minimal, reproducible, example</a>, that you can **copy-paste** and run locally to see the same error or behavior they are seeing, or to understand their use case better.9596* If you are feeling too generous, you can try to **create an example** like that yourself, just based on the description of the problem. Just have in mind that this might take a lot of time and it might be better to ask them to clarify the problem first.9798### Suggest solutions99100* After being able to understand the question, you can give them a possible **answer**.101102* In many cases, it's better to understand their **underlying problem or use case**, because there might be a better way to solve it than what they are trying to do.103104### Ask to close105106If they reply, there's a high chance you would have solved their problem, congrats, **you're a hero**! 🦸107108* Now, if that solved their problem, you can ask them to:109110 * In GitHub Discussions: mark the comment as the **answer**.111 * In GitHub Issues: **close** the issue**.112113## Watch the GitHub repository114

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 115why, one step back
115You can "watch" Typer in GitHub (clicking the "watch" button at the top right): <a href="https://github.com/fastapi/typer" class="external-link" target="_blank">https://github.com/fastapi/typer</a>.

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 116–122why, one step back
116
117If you select "Watching" instead of "Releases only" you will receive notifications when someone creates a new issue or question. You can also specify that you only want to be notified about new issues, or discussions, or PRs, etc.118119Then you can try and help them solve those questions.120121## Ask Questions122

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 123why, one step back
123You can <a href="https://github.com/fastapi/typer/discussions/new?category=questions" class="external-link" target="_blank">create a new question</a> in the GitHub repository, for example to:

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 124–216why, one step back
124
125* Ask a **question** or ask about a **problem**.126* Suggest a new **feature**.127128**Note**: if you do it, then I'm going to ask you to also help others. 😉129130## Review Pull Requests131132You can help me review pull requests from others.133134Again, please try your best to be kind. 🤗135136---137138Here's what to have in mind and how to review a pull request:139140### Understand the problem141142* First, make sure you **understand the problem** that the pull request is trying to solve. It might have a longer discussion in a GitHub Discussion or issue.143144* There's also a good chance that the pull request is not actually needed because the problem can be solved in a **different way**. Then you can suggest or ask about that.145146### Don't worry about style147148* Don't worry too much about things like commit message styles, I will squash and merge customizing the commit manually.149150* Also don't worry about style rules, there are already automatized tools checking that.151152And if there's any other style or consistency need, I'll ask directly for that, or I'll add commits on top with the needed changes.153154### Check the code155156* Check and read the code, see if it makes sense, **run it locally** and see if it actually solves the problem.157158* Then **comment** saying that you did that, that's how I will know you really checked it.159160/// info161162Unfortunately, I can't simply trust PRs that just have several approvals.163164Several times it has happened that there are PRs with 3, 5 or more approvals, probably because the description is appealing, but when I check the PRs, they are actually broken, have a bug, or don't solve the problem they claim to solve. 😅165166So, it's really important that you actually read and run the code, and let me know in the comments that you did. 🤓167168///169170* If the PR can be simplified in a way, you can ask for that, but there's no need to be too picky, there might be a lot of subjective points of view (and I will have my own as well 🙈), so it's better if you can focus on the fundamental things.171172### Tests173174* Help me check that the PR has **tests**.175176* Check that the tests **fail** before the PR. 🚨177178* Then check that the tests **pass** after the PR. ✅179180* Many PRs don't have tests, you can **remind** them to add tests, or you can even **suggest** some tests yourself. That's one of the things that consume most time and you can help a lot with that.181182* Then also comment what you tried, that way I'll know that you checked it. 🤓183184## Create a Pull Request185186You can [contribute](contributing.md){.internal-link target=_blank} to the source code with Pull Requests, for example:187188* To fix a typo you found on the documentation.189* To propose new documentation sections.190* To fix an existing issue/bug.191 * Make sure to add tests.192* To add a new feature.193 * Make sure to add tests.194 * Make sure to add documentation if it's relevant.195196## Help Maintain Typer197198Help me maintain **Typer**! 🤓199200There's a lot of work to do, and for most of it, **YOU** can do it.201202The main tasks that you can do right now are:203204* [Help others with questions in GitHub](#help-others-with-questions-in-github){.internal-link target=_blank} (see the section above).205* [Review Pull Requests](#review-pull-requests){.internal-link target=_blank} (see the section above).206207Those two tasks are what **consume time the most**. That's the main work of maintaining Typer.208209If you can help me with that, **you are helping me maintain Typer** and making sure it keeps **advancing faster and better**. 🚀210211## Join the chat212213Join the 👥 <a href="https://discord.gg/VQjSZaeJmf" class="external-link" target="_blank">FastAPI and Friends Discord chat server</a> 👥 and hang out with others in the community. There's a `#typer` channel.214215/// tip216

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 217why, one step back
217For questions, ask them in <a href="https://github.com/fastapi/typer/discussions/new?category=questions" class="external-link" target="_blank">GitHub Discussions</a>, there's a much better chance you will receive help there.

🔧 Enable auto dark mode from system (#908)Sebastián Ramírezbefore adoptiondcdfc68

lines 218–249why, one step back
218
219Use the chat only for other general conversations.220221///222223### Don't use the chat for questions224225Have in mind that as chats allow more "free conversation", it's easy to ask questions that are too general and more difficult to answer, so, you might not receive answers.226227In GitHub, the template will guide you to write the right question so that you can more easily get a good answer, or even solve the problem yourself even before asking. And in GitHub I can make sure I always answer everything, even if it takes some time. I can't personally do that with the chat. 😅228229Conversations in the chat are also not as easily searchable as in GitHub, so questions and answers might get lost in the conversation.230231On the other side, there are thousands of users in the chat, so there's a high chance you'll find someone to talk to there, almost all the time. 😄232233## Sponsor the author234235You can also financially support the author (me) through <a href="https://github.com/sponsors/tiangolo" class="external-link" target="_blank">GitHub sponsors</a>.236237There you could buy me a coffee ☕️ to say thanks. 😄238239## Sponsor the tools that power Typer240241As you have seen in the documentation, Typer is built on top of Click.242243You can also sponsor:244245* Pallets Project (Click maintainers) <a href="https://palletsprojects.com/donate" class="external-link" target="_blank">via the PSF</a> or <a href="https://tidelift.com/subscription/pkg/pypi-click" class="external-link" target="_blank">via Tidelift</a>246247---248249Thanks! 🚀