app_manager
Runs Python application in a fault-tolerant environment, continually rebooting after unexpected exceptions.
- Uses Python3 standard library packages only
- app_manager.py contains AppManager class
examples
installation
pip install app_manager
running your app in the AppManager is simple
import ApplicationClass
from app_manager import AppManager
app = ApplicationClass()
AppManager(app.run, run_limit = None) # set run_limit to positive integer to run application at most n times
''' Exceptions will be printed to the console '''
alternatively, you can pass in your app's logger so that exceptions appear in your log output
from application_package import ApplicationClass, logger
from app_manager import AppManager
app = ApplicationClass()
AppManager(app.run, logger = logger)
''' Exceptions will be printed to the console and logged with the supplied logger'''
each instance of AppManager runs in its own process, so multiple application components can be launched successively
from application_package import AppMainClass, main_logger
from background_package import BackgroundAppClass, bg_logger
from app_manager import AppManager
app = AppMainClass()
comp = BackgroundAppClass()
AppManager(app.run, logger = main_logger)
AppManager(comp.run, logger = bg_logger)
Metadata
Release files for app-manager 0.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| app_manager-0.0.0.2.tar.gz | 7.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| app_manager-0.0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / app_manager-0.0.0.2.tar.gz
| Download URL | app_manager-0.0.0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33cfd184a908c00dc599d39a81ad075b43a7ad9a61b06c99f2a0d3b3b751107f
|
|
BLAKE2b-256 checksum How to use checksums |
865edeed87ea7b7344a68f9e8e92f18e7f8d6556bbae98f4f65812a895826538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.4
|
Release files / app_manager-0.0.0.2-py3-none-any.whl
| Download URL | app_manager-0.0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1bccb5aab9e7329db487dcc7fa67df1f9d59e66d0472c0aff01eff9044fae1c
|
|
BLAKE2b-256 checksum How to use checksums |
f3b7f494f8e37c9a2cfba7cd9b2087d38a39296ef27ae8743f444e6a0a88baae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.4
|
Security for app-manager 0.0.0.2
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.