Skip to main content

activity graph for atuin

Project description

atuin-graph

activity graph for atuin self hosted sync server

It connects to the PostgreSQL atuin database, using by default the db_uri setting from atuin server.toml config file

Two ways to run it are available, whether in command line or as a flask web application

Required Python version: >= 3.11 (uses the tomllib parser)

installation

pip install atuin-graph

cli / standalone

- atuin-graph: takes a username as input and creates a user.png file

The -until parameters allows to query up to a max date, this is useful to create one png per day and create a gif with imagemagick for example (convert -delay 10 -loop 1 *.png atuin.gif)

usage: atuin-graph [-h] --user USER [--until UNTIL]

                      [--atuin_server_config ATUIN_SERVER_CONFIG]

web app

This package also ships a Flaskapp which dynamically serves a png for a given user and optional date

https://my-atuin-server/graph/username[/yyyy-mm-dd]

one way to run it:

GUNICORN_CMD_ARGS="--bind=127.0.0.1:8889" SCRIPT_NAME=/graph gunicorn atuin_graph.web:app

and on nginx side

location /graph {

            proxy_bind              $server_addr;
            proxy_pass              http://127.0.0.1:8889;
    }

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

atuin_graph-1.0.2.tar.gz (994.1 kB view details)

Uploaded Source

Built Distribution

atuin_graph-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file atuin_graph-1.0.2.tar.gz.

File metadata

  • Download URL: atuin_graph-1.0.2.tar.gz
  • Upload date:
  • Size: 994.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for atuin_graph-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e97ffdda3a540440f2c7463216400389ca4d7bc37db16aaa82473edf018185eb
MD5 29d6443a590999f734aedb13d0650849
BLAKE2b-256 56e217909309c0a4731ad47a14ff8af60a4e12933d268ebc2f1e94fc274fbbf7

See more details on using hashes here.

File details

Details for the file atuin_graph-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: atuin_graph-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for atuin_graph-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f13956edcd3d427315cb69be03b2917e964c85db394ff5f070f031ee4e674c60
MD5 fd0e207e18737f3c15dea235a75c2eb9
BLAKE2b-256 1fdfe710fecefda598a2b5009f03befdafc926bc2c32455bc6822ecdb2354657

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