Skip to main content

ark-framework

ark-framework provides a simple asynchronous task decorator that allows lightweight parallelism using Python threads. It includes support for thread pools, named task queues, and graceful task completion.

Features

  • @asynco: Decorator to run any function in a separate thread or pool
  • Asynco: Singleton manager for custom thread pools

Usage

from ark import asynco, Asynco

@asynco(pool_name="my_pool")
def background_task(x):
    print(f"Running task {x}")

Asynco.create_pool("my_pool", size=5)

for i in range(10):
    background_task(i)

Asynco.complete_all_task("my_pool")

Release files for ark-framework 0.0.4

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

Source distribution (sdist)

Source distribution for ark-framework 0.0.4
File Size Uploaded
ark_framework-0.0.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ark-framework 0.0.4
File Interpreter ABI Platform
ark_framework-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / ark_framework-0.0.4.tar.gz

Download URL ark_framework-0.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a74162f0582ada94f1546f9fc01c612ce588758eea28e1f479b102416dbd1eab
BLAKE2b-256 checksum
How to use checksums
b0903bff4b2b61b48063858a2178486f270c4afefd52db3683b2ee6267b35e27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / ark_framework-0.0.4-py3-none-any.whl

Download URL ark_framework-0.0.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6662a06adc1d628f4a758a39d180c94876ea1042b5c0fa9fbb2e23e13ba8a45c
BLAKE2b-256 checksum
How to use checksums
6d57eb57fd75edd3eedc6f705f40303c3d3d2b961ce0c71ac1885801435c5d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

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