command line client for tldr
Project description
A Python command line client for tldr.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file tldr-0.4.1.tar.gz
.
File metadata
- Download URL: tldr-0.4.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f107b05807efe77cb93e80266bdb61888a040c8aaf4ad4c31f90af86185af965 |
|
MD5 | dd351c3082ec8bae778a69617e81321b |
|
BLAKE2b-256 | f4506c2a7474accb2f22a85d6e0f2124afbdcbe06e73f91abd1a6e24e9045ad7 |
File details
Details for the file tldr-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: tldr-0.4.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7db88fcc613d4fd67889153600790d0f4f017fbafed370d7672adb0a715c217 |
|
MD5 | 28a65122e65b29d1e4fa0bcfff071636 |
|
BLAKE2b-256 | ce7baadec9785fc646770a9da9f0a53b2699535874122c1bf212560525ab4c30 |
File details
Details for the file tldr-0.4.1-py2-none-any.whl
.
File metadata
- Download URL: tldr-0.4.1-py2-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f245c0a82c8dda06e9e39fa7dcaac19d8c436e65a80cf15ba3f0ad5d35e9589 |
|
MD5 | 394b58f5729675f33bb6e6823848d710 |
|
BLAKE2b-256 | 379c4785ec4e61a8f5e1d19f6b49bf1b666dd9ad2185d9fb5eae0f3079e9f55d |