Skip to main content

Desc

Tools for creating asynchronous scripts easily.

keywords: tools,asyncio

Feature

  • Task pool

  • Actor and Actor Manager

Example

async with AioFixedTaskPoolSimple() as task_pool:
    print(f"test pool size {task_pool.size}")
    print("test 4 task with pool size 3")
    await asyncio.gather(
        task_pool.submit(test, func_args=["c"]),
        task_pool.submit(test, func_args=["b"]),
        task_pool.submit(test, func_args=["a"]),
        task_pool.submit(test, func_args=["d"])
    )

class Pinger(AioActor):
    async def receive(self, message):
        print(message)
        try:
            await ActorManager.get_actor("Ponger").Send('ping')
        except Exception as e:
            print(f"receive run error {e}")
        finally:
            await asyncio.sleep(0.5)

Install

  • python -m pip install aio_parallel_tools

Document

https://python-tools.github.io/aio_parallel_tools/

Change Log

version 0.0.1

  • created this project

Metadata

Release files for aio_parallel_tools 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio_parallel_tools 0.0.1
File Size Uploaded Provenance Actions
aio_parallel_tools-0.0.1.tar.gz 17.2 kB Without provenance Details for aio_parallel_tools-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aio_parallel_tools 0.0.1
File Interpreter ABI Platform Actions
aio_parallel_tools-0.0.1-py3-none-any.whl Python 3 none any Details for aio_parallel_tools-0.0.1-py3-none-any.whl

Total release size: 55.1 kB

Release files / aio_parallel_tools-0.0.1.tar.gz

Download URL aio_parallel_tools-0.0.1.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba0e4dea069b32794cf33d07104e63d26dc454eb4736cf0a540c32c109eb65db
BLAKE2b-256 checksum
How to use checksums
5a3a4186a7da2ebe1bde75df01e5d67eadc250f9a28bd25f927420fe4d10f295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / aio_parallel_tools-0.0.1-py3-none-any.whl

Download URL aio_parallel_tools-0.0.1-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98f63f56ad423efa84f49e2bd7da8ce974227f87683f3ede8c333437ce1082b1
BLAKE2b-256 checksum
How to use checksums
793293d4c5461e4cb9c8f147c2936c32c392a29e920ef59eb4991c23db4f7fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for aio_parallel_tools 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page