Skip to main content

Warm Python daemon for fast script execution across editors

Project description

pydaemon

Warm Python daemon for fast script execution. Editor-neutral CLI + library.

Install

pipx install pydaemon

Use

# Run a script via warm daemon (or direct python if no daemon)
pydaemon run script.py

# Start generic daemon (or exec user's daemon_cmd from .pydaemon.json)
pydaemon serve

# Inspect resolved config
pydaemon info

Project config: .pydaemon.json

Place at your project root. Walks upward from cwd.

{
  "socket_path": "/tmp/myproject.sock",
  "daemon_cmd": "./scripts/start_daemon.sh",
  "daemon_cwd": ".",
  "python": "./venv/bin/python",
  "args_options": {
    "local": "--db local",
    "staging": "--db staging"
  },
  "args": "--db local"
}

All fields optional. Without daemon_cmd, the built-in generic warm-Python daemon is used.

Wire protocol

Unix socket. [4-byte big-endian length][JSON payload] frames.

Request: {"script": str, "code"?: str, "argv"?: [str]} Response: {"ok": bool, "output": str, "error"?: str}

Any compliant server (generic, Django, FastAPI, custom) works with any compliant client.

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

yoyo_pydaemon-0.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

yoyo_pydaemon-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file yoyo_pydaemon-0.1.0.tar.gz.

File metadata

  • Download URL: yoyo_pydaemon-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for yoyo_pydaemon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16b49cbdc8157c7671e702038076816c25752c364d2b4a5a5b89da3f3e1d65bf
MD5 08cb911e84ea398ce2eb72677f80a724
BLAKE2b-256 a0b715d4e0bf71a1f1d8edd957b270d1559ab63607cc323052b602bb1851e359

See more details on using hashes here.

File details

Details for the file yoyo_pydaemon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yoyo_pydaemon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for yoyo_pydaemon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b6c6dc474d2c81d9d065a39c54ac25465f9edb52103657e80b4c717b4169604
MD5 2b3d5b0932d0703c1554f9b722ae330e
BLAKE2b-256 34924d02f601d585098055ca1f792367fb0a34e95b7fd645229bd22b8418e008

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