semvec/pypi-packages huggingface dataset:
gesttalt 0.7.9
A universal OAuth2.0 client written in Zig concurrency-ready
License: MIT
Requires Python: >=3.8
Keywords: gesttalt, snippets, crud, zig, ffi

# Gesttalt Python Bindings

A universal OAuth2.0 client written in Zig concurrency-ready.

## Install

```bash
pip install gesttalt
```

## Usage

```python
from gesttalt import (
    create_snippet, list_snippets, read_snippet, update_snippet, delete_snippet,
    create_post, list_posts, read_post, update_post, delete_post,
    create_note, list_notes, read_note, update_note, delete_note,
)

project_dir = "."
timestamp = 1735148400

path = create_snippet(project_dir, timestamp, "Example snippet", "const x = 1;", "example.zig")
print(path)

snippet = read_snippet(project_dir, timestamp)
print(snippet)

update_snippet(project_dir, timestamp, description="Updated description")

delete_snippet(project_dir, timestamp)

posts = list_posts(project_dir)
post = read_post(project_dir, "hello-world")
create_post(project_dir, "hello-world", "Hello", "My first post", tags=["zig", "oauth2"])
update_post(project_dir, "hello-world", title="Updated title")
delete_post(project_dir, "hello-world")

notes = list_notes(project_dir)
note = read_note(project_dir, "1735148400")
create_note(project_dir, timestamp, body="Quick update")
update_note(project_dir, "1735148400", body="Edited")
delete_note(project_dir, "1735148400")
```

## Development

```bash
# From project root
zig build -Doptimize=ReleaseFast

cd bindings/python
pip install -e .
pytest
```

## License

MIT