PG-AsynQ
PG-AsynQ is a Python library that provides an asynchronous transaction/message queue based on PostgreSQL. It is inspired by pq, but is built for use in asynchronous contexts such as FastAPI, and uses psycopg 3.x for database access.
Non blocking queuing is implemented with a combination of LISTEN/NOTIFY and SKIP LOCKED. This means that this
library is safe to use across multiple containers/processes without duplicated processing of messages.
How to use
- Ensure you create the tables in migrations using your preferred migration tool
- See the examples for how to use the library
Features
- Create and consume queues dynamically at runtime
- Consume queue from any number of consumers
- Retain messages until a consumer connects
- In-order processing of messages
- Message retention policies (delete older than x)
Metadata
Release files for pg-asynq 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pg_asynq-0.2.0.tar.gz | 3.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pg_asynq-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / pg_asynq-0.2.0.tar.gz
| Download URL | pg_asynq-0.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db023bacc69b6404f7d11c5fe775abc8ae641ed86a9ea413322701f0075e6052
|
|
BLAKE2b-256 checksum How to use checksums |
3de0ed3df24835f30acda467c09340c89bcbf86792c81707629fd0acaac6f6dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 8, 2024.
Transparency logRelease files / pg_asynq-0.2.0-py3-none-any.whl
| Download URL | pg_asynq-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
829d4cc7a8c788425e6e8dbd326627c1af3332f6042174d88fbebc4546ee9974
|
|
BLAKE2b-256 checksum How to use checksums |
4178b7d67f955a2439160de2ee8512a3e4e2f480aa6c394ea86d3da442025a7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 8, 2024.
Transparency logSecurity for pg-asynq 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pg_asynq-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 8, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.