Metadata-Version: 2.1
Name: simple-background-task
Version: 0.1.0
Summary: A background task base on thread,easy to integer with any framework
Home-page: https://github.com/igzhang/simple_background_task.git
Author: fallthrough
Author-email: rainbroadcast@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown

# simple_background_task  

## Features  
- execute background task,with thread
- support multiple queue,eg memory/rocketmq(todo)
- easy to integrate with frameworks

## Install
```shell script
pip install simple_background_task
```

## Usage
```python
# start main process
from simple_background_task import BackgroundTask

BackgroundTask().start()

# start a background task
from simple_background_task import defer

def test_job():
    pass

defer(
    func=test_job,
    arguments={
        "args": [1, 2],
        "kwargs": {"a": "b"}
    }
)
```

## Test
```shell script
python -m pytest tests
```


