tepracli - reference impl. of tepra-lite-esp32 client
Install with pip
$ pip install tepracli
$ tepracli
Install with uvx
$ uvx tepracli
Install from source
It's recommended to enable editable mode -e; pull this repository from remote and tepracli will be updated automatically.
$ cd tepra-lite-esp32/client
$ pip install -e .
$ python -m tepracli
Usage
Subcommands:
- print: print strings and QR code
- battery: get remaining battery
Usage: tepracli print [OPTIONS]
Options:
-a, --address TEXT The IP address or the URL of TEPRA Lite LR30. (default = tepra.local)
--preview Generate preview.png without printing.
-f, --font TEXT Path or name of font. (default = bundled Adobe
Source Sans)
-S, --fontsize INTEGER RANGE Font size. [px] (default = 30) [x>=0]
-d, --depth INTEGER RANGE Depth of color. (default = 0) [-3<=x<=3]
-m, --message TEXT Print a text.
-s, --space TEXT Leave space between parts. [px]
-q, --qr TEXT Draw a QR code.
--help Show this message and exit.
Print examples
| Options | Output |
|---|---|
-m Hello |
|
-S 15 -m Hello |
|
-S 50 -m Hello |
|
-m Hello -m World |
|
-m Hello -s 10 -m World |
|
-q "http://example.com" -s 20 -m "http://example.com" |
Get Remaining Battery
It's not really useful: LR30 replies 99% as the percentage of remaining battery every time.
Usage: tepracli battery [OPTIONS]
Options:
-a, --address TEXT The IP address or the URL of TEPRA Lite LR30. (default = tepra.local)
--help Show this message and exit.
$ tepracli battery -a ${TEPRA_ADDRESS}
99%
Metadata
Release files for tepracli 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tepracli-1.1.1.tar.gz | 165.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tepracli-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 328.3 kB
Release files / tepracli-1.1.1.tar.gz
| Download URL | tepracli-1.1.1.tar.gz |
|---|---|
| Size | 165.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fc9e4e75e455a14638ffab4991a733a93a0bc1a17928fdb8ceb2e3540eb4f12
|
|
BLAKE2b-256 checksum How to use checksums |
0c09f7b1813fcb0ce3bc838acff701ebd41eb9a7b185f0417f50c44792b04e8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / tepracli-1.1.1-py3-none-any.whl
| Download URL | tepracli-1.1.1-py3-none-any.whl |
|---|---|
| Size | 163.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78faea264c92830d196b4d5eb39848e3141af7a253f43a1b26472899b95f51c3
|
|
BLAKE2b-256 checksum How to use checksums |
f0c134fcd5f76024ed402a12ce571145dc4651df58efc7fff00adfc542f3b99e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for tepracli 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.