Shortcut functions for process operations
Project description
Shortcut Functions for Process Operations
Install
pip install invisibleroads-macros-process
Use
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
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.1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for invisibleroads-macros-process-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8afae83d38dab2d1fef5deb94cd07d5c84bf2ba605b5e379aabd460fae5f9c |
|
MD5 | e97f15f435794d0270ea069a74b8294a |
|
BLAKE2b-256 | d22618e0ddc39327ab0988b19a1d02e068976d0be3fcf668c114c01d57a9e8b6 |
Close
Hashes for invisibleroads_macros_process-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14392f12f774a5bb43ef96b1f51a8284f7d7a2bf2aca0ef2c1fd2466d4e9426 |
|
MD5 | ff08b77b8845ffe0159cee8ed88be97d |
|
BLAKE2b-256 | 1c1dfb6368b512688c24db4fe4ca5133cc8dff63d91525dee4697b2f32d64a8d |