Local execution agent for PyExecutor — run workflow steps on-premises
Project description
pyexec-worker
Local execution agent for PyExecutor.
Allows workflow steps to run on-premises instead of (or alongside) the cloud worker.
Quick start
pip install pyexec-worker
# Generate keys + register with your PyExecutor server
pyexec-worker register \
--server https://your-pyexec-server.example.com \
--org-token <token-from-settings> \
--name "Office Server"
# Start the agent
pyexec-worker start
Installation
pip install pyexec-worker
Requirements
- Python 3.9+
- Docker (for script step execution)
- Network access to your PyExecutor server
Configuration
Settings are stored in ~/.pyexec-worker/config.json.
The agent token is stored separately in ~/.pyexec-worker/agent.token (chmod 600).
| Environment variable | Description | Default |
|---|---|---|
PYEXEC_SERVER_URL |
PyExecutor server URL | http://localhost:8000 |
PYEXEC_AGENT_TOKEN |
Agent bearer token (overrides file) | — |
PYEXEC_AGENT_NAME |
Display name for this agent | hostname |
PYEXEC_POLL_INTERVAL |
HTTP poll interval (seconds) | 5 |
PYEXEC_HEARTBEAT_INTERVAL |
Heartbeat interval (seconds) | 30 |
PYEXEC_MAX_CONCURRENT |
Maximum concurrent steps | 4 |
PYEXEC_DOCKER_IMAGE |
Default Docker image for script steps | python:3.11-slim |
PYEXEC_USE_WEBSOCKET |
Use WebSocket transport (true/false) |
true |
Security
- RSA-2048 key pair generated on first
register— private key never leaves your machine. - Org secrets are encrypted server-side under your agent's public key before delivery.
- The agent token is stored at
~/.pyexec-worker/agent.tokenwith mode 600.
Commands
pyexec-worker register --server URL --org-token TOKEN [--name NAME]
pyexec-worker start [--server URL]
pyexec-worker status
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyexec_worker-0.1.0.tar.gz.
File metadata
- Download URL: pyexec_worker-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953ff7ae500e6491597aacb16f13930846662905b1a6beb9aa0f78741ec82eb4
|
|
| MD5 |
0d13e3cf206c9bd4bd0a42bc128ccc9c
|
|
| BLAKE2b-256 |
02c7f78e9c1366dc7d0386a0ceccbba17a7ae6a10e9ffd38043987048a7b13f3
|
File details
Details for the file pyexec_worker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyexec_worker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
341eb93c640ae70896ed4e9756cc02cfc533bd609b7eedb2d49f55c1bfa80a5c
|
|
| MD5 |
7afb33ba410247c2d7acb80db7cc533b
|
|
| BLAKE2b-256 |
91dbd58144a15ecc95e8c1f482e72bcdf7b1a6c87097f4e4398dff716fed43d7
|