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 poolAsynco: 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)
| File | Size | Uploaded | |
|---|---|---|---|
| ark_framework-0.0.4.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|