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.1.tar.gz (3.2 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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gretl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8e7497b1a49474a42c349aa20888752e7271f2100e279da9203fd7d6d39c4a65
MD5 8a3b4073cb6e325207638e53a8ebd748
BLAKE2b-256 e7cdae25fa1b69a95c2887a7a453d6669abe8c1380669727e44f422d2ae86af2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gretl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 468d05069ffcb0b586458f793b5ea9243c925872625d4d6779342cbeee9ba861
MD5 9f033fc22cbbffe154d38db6e494b367
BLAKE2b-256 aba653e049b9232cb182540886612050935eb22f3a3dd49934a04abe0ac418f9

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