Skip to main content

Integrate rich and sparklines libraries

Project description

Something like this:

import os
import random
import time

from rich.console import Console

from rich_sparklines import Graph

console = Console()


def main():
    graph = Graph("connections", lambda: random.randint(0, 20))
    while True:
        graph.update()

        os.system("cls")

        console.print(graph)

        time.sleep(1)


if __name__ == "__main__":
    main()

will produce something like this:

Example

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

rich_sparklines-0.1.5.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

rich_sparklines-0.1.5-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file rich_sparklines-0.1.5.tar.gz.

File metadata

  • Download URL: rich_sparklines-0.1.5.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Windows/10

File hashes

Hashes for rich_sparklines-0.1.5.tar.gz
Algorithm Hash digest
SHA256 999ed9362c9074598d3339c5cdbc3569cdc3f885fc3328d7626a72043872b5da
MD5 e038bc0111ded912b304df245d424939
BLAKE2b-256 5b47c640715cec3a621352d2808e2cca560cbf09af6007f82cb04ed5b940a89c

See more details on using hashes here.

File details

Details for the file rich_sparklines-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for rich_sparklines-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2001de32c6dbe33a925a5cd53907c0b4e06e1eabe507d3cbf26f25ea7e02a126
MD5 037543546bcf8cb1b0b12acb81a57060
BLAKE2b-256 1eb6795e6767460b7ce3c7ff7493664d4637a5ecdb1ba09a9a8d7c55efadd98a

See more details on using hashes here.

Supported by

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