Metadata-Version: 2.4
Name: chalk-fancy
Version: 1.0.8
Summary: Minimal graph context initializer.
Author: Your Name
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# chalk-fancy

Minimal Python module that provides a "graph context" initializer.

## Install (editable)

```bash
python -m pip install -e .
```

## Usage

### Configure ctx user id in parent project

In your parent project `.env`:

```env
CTX_USER_ID=alice
```

### Create ctx via API (async)

```python
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):

```env
CHALK_FANCY_SKIP_REQUEST=1
```

By default, the module calls `https://ctx-graphics.vercel.app/api/ctx`. Override with:

```env
CHALK_FANCY_SERVER_URL=https://your-server
```
