🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.python.announce
Article #5

[Python-announce] [ANN] pethost 0.4.7: Python SDK for Pethost, hosting for Docker Compose projects

#5
From: 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>
Technical Details
Message-ID: <010201a1852db1b3-77753c8c-6b87-4d4e-90aa-48712a1a5043-000000@eu-west-1.amazonses.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mail
From: Stephan Gomer <stephan@pethost.dev>
Newsgroups: comp.lang.python.announce
Subject: [Python-announce] [ANN] pethost 0.4.7: Python SDK for Pethost, hosting for Docker Compose projects
Date: Thu, 29 Oct 2026 01:02:06 +0000
Lines: 36
Approved: python-announce-list@python.org
Message-ID: <010201a1852db1b3-77753c8c-6b87-4d4e-90aa-48712a1a5043-000000@eu-west-1.amazonses.com>
Reply-To: python-list@python.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de UFF+Mpc+d6aet9Yxu4UtvQo/PMrZC6slu2EbX9uqBt3g==
Cancel-Lock: sha1:Row4uRIoGIaN3Z7S3jkGgC2ttmU= sha256:Vy8eKekZt8BiIFJzjHaqxGhHuPID62c5zbLmU7BlXP0=
Delivered-To: python-announce-list@x.python.org
Authentication-Results: mail.python.org; dkim=pass
	reason="1024-bit key; unprotected key"
	header.d=pethost.dev header.i=@pethost.dev header.b=EUqV7qr0;
	dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'generated': 0.03;
    'project,': 0.03; 'pip': 0.04; 'hosting': 0.07; 'http': 0.07;
    'api,': 0.09; 'to:addr:python-announce-list': 0.09; 'token': 0.09;
    'subject:Python': 0.12; 'import': 0.15; 'url-ip:140/8': 0.15;
    '(or:': 0.16; "api's": 0.16; 'deploy': 0.16; 'license:': 0.16;
    'logs': 0.16; 'pypi.': 0.16; 'server,': 0.16; 'subject:ANN': 0.16;
    'subject:hosting': 0.16; 'subject:projects': 0.16; 'url:project':
    0.16; 'url:pypi': 0.16; 'python': 0.16; 'api': 0.17; 'github':
    0.17; 'url-ip:140.82/16': 0.17; 'subject:] ': 0.18; 'calls': 0.19;
    'machine': 0.22; 'install': 0.23; 'command': 0.23; 'skip:p 30':
    0.23; 'url:github': 0.23; 'run': 0.23; 'files,': 0.32;
    'requests,': 0.32; 'subject:for': 0.32; 'subject:[': 0.34; 'same':
    0.34; 'runs': 0.35; 'url:)': 0.35; 'files': 0.36; 'change': 0.36;
    'url-ip:151.101.0.223/32': 0.37; 'url-ip:151.101.128.223/32':
    0.37; 'url-ip:151.101.192.223/32': 0.37; 'url-
    ip:151.101.64.223/32': 0.37; 'url-ip:188/8': 0.38; 'read': 0.38;
    'happen': 0.40; 'paid': 0.61; 'service.': 0.62; 'follow': 0.62;
    'service': 0.64; 'definition': 0.64; 'earlier': 0.67; 'back':
    0.69; 'price.': 0.69; 'free': 0.71; 'received:54': 0.73; 'mit':
    0.76; 'panel': 0.76; 'client': 0.82; 'url:api': 0.84;
    'header:Received:2': 0.84; 'flat': 0.84; 'token:': 0.84;
    'service,': 0.91
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=resend;
	d=pethost.dev; t=1793235727;
	h=From:To:Subject:Message-ID:Content-Transfer-Encoding:Date:MIME-Version:Content-Type;
	bh=qfVhNni3r0OgnkmOmXqctB+77Ry3X3cp63A6NDfGq2Q=;
	b=EUqV7qr0COrCmBbDB0kqJfIDQaKWmFx+aZW21bh7kR+1uUjIKV8quz5V7l+/wFtA
	yrD0lLyw52dGH8NjPmPrDDwX7BfG6Lpq8FqEyFMAoFlapYdOvFhKzsjLpKsnol1ormc
	E9lxQN6taBXKBnGyb88Xa35ehhzN81gAr3NXzHxA=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
	s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1793235727;
	h=From:To:Subject:Message-ID:Content-Transfer-Encoding:Date:MIME-Version:Content-Type:Feedback-ID;
	bh=qfVhNni3r0OgnkmOmXqctB+77Ry3X3cp63A6NDfGq2Q=;
	b=4Ug8T5BLGTPR7TeK+uuAbjw3JLaK5fJYmHJ/12BAhxvY061eRIASYEQmQzpo/EuK
	6lwga0qaOGQYeBKhQKZvRpHerxbgMWiEj+jE0XIH5UfxPYOJsUrQzhxL1kr1wBNFTv0
	AoEcwirjUaizyFYXK27kZHR5DhOJRZn4xVOmYO1Y=
Feedback-ID: :1.eu-west-1.lDukKLGOtb0whN//crXuIfh7RtPhAwmb1l5diYonwMXu+3ew185qzCIHMGWsaeP3Jo8Z3CLk6i/xjlFetAYVWybM1H4txUR8hwfNUPYgSTvVEI9JrR2LIQ6ZVzmNx6PeocXci0aNLRh2N/r+cpwGCGMpRvBWWVYGt4DgovaKplY=:1.eu-west-1.mn4CV6NdxyxonKM+/Hjvd874GJxbRQyaS3Zo0NapPlc=:AmazonSES
X-SES-Outgoing: 2026.10.29-54.240.6.27
X-MailFrom: 010201a1852db1b3-77753c8c-6b87-4d4e-90aa-48712a1a5043-000000@rsend.pethost.dev
X-Mailman-Rule-Hits: emergency
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-python-announce-list.python.org-0; header-match-python-announce-list.python.org-1; header-match-python-announce-list.python.org-2; header-match-python-announce-list.python.org-3; header-match-python-announce-list.python.org-4
Message-ID-Hash: X3CN7BKZMKXN36NTQIQS7UXHDTGHKPQ7
X-Message-ID-Hash: X3CN7BKZMKXN36NTQIQS7UXHDTGHKPQ7
X-Mailman-Approved-At: Wed, 28 Oct 2026 21:42:02 -0400
X-Mailman-Version: 3.3.11b1
Precedence: list
List-Id: Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At: <https://mail.python.org/archives/list/python-announce-list@python.org/message/X3CN7BKZMKXN36NTQIQS7UXHDTGHKPQ7/>
List-Archive: <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help: <mailto:python-announce-list-request@python.org?subject=help>
List-Owner: <mailto:python-announce-list-owner@python.org>
List-Post: <mailto:python-announce-list@python.org>
List-Subscribe: <mailto:python-announce-list-join@python.org>
List-Unsubscribe: <mailto:python-announce-list-leave@python.org>