Skip to main content

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.2

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

0.1

  • Add LoggableProcess, StoppableProcess

Metadata

Release files for invisibleroads-macros-process 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for invisibleroads-macros-process 0.2.0
File Size Uploaded
invisibleroads-macros-process-0.2.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for invisibleroads-macros-process 0.2.0
File Interpreter ABI Platform
invisibleroads_macros_process-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / invisibleroads-macros-process-0.2.0.tar.gz

Download URL invisibleroads-macros-process-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a88a53a5c59fd194844fc3a99f976700ff224ed942de3f73418c86bb80b0dfe5
BLAKE2b-256 checksum
How to use checksums
f27f79271af49f86f4af4c96d08630fc297104b332c998bc40fb2dccd4aaea40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Release files / invisibleroads_macros_process-0.2.0-py3-none-any.whl

Download URL invisibleroads_macros_process-0.2.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af046268a18dc1cdfc3c4d277867ad71577fd5e026281be0809773f9f43fcd5b
BLAKE2b-256 checksum
How to use checksums
bd9386fdb509ea6fe75c25af954d7efe2fd2f121c47725b59b026df6e4617688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page