Skip to main content

lifeproof

Create proofs of life to detect when a program fails.

Create a file proof of life

To create a file proof of life is very simple. You only need to execute:

from lifeproof import FileProofOfLife

with FileProofOfLife('file_path'):
       something_to_do()

Where 'file_path' is the file path to the proof of life to check. If this file is removed, then the program has died for any cause. The something_to_do() represent the commands to check if they are still alive. If something_to_do() breaks down for some reason, the file automatically will be removed.

For example:

from lifeproof import FileProofOfLife
from time import sleep

with FileProofOfLife('health.txt'):
       sleep(60)

This script will create the file 'health.txt' during 60 seconds. At the end of sleep(60) the 'health.txt' file will be removed.

Metadata

Release files for lifeproof 0.0.1

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

Source distribution (sdist)

Source distribution for lifeproof 0.0.1
File Size Uploaded Provenance Actions
lifeproof-0.0.1.tar.gz 14.9 kB Without provenance Details for lifeproof-0.0.1.tar.gz

Release files / lifeproof-0.0.1.tar.gz

Download URL lifeproof-0.0.1.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
74f6349e958f0ddfc6657079d339f2f900e110eb0e18a8b31efb224183e784bf
BLAKE2b-256 checksum
How to use checksums
4141d11c5265f2e044df47b40e3634f0c7c93c3b7f7ec4f5bf6a936e26849d8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3

Security for lifeproof 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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