Skip to main content

Python SDK for Gretl — control local services by name or port number

Project description

gretl

Python SDK for Gretl — control local services by name or port number.

Gretl is a service manager for developers. Name your services once, run your entire stack with one command, and share it across your whole team.

Install

pip install gretl

Quick start

from gretl import gr

# Register a service
gr.register(
    name="jobs-server",
    port=7401,
    group="@jobs"
)

# Resolve a name to a URL
url = gr.url("jobs-server")

# Wait for a service to be up
gr.wait_for("postgres", timeout=30)

# Start / stop by name
gr.start("jobs-server")
gr.stop("jobs-server")

# List all services
services = gr.list()

Requirements

The Gretl desktop app or daemon must be running. Download it at gretl.dev — free for individuals, $8/dev/month for teams.

Links

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

gretl-1.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

gretl-1.0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gretl-1.0.4.tar.gz.

File metadata

  • Download URL: gretl-1.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gretl-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d841df0299fd43823ce97e305bb992f4e52c798095b124d321276c1ef8ac0e43
MD5 a57d744d7040d16c9bd0111b6c185075
BLAKE2b-256 3f21c2028bd8f0cc82eac0c826c9a60b76991acb8b5580bc592f4ce48dc7f4d5

See more details on using hashes here.

File details

Details for the file gretl-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: gretl-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gretl-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e794e3aab8b6d91d8c22115017a06357f5b375eb459b11f583978065b8710c3
MD5 df7418a445cc0585b8072d9de6f7a6bc
BLAKE2b-256 94e38b143708aebb53228ddafc41f26b17c9c8d5561a4536c33d9e59312540c0

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