Metadata-Version: 2.4
Name: ark-framework
Version: 0.0.4
Summary: A lightweight async task framework using thread pools
Home-page: https://github.com/jobyywilson/ark-framework
Author: Joby Wilson Mathews
Author-email: jobyywilson@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# 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

```python
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")
