ROB for Python (endurasolution-rob)
Python SDK and CLI for ROB, Run On Background: a lightweight, secure process manager for Python, Node.js and any executable, by EnduraSolution.
Use it to keep apps alive, capture and rotate logs, record crashes, run jobs on cron or timers, restart on memory/CPU limits or failed health checks, start everything at boot and (optionally) watch it all in a web dashboard.
Install
npm install -g @endurasolution/rob # the ROB daemon (needs Node.js >= 18), once per machine
pip install endurasolution-rob # this package
This package has no dependencies. It talks to the ROB daemon over a local socket that only your user can access, with a token on every request. The SDK starts the daemon automatically when needed.
Manage processes
from rob_pm import Rob
with Rob() as rob:
rob.start("worker.py", name="worker", venv=".venv", max_memory="300M")
rob.start("report.py", name="report", cron="0 2 * * *", stop_after="1h")
rob.start("poll.py", name="poller", every="5m")
rob.start_config("rob.config.json")
for p in rob.list():
print(p["name"], p["status"], p["cpu"], p["memory"])
print(rob.crashes("worker"))
for entry in rob.stream_logs("worker"):
print(entry["type"], entry["line"])
Inside your app
These helpers do nothing when the app is not run by ROB, so they are safe to leave in:
import rob_pm
rob_pm.on_shutdown(cleanup) # graceful stop, Windows included
rob_pm.metric("processed", 1200) # custom metric shown in `rob describe` and the web UI
rob_pm.ready() # with wait_ready=True
CLI
rob-py ls
rob-py start app.py --name api --max-memory 300M
rob-py start job.py --cron "*/10 * * * *"
rob-py logs api
rob-py crashes api
rob-py web on
python -m rob_pm works too. Every option is documented on the npm package page.
License
MIT © EnduraSolution, Alappuzha, Kerala, India
Metadata
Release files for endurasolution-rob 1.0.0
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 | Actions |
|---|---|---|---|---|
| endurasolution_rob-1.0.0.tar.gz | 12.7 kB | Without provenance | Details for endurasolution_rob-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| endurasolution_rob-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for endurasolution_rob-1.0.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / endurasolution_rob-1.0.0.tar.gz
| Download URL | endurasolution_rob-1.0.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d581dc0aaf95926ecfbe3f14774149eb6368d4772059a82d8ee09375eb931b
|
|
BLAKE2b-256 checksum How to use checksums |
076a37d494c7b0cd7d5a602cc5ca5444cebe93956a0634f6435eca5a73c248fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Release files / endurasolution_rob-1.0.0-py3-none-any.whl
| Download URL | endurasolution_rob-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b6d860dd536b714522d0f7a525719da6e8fc38705a1a6744cd172bef3617661
|
|
BLAKE2b-256 checksum How to use checksums |
699c4d2dfdee5f545edb969761eb07b5e1dbe7bdd30e7195af3aa1dd1ac95ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Security for endurasolution-rob 1.0.0
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.