Async Chain
Utility for chaining awaits
About
This package allows library developers to write interfaces that are both fluent and async, avoiding ugly syntax, like in the following example:
async def on_message(event):
# bad!
(await (await (await event.get_message()).get_author()).send_message("Hello world!"))
Instead, by marking all involved methods with the @async_chain.method decorator:
import async_chain
class MyEvent:
@async_chain.method
async def get_message(self):
...
The following syntax can be achieved:
async def on_message(event):
# nice!
await event.get_message().get_author().send_message("Hello world!")
Links
Tools
Packaging
Documentation
Development
Metadata
Release files for async-chain 0.1.5
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 | |
|---|---|---|---|---|
| async_chain-0.1.5.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| async_chain-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / async_chain-0.1.5.tar.gz
| Download URL | async_chain-0.1.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f48678b047629d33c491432fb2942aee24a74ab2f82d3ebd15b958379d8f851
|
|
BLAKE2b-256 checksum How to use checksums |
51f55400e4e1f8be6b76058bf407b005349800eff79a6b041a9db8af8f6a7b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / async_chain-0.1.5-py3-none-any.whl
| Download URL | async_chain-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6db0ca4d53ea24b983ffd7d7ac20247589143fefcc0ac8135f96de843a39e96
|
|
BLAKE2b-256 checksum How to use checksums |
4ffecf3236a2862020692051a5815a3d6c0b26251513ecc229ed9b6717416902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for async-chain 0.1.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.