Skip to main content

Build Status

bombfuse

Python module for specifying timeouts when executing functions

Installation

To install this package, run the following command:

$ pip install bombfuse

Usage

>>> import time
>>> import bombfuse
>>> import sys
>>> # here's an infinite loop
>>> def func(msg):
>>>     while True:
>>>         time.sleep(1)
>>>         sys.stdout.write(msg + "\n")
>>>         sys.stdout.flush()
>>>
>>> # time out in 5 seconds
>>> bombfuse.timeout(5, func, "Hello world!")
Hello world!
Hello world!
Hello world!
Hello world!
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bombfuse\__init__.py", line 64, in timeout
    raise e
bombfuse.TimeoutError: The function 'func' timed out
>>>

Metadata

Release files for bombfuse 0.3.3

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

Source distribution (sdist)

Source distribution for bombfuse 0.3.3
File Size Uploaded Provenance Actions
bombfuse-0.3.3.tar.gz 3.1 kB Without provenance Details for bombfuse-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bombfuse 0.3.3
File Interpreter ABI Platform Actions
bombfuse-0.3.3-py3-none-any.whl Python 3 none any Details for bombfuse-0.3.3-py3-none-any.whl

Total release size: 6.3 kB

Release files / bombfuse-0.3.3.tar.gz

Download URL bombfuse-0.3.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9fda90d4d4308d0f963ae8044d35099be5538a5f9f1c8c3c8dd2e97fd04f4941
BLAKE2b-256 checksum
How to use checksums
ddb4d5fd1a8dabf398773c8d28ecc0a6bcdd9fed15d90953d1483410786f259b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release files / bombfuse-0.3.3-py3-none-any.whl

Download URL bombfuse-0.3.3-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d89c57dc655ae95689750d9a3f31bb7addb1b2664b2294f94f591ece02c07a3
BLAKE2b-256 checksum
How to use checksums
3241755aab2d03d056ababeb925401023754d12b2d89d1fbd9122059c4c709f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Security for bombfuse 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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