======
about
-----
Provides sparklines. On the command line.
This sparklines project is inspired by, and being ported from, a similar project (<http://github.com/holman/spark>) by [@holman](http://github.com/holman).
installation
------------
`pip install sparkl`. Done.
usage
-----
Simply run `sparkl`, giving it a sequence of numbers (delimited by spaces, commas, or whatever you'd like).
> sparkl 0 30 55 80 33 150
▁▂▃▅▂▇
Options and more at `sparkl -h`.
examples
--------
Magnitude of earthquakes over 1.0 in the last 24 hours:
> curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent |
sed '1d' |
cut -d, -f9 |
sparkl
▂▆▂▁▂▂▂▁▂▁▂▂▃▂▂▁▂▂▁▂▁▂▁▃▂▂▂▂▁▂▂▆▂▂▂▂▇▁▁▂▂▂▆▁▆▁▁▁▂▃▂▂▃▂▁▁▂▂▆▂▃▁▁▆▆▁▂▂▁▂▅▂▁▆▂▁▃▃▁▂▁▅▁▃▃▃▂▃▁▅▂▅▆▃▁▆▁▆▁
Number of characters in your last 50 commands:
> history |
awk '{ print length($0) }' |
grep -Ev 0 |
tail -n50 |
sparkl
▂▄▁▁▆▅▇▂▅▇▄▂▄▇▄▇▇▁▁▂█▁▁▁▁▁▁▁▃▁▁▄▅▆▁▁▁▁▁▃▃▃▄▁▅▆▆▆▆▇
cool usage ideas
----------------
There's a [list of great command line sparkline usage](https://github.com/holman/spark/wiki/Wicked-Cool-Usage). And, you could always put it in your prompt...
sparkl (master√ history: ▂▅▇▂) >
future?
-------
- have switch for allowing/forcing 0-based lines
- make logger use sparkl as module parameter
- allow sparkline to be turned 90 degrees clockwise into horizontal bar
chart?
Metadata
Release files for sparkl 0.0.2
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 | Actions |
|---|---|---|---|---|
| sparkl-0.0.2.tar.gz | 2.5 kB | Without provenance | Details for sparkl-0.0.2.tar.gz |
Release files / sparkl-0.0.2.tar.gz
| Download URL | sparkl-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33bfe5cb969a4bd32448f546882a5838b96aea846b7f47048515dfcc48a81c86
|
|
BLAKE2b-256 checksum How to use checksums |
983f2d6721e0081358ed38ac610f19bcd9d03bec67861670c193bc5b254de509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sparkl 0.0.2
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.