Metadata-Version: 2.1
Name: ataskq
Version: 0.6.1
Summary: Easily create and run tasks (=function calls) with almost seamless transition between Local development and Distributed deployment.
Project-URL: Homepage, https://github.com/innoviz-swt/a-task-queue
Project-URL: Issues, https://github.com/innoviz-swt/a-task-queue/issues
Keywords: python,task,queue,distributed systems,distributed computing
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# a-task-queue
Easily create and run tasks (=function calls) with almost seamless transition between Local development and Distributed deployment."

## Usage
```python
from ataskq import TaskQ, Task, targs

# create  job
tr = TaskQ().create_job()

# add tasks
# entrypoint stands for the relevant function import statement
# (here we use build in demo functions)
tr.add_tasks([
    Task(entrypoint='ataskq.tasks_utils.hello_world'),
    Task(entrypoint='ataskq.tasks_utils.dummy_args_task', targs=targs(
        'arg0', 'arg1', kwarg1=10, kwarg2='this is kwarg2')),
])

# run the tasks
tr.run() # to run in parallel add concurrency=N
```

more example can be found [here](./examples)

## Contributer
setup project git hooks
```
contrib/setup.sh
```

### vs code
to get nominal vscode settings run
```
./contrib/.vscode/init.sh
```
