Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

StarrFox/asyncchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

Small python library to allow "async chaining"

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages