Skip to main content

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.token with mode 600.

Commands

pyexec-worker register  --server URL --org-token TOKEN [--name NAME]
pyexec-worker start     [--server URL]
pyexec-worker status

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyexec_worker-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyexec_worker-0.1.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

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

Hashes for pyexec_worker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 953ff7ae500e6491597aacb16f13930846662905b1a6beb9aa0f78741ec82eb4
MD5 0d13e3cf206c9bd4bd0a42bc128ccc9c
BLAKE2b-256 02c7f78e9c1366dc7d0386a0ceccbba17a7ae6a10e9ffd38043987048a7b13f3

See more details on using hashes here.

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

Hashes for pyexec_worker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 341eb93c640ae70896ed4e9756cc02cfc533bd609b7eedb2d49f55c1bfa80a5c
MD5 7afb33ba410247c2d7acb80db7cc533b
BLAKE2b-256 91dbd58144a15ecc95e8c1f482e72bcdf7b1a6c87097f4e4398dff716fed43d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page