Skip to main content

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


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.6.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chalk_fancy-1.0.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file chalk_fancy-1.0.6.tar.gz.

File metadata

  • Download URL: chalk_fancy-1.0.6.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for chalk_fancy-1.0.6.tar.gz
Algorithm Hash digest
SHA256 a02ffb511d04d2538bce60bbdaef2e9b6e6fa906f112dcc150957bbb464a9baa
MD5 f4cecc5c98afc047c9461ff7b9f82e80
BLAKE2b-256 cd449be3cfcac5e6b016ea4d867b31061fee7f7c551cbfaafecfdb37bfed2fa3

See more details on using hashes here.

File details

Details for the file chalk_fancy-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: chalk_fancy-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for chalk_fancy-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb61415b362fc684a57e315e7f67ca102a3a6e7eb393f89b67d570e5cf1c035
MD5 c39bc19aef22304dc7c70a6c553791f9
BLAKE2b-256 692887c39404d34bb3e9da0a2a9f3085b060dc3fcd520ac5ceb7febfd6fe7281

See more details on using hashes here.

Supported by

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