Skip to main content

Woodglue

CI Docs PyPI Python License: MIT

JSON-RPC 2.0 server with auto-generated docs, sign-in, and hosted UIs, built on lythonic.

Architecture

┌──────────────────────────────────────────────────────────┐
│  woodglue                                                │
│  HTTP server · JSON-RPC · Docs                           │
│  Users · Roles · Grants · Sign-in (OIDC, GitHub, proxy)  │
│  Console · project UIs (static, Streamlit)               │
├──────────────────────────────────────────────────────────┤
│  lythonic                                                │
│  Namespaces · DAGs · Caching · Triggers                  │
└──────────────────────────────────────────────────────────┘
        ▲ optional: Caddy in front for TLS and static files

lythonic provides the core runtime: namespaces for organizing methods, DAG-based orchestration, result caching, and scheduled triggers.

woodglue adds the serving layer: a Tornado HTTP server, JSON-RPC 2.0 dispatch, generated docs (llms.txt, OpenAPI, per-method markdown), Users with Roles and per-namespace Grants, browser sign-in, the Console, and hosting for your own UIs.

Features

  • JSON-RPC 2.0 with multi-namespace routing (billing.create_invoice, analytics.query)
  • Auto-generated docs: llms.txt index, per-method markdown, OpenAPI 3.0.3, each showing only what the caller may use
  • Users, Roles, and per-namespace Grants (call, read, trigger, view, admin); Personal Access Tokens, optionally narrowed and expiring
  • Sign-in with Google, Entra ID, Okta, Auth0 (any OpenID Connect provider) or GitHub, or behind Cloudflare Access, Google IAP, or oauth2-proxy
  • The Console: browse the API, runs, and triggers, and manage your tokens
  • Project UIs next to the Console: a single-page app, or a Streamlit app (or any web server) that woodglue runs and proxies, calling the API as the viewer
  • Runs and trigger changes record which User caused them
  • wgl login for remote servers, like gh auth login
  • Optional Caddy edge: wgl caddy config prints a Caddyfile
  • Typed async client with auto-resolved return types via x-global-ref
  • YAML-driven namespace configuration; DAG orchestration with scheduled triggers (via lythonic)

Quick Start

pip install woodglue

Define a namespace with methods:

# myapp/api.py
from lythonic.compose.namespace import Namespace
from pydantic import BaseModel

class GreetIn(BaseModel):
    name: str

class GreetOut(BaseModel):
    message: str

def greet(input: GreetIn) -> GreetOut:
    return GreetOut(message=f"Hello, {input.name}!")

ns = Namespace()
ns.register(greet, nsref="greet", tags=["api"])

Point data/woodglue.yaml at it and start the server:

namespaces:
  myapp:
    gref: "myapp.api:ns"
wgl start

Auth is on by default. The server keeps Users, Roles, and tokens in data/auth.db, and on first start creates a token for the built-in admin User. wgl start never prints it:

wgl token                      # print the admin token
wgl token --new                # rotate it

Open http://127.0.0.1:5321/ and sign in with that token, or configure an Identity Provider so people sign in with their own accounts. wgl user manages Users, their Roles, and their Personal Access Tokens.

Endpoints:

  • POST /rpc -- JSON-RPC 2.0
  • GET /docs/llms.txt -- LLM-friendly method index
  • GET /docs/openapi.json -- OpenAPI 3.0.3 spec
  • GET /console/ -- the Console
  • GET /ui/<name>/ -- your project UIs
  • GET /auth/login -- browser sign-in

Documentation

walnutgeek.github.io/woodglue, including how-to guides for access control, Identity Providers, project UIs, Streamlit, and Caddy.

Metadata

Release files for woodglue 0.0.11

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

Source distribution (sdist)

Source distribution for woodglue 0.0.11
File Size Uploaded Provenance Actions
woodglue-0.0.11.tar.gz 901.4 kB With provenance Details for woodglue-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for woodglue 0.0.11
File Interpreter ABI Platform Actions
woodglue-0.0.11-py3-none-any.whl Python 3 none any Details for woodglue-0.0.11-py3-none-any.whl

Total release size: 1.0 MB

Release files / woodglue-0.0.11.tar.gz

Download URL woodglue-0.0.11.tar.gz
Size 901.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88b85e1b4fa3ca1388286c69670cdcc1a85b2f5434cb7da42cdfe97a276bf94d
BLAKE2b-256 checksum
How to use checksums
02c4019695bc462a8d9b7509429450740837cbf618264fcc3298820431727e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / woodglue-0.0.11-py3-none-any.whl

Download URL woodglue-0.0.11-py3-none-any.whl
Size 140.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb7d40eae9e7ee03204fb110420a548f1c6559aea3ddb25851cb099820eac8fa
BLAKE2b-256 checksum
How to use checksums
493b16e445fd5ba66940017495f9f3e78f546f1bd1206b455372b1359d10d0c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for woodglue 0.0.11

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for woodglue-0.0.11.tar.gz

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 Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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