https://github.com/starrfox/asyncchain
Small python library to allow "async chaining"
https://github.com/starrfox/asyncchain
Last synced: about 1 year ago
JSON representation
Small python library to allow "async chaining"
- Host: GitHub
- URL: https://github.com/starrfox/asyncchain
- Owner: StarrFox
- License: mit
- Created: 2020-09-10T01:39:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:33:11.000Z (over 2 years ago)
- Last Synced: 2025-02-14T16:49:46.421Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asyncchain
Small python library to allow "async chaining"
## Usage
```py
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())
```