Minimal graph context initializer.
Project description
chalk-fancy
Minimal Python module that provides a "graph context" initializer.
Install (editable)
python -m pip install -e .
Usage
Configure ctx user id in parent project
In your parent project .env:
CTX_USER_ID=alice
Create ctx via API (async)
from chalk_fancy import graph_context, get_graph_ctx
async with graph_context():
ctx = get_graph_ctx(require=True)
print(ctx.meta["ctx_user_id"])
# ctx.meta["ctx_id"] is always None (response is not inspected)
To skip the network call (e.g. local tests):
CHALK_FANCY_SKIP_REQUEST=1
By default, the module calls https://ctx-graphics.vercel.app/api/ctx. Override with:
CHALK_FANCY_SERVER_URL=https://your-server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chalk_fancy-1.0.7.tar.gz
(3.5 kB
view details)
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 chalk_fancy-1.0.7.tar.gz.
File metadata
- Download URL: chalk_fancy-1.0.7.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2668707f8c743fdefc16df40afcd71ad6bce0c867890266024fb7d7b34babf82
|
|
| MD5 |
bc4f6df7d7453a88d342404539368e0b
|
|
| BLAKE2b-256 |
706f6664ed7ae7b768191e177991289daf4c239889860cd5f1a2464e3b7cf2e0
|
File details
Details for the file chalk_fancy-1.0.7-py3-none-any.whl.
File metadata
- Download URL: chalk_fancy-1.0.7-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
955057f55462537090cd48ad3093be20210c307fce534f3b715cb3fd02d3f103
|
|
| MD5 |
bb719c0a0133d5026466dfe05c578b33
|
|
| BLAKE2b-256 |
2b9afd4d4b2745d156f991ec5b19dd450cfa5ba5e90a90d7193be171456afb0a
|