Skip to main content

pyramid-client-builder

PyPI version Python versions License: MIT

Introspect a Pyramid application and generate typed HTTP clients — like protoc for gRPC, but for your Pyramid REST API. Generates Python and Go clients in a single invocation.

What it does

pclient-build boots your Pyramid app from its INI file, discovers routes and Cornice services, and generates client packages for multiple languages and HTTP transports. Each variant is written to its own subdirectory.

Pyramid app (INI file)
  → introspect routes, views, schemas
  → generate all client variants:
      python_requests/   (Python + requests)
      python_httpx/      (Python + httpx)
      go/                (Go + net/http)

Quick example

Generate clients from your payments service:

pclient-build development.ini --name payments --output ./generated/

Use the Python client:

from payments_client.client import PaymentsClient

client = PaymentsClient(base_url="http://localhost:6543")

# Methods are named from your URL paths
charges = client.list_charges()
charge = client.get_charge(id=42)
new_charge = client.create_charge(amount=1000, currency="usd")
client.cancel_charge(id=42)

# Versioned APIs get sub-clients
items = client.v1.list_items()

Use the Go client:

import "payments-client"

client := paymentsclient.NewClient(
    "http://localhost:6543",
    paymentsclient.WithAuthToken("your-token"),
)

charges, err := client.V1.ListCharges(nil)
charge, err := client.V1.GetCharge("42")
newCharge, err := client.V1.CreateCharge(&v1.ChargesRequestSchema{
    Amount:   1000,
    Currency: "usd",
})

Installation

pip install pyramid-client-builder

Or with uv:

uv add pyramid-client-builder

Documentation

Full documentation is available at the project docs site, including:

Development

git clone https://github.com/cartaorobbin/pyramid-client-builder.git
cd pyramid-client-builder
uv sync --dev

Run tests:

uv run pytest          # single Python version
uv run tox             # full matrix (3.10–3.13)

Lint and format:

uv run ruff check .
uv run black .

Build docs locally:

uv run mkdocs serve

License

MIT

Metadata

Release files for pyramid-client-builder 0.14.7

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

Source distribution (sdist)

Source distribution for pyramid-client-builder 0.14.7
File Size Uploaded Provenance
pyramid_client_builder-0.14.7.tar.gz 165.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyramid-client-builder 0.14.7
File Interpreter ABI Platform
pyramid_client_builder-0.14.7-py3-none-any.whl Python 3 none any Details

Total release size: 243.0 kB

Release files / pyramid_client_builder-0.14.7.tar.gz

Download URL pyramid_client_builder-0.14.7.tar.gz
Size 165.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6f091bf529c0360bf35d75f733244bb3585928f89db8497b5fa420b39117d78e
BLAKE2b-256 checksum
How to use checksums
b21704656bf36591cb7b0d395e9c3512cc6f388cacc20cb5046b94495d17d778
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 Apr 8, 2026.

Transparency log

Release files / pyramid_client_builder-0.14.7-py3-none-any.whl

Download URL pyramid_client_builder-0.14.7-py3-none-any.whl
Size 77.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
368883c6ac28aaeb04b4fcef0fa03c1a52ac83bcc860cfa731450fe33e7f7bdc
BLAKE2b-256 checksum
How to use checksums
0df000a5348b7323fda4e073923895bb6e09aefa1049e9a56497d50d5c0075c0
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 Apr 8, 2026.

Transparency log

Security for pyramid-client-builder 0.14.7

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyramid_client_builder-0.14.7.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 Apr 8, 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