Small python library to allow "async chaining"
Project description
asyncchain
Small python library to allow "async chaining"
Usage
import asyncio
from asyncchain import ChainMeta
class Target(metaclass=ChainMeta):
async def first(self):
print("first")
async def second(self):
print("second")
async def main():
my_target = Target()
await my_target.first().second()
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncchain-0.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for asyncchain-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a16d5f4aebd81b8ee5dacb9b91ba3f6b021ddb7ef0064d76598f5a076e42d5 |
|
MD5 | c111b97e5e7a3ddb10d2d4ed8f040406 |
|
BLAKE2b-256 | 3768ede7bcb41464ec5b2fdd20e63d7cc616f83dbd33d9d0d85cfb2eff624f00 |