Skip to main content

llmns

Parse, normalize, and compare llm:// references, per llmns draft v02.

A reference identifies a language model by serving host, transport, model state, and credential name:

llm[s][+transport]://[credential@]host[:port]/model[@pin][?hints]

Install

pip install llmns

Use

import llmns

ref = llmns.parse("llms+grpc://work@triton.internal:8001/qwen3-ft@name:step-2000?api=openai")
ref.host        # "triton.internal"
ref.port        # 8001
ref.tls         # True
ref.transport   # "grpc"
ref.credential  # "work" — a name in the client's credential store, never the secret
ref.model       # "qwen3-ft"
ref.pin         # Pin(kind="name", value="step-2000")
ref.hints       # {"api": "openai"}

# Equality is the specification's equivalence rule: the normalized
# (host, port, model, pin) tuple, with RFC 3986 percent-encoding
# normalization. Credential, hints, transport, and TLS do not contribute.
llmns.parse("llms://work@API.openai.com/gpt-5") == llmns.parse("llm://api%2Eopenai.com/gpt-5")  # True

The core is Rust; the wheel is built with maturin.

License

MIT OR Apache-2.0

Metadata

Release files for llmns 0.3.0

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

Source distribution (sdist)

Source distribution for llmns 0.3.0
File Size Uploaded
llmns-0.3.0.tar.gz 14.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for llmns 0.3.0
File Interpreter ABI Platform
llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 568.0 kB

Release files / llmns-0.3.0.tar.gz

Download URL llmns-0.3.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8531a83a27e48d994776e28a12d95086b0714a65048673f31e9b76575528b04c
BLAKE2b-256 checksum
How to use checksums
fafd0e0c877e8633bed5a24a45e0c520f910a6734ed47430e8fe74fc1456f5e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 25, 2026.

Transparency log

Release files / llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 297.8 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
37c9c8dfa7f134947cf307762fe4c1f133c708da0c9e918e4caeaa1df32d4362
BLAKE2b-256 checksum
How to use checksums
928e528fa1738ad6e513ce18ec0ccafa26fd8c8a04f93727f1883d8a48489e81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 25, 2026.

Transparency log

Release files / llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl
Size 256.1 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b904fe8c072f24134b0576b12a53367c0bbad37538867af0be0f4377517f0ccd
BLAKE2b-256 checksum
How to use checksums
7114e46f68018e047406f71db95f028e9c1e0e0706b2c636900819005e2dbf0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

3 release files

0.2.0

3 release files

0.1.0

3 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