Metadata-Version: 2.1
Name: invisibleroads-macros-process
Version: 0.2.0
Summary: Shortcut functions for process operations
Home-page: https://github.com/invisibleroads/invisibleroads-macros-process
Author: Roy Hyunjin Han
Author-email: rhh@crosscompute.com
Keywords: invisibleroads
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Provides-Extra: test

# Shortcut Functions for Process Operations

## Install

```bash
pip install invisibleroads-macros-process
```

## Use

```python
import logging
from invisibleroads_macros_process import LoggableProcess, StoppableProcess

logging.basicConfig(level=logging.DEBUG)

def f():
    print('whee')

process = LoggableProcess(name='MY-LOGGABLE', target=f, daemon=True)
process.start()

process = StoppableProcess(name='MY-STOPPABLE', target=f, daemon=True)
process.start()
process.stop()
```

## Test

```bash
git clone https://github.com/invisibleroads/invisibleroads-macros-process
cd invisibleroads-macros-process
pip install -e .[test]
pytest --cov=invisibleroads_macros_process --cov-report term-missing tests
```

## 0.2

- Make it possible to specify Process class such as when using a multiprocessing context
- Replace SIGTERM with SIGINT

## 0.1

- Add LoggableProcess, StoppableProcess
