Skip to main content

command line client for tldr

Project description

PyPI Release Build Status

A Python command line client for tldr.

tldr screenshot

tldr screenshot

Installation

$ pip install tldr

Usage

  • tldr <command>

Configuration

You can configure the behaviour and output of the tldr client by setting environment variables. For example, in the .bashrc file:

export TLDR_COLOR_BLANK="white"
export TLDR_COLOR_NAME="cyan"
export TLDR_COLOR_DESCRIPTION="white"
export TLDR_COLOR_EXAMPLE="green"
export TLDR_COLOR_COMMAND="red"
export TLDR_COLOR_PARAMETER="white"
export TLDR_CACHE_ENABLED=1
export TLDR_CACHE_MAX_AGE=720

Cache

  • TLDR_CACHE_ENABLED (default is 1):

    • If set to 1, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn’t exist or is too old.

    • If set to 0, the client will fetch from the internet, and fall back to the cache if the page cannot be fetched from the internet.

  • TLDR_CACHE_MAX_AGE (default is 24): maximum age of the cache in hours to be considered as valid when TLDR_CACHE_ENABLED is set to 1.

Colors

Values of the TLDR_COLOR_x variables may consist of three parts: * Font color, required: blue, green, yellow, cyan, magenta, white, grey, red * Background color: on_blue, on_cyan, on_magenta, on_white, on_grey, on_yellow, on_red, on_green * Additional effects, which depends on platform: reverse, blink, dark, concealed, underline, bold

Values of background color and additional effect may be omitted: * TLDR_COLOR_DESCRIPTION="white" for white text on default system background color without any effects * TLDR_COLOR_NAME="cyan dark" for dark cyan text on default system background color * TLDR_COLOR_PARAMETER="red on_yellow underline" for underlined red text on yellow background

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tldr-0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tldr-0.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

tldr-0.3-py2-none-any.whl (10.5 kB view details)

Uploaded Python 2

File details

Details for the file tldr-0.3.tar.gz.

File metadata

  • Download URL: tldr-0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tldr-0.3.tar.gz
Algorithm Hash digest
SHA256 f3a9e74d99965ed92b581ec5489be1c5bc95e5a01e6d49a0843fec06e0d39e99
MD5 a6a995e5fdcd5fcf6064fa2f85a0afd8
BLAKE2b-256 0b748ec1a21736b84a08056b7f440653c38e3ed88ad81ede820ab44defa3a9f5

See more details on using hashes here.

File details

Details for the file tldr-0.3-py3-none-any.whl.

File metadata

  • Download URL: tldr-0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tldr-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ef9de714719c7b2fcdc6d578fff4c9ad8e6e0f91d1a4c8cd077bb8290d18941
MD5 81794669b350ba596c424b4d973859dc
BLAKE2b-256 ad489f48f4ce20c81a53647ce1fb1441805934cfd5c75680c713384b8f4a03b6

See more details on using hashes here.

File details

Details for the file tldr-0.3-py2-none-any.whl.

File metadata

  • Download URL: tldr-0.3-py2-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tldr-0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 3b48885dc177b61586c210f9200f6dc523bddb8f04d4e64e8e2b4050982584d6
MD5 f73fe58e028305ea446438ec732bbe1b
BLAKE2b-256 2661f0ff26caf55f9c93aa3302350d3430910e88f2a7850d2bcbe8683207689d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page