Skip to main content

Timberborn HTTP API Wrapper

A Python library for interacting with the Timberborn HTTP automation API. Supports both direct API control and webhook-based event handling.

Features

  • Get the state of levers and adapters from Timberborn
  • Change lever states
  • Receive webhook events and trigger actions
  • Find timberborn instances via zeroconf/mDNS

Installation

pip install timberborn-http

pypi.org/project/timberborn-http

Quickstart

Direct API Control

from timberborn_http import TimberbornAPI

api = TimberbornAPI("http://localhost:8080")

# Get all levers
for lever in api.get_levers():
    print(f"Lever {lever.name} is currently {lever.state}")

# Control a lever
api.switch_on("HTTP Lever 1")
api.set_color("HTTP Lever 1", "ff0000")

Webhook Events

import time
from timberborn_http import TimberbornWebhookServer

server = TimberbornWebhookServer(port=8081)

@server.on_event("HTTP Lever 1")
def handle_on(name):
    print(f"{name} turned ON!")

while True:
    time.sleep(1)

Discover instances

from timberborn_http import TimberbornAPI

instances = TimberbornAPI.discover(timeout=3.0)
api = instances[0]

More examples & details in the examples folder

Getting Help

Release files for timberborn-http 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timberborn-http 0.0.6
File Size Uploaded
timberborn_http-0.0.6.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timberborn-http 0.0.6
File Interpreter ABI Platform
timberborn_http-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 36.4 kB

Release files / timberborn_http-0.0.6.tar.gz

Download URL timberborn_http-0.0.6.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad7ef0b990d24dee6628f7541191be6cffcdb3c5ccb46c3531f7c7b1f923d511
BLAKE2b-256 checksum
How to use checksums
71c939c81b38ccfd36ba35c5a0097ebef76fd539907b60a3d8560a41b889fc44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Release files / timberborn_http-0.0.6-py3-none-any.whl

Download URL timberborn_http-0.0.6-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79ea78bee6cd49e52cb7731251429f10817f2ce2fed0157237951d8aa788d9bf
BLAKE2b-256 checksum
How to use checksums
47d2ecac019d001cd25e3ec7089f3da0d04cc93bf7e10b52f6e041509333b078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page