Skip to content

Releases: tiangolo/typer

0.9.1

23 Mar 15:22
Compare
Choose a tag to compare

Fixes

  • 🐛 Add missing default_factory in Argument overloads. PR #750 by @m9810223.
  • 🐛 Fix preserving case in enum values. PR #571 by @avaldebe.

Docs

  • 📝 Remove obsolete references to --install-completion for typer.run() scripts. PR #595 by @tiangolo.

  • 📝 Update docs example for a Typer/Click group to make new subcommands explicit. PR #755 by @svlandeg.

  • 📝 Update docs for building a package, file structure example. PR #683 by @davidbgk.

  • 📝 Update link in docs to the newest stable version of click. PR #675 by @javier171188.

  • 🔧 Add CITATION.cff file for academic citations. PR #681 by @tiangolo.

  • ✏ Fix typo in docs/tutorial/exceptions.md. PR #702 by @menzenski.

  • ✏ Fix typo in docs/tutorial/options/name.md. PR #725 by @bwagner.

  • ✏ Fix typo in docs/tutorial/arguments/optional.md. PR #602 by @tadasgedgaudas.

Internal

  • ⬆ [pre-commit.ci] pre-commit autoupdate. PR #606 by @pre-commit-ci[bot].
  • 👷 Install MkDocs Material Insiders only when secrets are available, for Dependabot. PR #685 by @tiangolo.
  • ⚒️ Update build-docs.yml, do not zip docs. PR #645 by @tiangolo.
  • 👷 Deploy docs to Cloudflare. PR #644 by @tiangolo.
  • 👷 Upgrade CI for docs. PR #642 by @tiangolo.
  • 👷 Update token for latest changes. PR #635 by @tiangolo.
  • 👷 Update CI workflow dispatch for latest changes. PR #643 by @tiangolo.
  • 👷 Update token for Material for MkDocs Insiders. PR #636 by @tiangolo.
  • 🐛 Fix internal type annotations and bump mypy version. PR #638 by @paulo-raca.
  • 💡 Add comments to document overload definitions in code. PR #752 by @svlandeg.
  • 🔥 Remove Jina QA Bot as it has been discontinued. PR #749 by @tiangolo.
  • 👷 Update build docs CI cache paths. PR #707 by @tiangolo.
  • 👷 Upgrade latest-changes GitHub Action. PR #691 by @tiangolo.

0.9.0

02 May 05:20
Compare
Choose a tag to compare

Features

  • ✨ Add support for PEP-593 Annotated for specifying options and arguments. Initial PR #584 by @ryangalamb.
    • New docs: Optional CLI arguments.
    • It is no longer required to pass a default value of ... to mark a CLI Argument or CLI Option as required.
    • It is now recommended to use Annotated for typer.Option() and typer.Argument().
    • All the docs have been updated to recommend Annotated.

Docs

  • 📝 Update docs examples for custom param types using Annotated, fix overloads for typer.Argument. PR #594 by @tiangolo.

Internal

0.8.0

01 May 11:34
Compare
Choose a tag to compare

Features

Upgrades

Docs

  • 📝 Tweak docs, Custom Types path, main page and READAME colors, broken links. PR #588 by @tiangolo.
  • ✏ Fix spelling (shinny -> shiny). PR #586 by @runofthemill.
  • 📝 Update docs about helping Typer. PR #547 by @tiangolo.
  • ✏️ Fix typo in datetime docs. PR #495 by @huxuan.
  • ✏️ Add quotes to package name that includes brackets in docs. PR #475 by @gjolga.

Internal

0.7.0

05 Nov 19:43
Compare
Choose a tag to compare

Features

Fixes

  • 🎨 Fix type annotation of typer.run(). PR #284 by @yassu.
  • 🎨 Fix type annotations for get_group. PR #430 by @tiangolo.

Docs

  • 📝 Add note about how subcommands with function names using underscores are converted to dashes. PR #403 by @targhs.
  • 📝 Fix typo in docs at docs/tutorial/commands/help.md. PR #466 by @fepegar.
  • ✏ Fix link in docs to datetime.strptime(). PR #464 by @Kobu.
  • ✏ Update first-steps.md, clarify distinction between parameter and argument. PR #176 by @mccarthysean.
  • ✏ Fix broken plac link. PR #275 by @mgielda.

Internal

0.6.1

12 Jul 20:30
Compare
Choose a tag to compare

Fixes

  • 🐛 Fix setting FORCE_TERMINAL with colors 2. PR #424 by @tiangolo.
  • 🐛 Fix setting FORCE_TERMINAL with colors. PR #423 by @tiangolo.

0.6.0

12 Jul 19:56
Compare
Choose a tag to compare

This release adds deep integrations with Rich. ✨

rich is an optional dependency, you can install it directly or it will be included when you install with:

$ pip install "typer[all]"

If Rich is available, it will be used to show the content from --help options, validation errors, and even errors in your app (exception tracebacks).

There are new options to group commands, CLI arguments, and CLI options, support for Rich Console Markup, and more! 🎉

Features

Docs

Internal

0.5.0

06 Jul 18:56
Compare
Choose a tag to compare

Features

  • ✨ Add pretty error tracebacks for user errors and support for Rich. PR #412 by @tiangolo.

Docs

  • ✏ Fix typo, "ASCII codes" to "ANSI escape sequences". PR #308 by @septatrix.

0.4.2

02 Jul 18:04
Compare
Choose a tag to compare

Fixes

  • 🐛 Fix type conversion for List and Tuple and their internal types. PR #143 by @hellowhistler.
  • 🐛 Fix context_settings for a Typer app with a single command. PR #210 by @daddycocoaman.

Docs

  • 📝 Clarify testing documentation about checking stderr. PR #335 by @cgabard.
  • ✏ Fix typo in docs for CLI Option autocompletion. PR #288 by @graue70.
  • 🎨 Fix header format for "Standard Input" in docs/tutorial/printing.md. PR #386 by @briancohan.
  • ✏ Fix typo in docs/tutorial/terminating.md. PR #382 by @kianmeng.
  • ✏ Fix syntax typo in docs/tutorial/package.md. PR #333 by @ryanstreur.
  • ✏ Fix typo, duplicated word in docs/tutorial/options/required.md.. PR #316 by @michaelriri.
  • ✏ Fix minor typo in index.md. PR #274 by @RmStorm.
  • ✏ Fix double "and" typo in first-steps tutorial. PR #225 by @softwarebloat.
  • 🎨 Fix format in docs explaining datetime parameter type. PR #220 by @DiegoPiloni.

Internal

0.4.1

30 Mar 19:18
Compare
Choose a tag to compare

Fixes

  • 🐛 Fix import of get_terminal_size for Click 8.1.0 support and upgrade Black to fix CI. PR #380 by @tiangolo based on original PR #375 by @madkinsz.

Internal

  • 📝 Add Jina's QA Bot to the docs to help people that want to ask quick questions. PR #368 by @tiangolo.
  • 💚 Only test on push when on master, avoid duplicate CI runs from PRs. PR #358 by @tiangolo.
  • ✨ Add support for previewing docs in PRs from forks and enable MkDocs Insiders. PR #357 by @tiangolo.
  • ⬆️ Upgrade MkDocs Material, MDX-Include, and MkDocs structure. PR #356 by @tiangolo.
  • 👷 Update publish GitHub action. PR #325 by @tiangolo.

0.4.0

30 Aug 08:58
Compare
Choose a tag to compare

Features

  • ✨ Add support for Click 8 while keeping compatibility with Click 7. PR #317 by @tiangolo.

Internal