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
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 gretl-1.0.3.tar.gz.
File metadata
- Download URL: gretl-1.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fc59289f50fc1fe9cbf9af53ca5d8dee8f19e5fbfd63cc0aa83de9382212a1b
|
|
| MD5 |
87f39e5e9e59831161b18be0adfae1a7
|
|
| BLAKE2b-256 |
0ae237acaa05e846423e0baae57b58a27c7ba7596e73542739f9010a4a6a30df
|
File details
Details for the file gretl-1.0.3-py3-none-any.whl.
File metadata
- Download URL: gretl-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ee72800060db5067f8b4ce8f6e3f1e995d16c4cd6a0693b6666ca5f8d93381
|
|
| MD5 |
8abf0b60d7a97c693480b64c90ee1b51
|
|
| BLAKE2b-256 |
6eae38700739ea7e378d544dc6a0b134a642d1453f28427257bc86cfb049f73d
|