🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.python.announce
1 messages
1 total messages Started by Stephan Gomer Thu, 29 Oct 2026 01:02
[Python-announce] [ANN] pethost 0.4.7: Python SDK for Pethost, hosting for Docker Compose projects
#5
Author: Stephan Gomer
Date: Thu, 29 Oct 2026 01:02
36 lines
6536 bytes
pethost 0.4.7 is on PyPI.

pethost is the Python SDK for Pethost (https://pethost.dev/), a hosting
service that runs Docker Compose projects at one flat monthly price. The
SDK has the 16 calls of Pethost's API, the same ones an AI agent gets
through Pethost's MCP server, and its streams:

- read the machine and its projects: services, domains, problems
- deploy: create a project, change its files, deploy a GitHub commit,
  go back to an earlier deploy
- create Postgres, MariaDB or Valkey databases and link them to an app
- query container logs and HTTP requests, or follow them as they happen
- run a command in a service, read files, move files
- typed throughout, a synchronous client and an asyncio one, all
  generated from the API's own definition

Install:   pip install pethost    (or: uv add pethost)
Requires:  Python 3.10+, an API token made in the Pethost panel
License:   MIT

    from pethost import Pethost

    with Pethost() as pethost:  # the token: PETHOST_TOKEN
        answer = pethost.get_machine()
        print(answer.machine.hostname)
        for project in answer.projects:
            print(project.project_id)

Home:  https://pethost.dev/
Docs:  https://pethost.dev/docs/api/
Code:  https://github.com/pethost-dev/sdk
PyPI:  https://pypi.org/project/pethost/

The SDK is free and open source; Pethost itself is a paid service.

Stephan Gomer <stephan@pethost.dev>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads