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.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for asyncchain-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cbee519b76b118b4749dd25b75acef107df1e07df2e7e3d419994db081d9c29 |
|
MD5 | 267ade4d3d3b11129f0a870a3611d266 |
|
BLAKE2b-256 | 65ea7a5eadf66329b1e4d3bb798e67288d4d9c79ec068ffaf2d49a6ca90e4d69 |