Skip to content

Comments

Implement the Python bindings#3

Merged
chmodas merged 1 commit intotrunkfrom
python-library
Jan 22, 2026
Merged

Implement the Python bindings#3
chmodas merged 1 commit intotrunkfrom
python-library

Conversation

@chmodas
Copy link
Member

@chmodas chmodas commented Jan 22, 2026

No description provided.

@chmodas chmodas changed the title Implement the Python bindings... Implement the Python bindings Jan 22, 2026
This commit introduces the `slonq-python` package, providing asynchronous
Python bindings for the `slonq` PostgreSQL job queue using `pyo3` and
`maturin`.

Key features and implementation details:

- Async/Await support: Leverages `pyo3-async-runtimes` to provide a fully
  asynchronous API, allowing seamless integration with Python's `asyncio` event
  loop for all database operations.
- API parity: Delivers the full feature set of the core Rust library, including
  idempotent enqueuing, atomic dequeueing via `FOR UPDATE SKIP LOCKED`,
  lease-based `ack`/`nack` semantics, lease extensions via `touch`, and
  high-throughput `ack_batch` support.
- Type safety & DX: Includes comprehensive PEP 561 type stubs (`.pyi`) with
  detailed docstrings, providing first-class IDE support, autocompletion,
  and static type checking.
@chmodas chmodas marked this pull request as ready for review January 22, 2026 20:00
@chmodas chmodas merged commit 07aacc5 into trunk Jan 22, 2026
1 check passed
@chmodas chmodas deleted the python-library branch January 22, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant