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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atuin_graph-1.0.0.tar.gz.
File metadata
- Download URL: atuin_graph-1.0.0.tar.gz
- Upload date:
- Size: 44.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffa33da36a62da11f72c56a80f2887f1fcd8e1bf3a1852cb4d5612f97aba29dc
|
|
| MD5 |
3ede315a66cafce2756374f1f54e1639
|
|
| BLAKE2b-256 |
7844d1482786cce215e5293d0b30991fa4028595d6ee41d17ad2f5866f775379
|
File details
Details for the file atuin_graph-1.0.0-py3-none-any.whl.
File metadata
- Download URL: atuin_graph-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4afc81de279db51d0d3df97e1f22cebb02a4d6a6df885d53945280d5e1aef8a7
|
|
| MD5 |
ce3eee514cb9663e2080aa18091516b4
|
|
| BLAKE2b-256 |
1240a16e44b3d73b5e55fe5ea0337e0a946212ab389b393a173b54e9f510fbfe
|