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 Flask app which dynamically serves a png for a given user and optional dates

📅️
from a date https://my-atuin-server/graph/username/from/yyyy-mm-dd
until a date https://my-atuin-server/graph/username/until/yyyy-mm-dd
https://my-atuin-server/graph/username/yyyy-mm-dd
between dates https://my-atuin-server/graph/username/yyyy-mm-dd/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.1.0.tar.gz (993.7 kB view details)

Uploaded Source

Built Distribution

atuin_graph-1.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atuin_graph-1.1.0.tar.gz
  • Upload date:
  • Size: 993.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 113697c80265e41d1a225bd73d1513839d496c7a17ba9c95c116f48aaa4c84ac
MD5 116d364c69444e3a6e252be085d33cf4
BLAKE2b-256 a8140885fac80b5908aca21c3dfc1fd2fc8154e7a5119cfcb0dd6bf8113cc7cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atuin_graph-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e23bb8d1558c59945c8c6497e445e80cd406bfcabf7b0924b41c9101354464e
MD5 f553b5953d4972204f242d6fb4f7d43e
BLAKE2b-256 f3f432947b7f4bb4c8130b0c7b01a3af664cb5a9481fd7a27a4db5df696d1593

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