Skip to main content

Small python library to allow "async chaining"

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncchain-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file asyncchain-0.1.1.tar.gz.

File metadata

  • Download URL: asyncchain-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Windows/10

File hashes

Hashes for asyncchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e12a0e4c7e32b6d0c4f3833019ae25930b3ff455c2b3ed92869135d9b72d8a9
MD5 6df321ba168f401edd8e98405db56d62
BLAKE2b-256 ad328f8fac6d4fee222145f388935e6b1f8f1c2dc4056e493ae67fca94be3e19

See more details on using hashes here.

File details

Details for the file asyncchain-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: asyncchain-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Windows/10

File hashes

Hashes for asyncchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cbee519b76b118b4749dd25b75acef107df1e07df2e7e3d419994db081d9c29
MD5 267ade4d3d3b11129f0a870a3611d266
BLAKE2b-256 65ea7a5eadf66329b1e4d3bb798e67288d4d9c79ec068ffaf2d49a6ca90e4d69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page