Skip to content

Releases: tldr-pages/tldr-python-client

3.3.0

29 Jun 04:33
3.3.0
3bc6ba4
Compare
Choose a tag to compare

Changelog

Breaking

  • Drop support for EOL versions Python 3.6 and Python 3.7.

Bugfixes

  • Return str instead of list when executing tldr -l (thanks @uunnxx)
  • Use pathlib instead of os.path (thanks @vitorhcl)
  • Respect language settings when geting a list of commands (thanks @frenzymadness)
  • Fix --search option (thanks @CleanMachine1)

Features

  • Add support for BSD platform directories (thanks @vitorhcl)
  • Add --update long option (thanks @owenvoke)
  • Add support for fetching individual translation archives for cache (thanks @SaurabhDRao)
  • Add support to show message for other versions of the same page in other platforms (thanks @Jaimepas77)
  • Update DOWNLOAD_CACHE_LOCATION to use GitHub Releases (thanks @vitorhcl)
  • Add macos alias for osx directory and update --platform option (thanks @patricedenis)
  • Add support for escaping placeholders for special pages (thanks @kbdharun)
  • Add support for Python 3.11 and Python 3.12 (thanks @kbdharun)
  • Add support for Client Specification v2.2

Chronological Changelog

New Contributors

Full Changelog: 3.2.0...3.3.0

3.2.0

09 May 16:12
3.2.0
66706e5
Compare
Choose a tag to compare

Bugfixes

  • Fix forcing color through termcolor
  • Change non-word regex to be POSIX compliant (thanks @stevejbrown)
  • Update pages source to use the main branch
  • Add a timeout to the URL requests (thanks @Jaimepas77)

3.1.0

21 Feb 19:16
f525217
Compare
Choose a tag to compare

Features

Bugfixes

  • Command names are lowercased before searching for page
  • Fix color printing for tokens that end with curly braces

3.0.0

13 Nov 09:15
5cf0609
Compare
Choose a tag to compare

We have moved from argcomplete to shtab for
providing shell completions. This library is more efficient on doing tab completion, avoiding costly time it takes for the python
intrepreter to parse tldr to get options.

See Readme#autocomplete for details on setting up shtab. Please
see the argcomplete README for details on where to look to remove its provided completions.

Features

  • breaking Move to shtab for tab completion support (thanks @casperdcl)
  • Change default max cache age from 1 day to 7 days, can get prior behavior by setting the TLDR_CACHE_MAX_AGE environment variable
  • Install manpage in pypi package
  • Add option to print raw markdown (thanks @dadav)
  • Support Python 3.10

2.0.0

24 Jul 17:58
39b4d0c
Compare
Choose a tag to compare

Features

  • breaking Drop support for Python 3.5 (thanks @nebnola)
  • Allow overriding system language using TLDR_LANGUAGE environment variable (thanks @nebnola)

Fixes

  • Improve wording of missing page error message (thanks @CleanMachine1)

1.2.1

01 Apr 21:54
f24f81f
Compare
Choose a tag to compare

Fixes

  • Fallback to using linux as platform if no pages folder found for current platform

1.2.0

01 Feb 01:58
5fedb2b
Compare
Choose a tag to compare

Features

  • Set --help usage line to match node client (#149)
  • Get remote resource only after all cache failed (#151) (thanks @ramwin)

1.1.0

18 Oct 00:17
Compare
Choose a tag to compare
  • Add autocomplete and --list command (thanks @wcheang)
  • Exit with code 1 when command not found (thanks @samuel-w)
  • Always fall back to English for LANG / LANGUAGE env vars (thanks @columbarius)
  • Check that cache directory exists on platform before using it