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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmns-0.3.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (297.8 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl (256.1 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file llmns-0.3.0.tar.gz.

File metadata

  • Download URL: llmns-0.3.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for llmns-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8531a83a27e48d994776e28a12d95086b0714a65048673f31e9b76575528b04c
MD5 f17dc18a446917d4beab33b4d82010c6
BLAKE2b-256 fafd0e0c877e8633bed5a24a45e0c520f910a6734ed47430e8fe74fc1456f5e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.3.0.tar.gz:

Publisher: ci.yml on llmns/llmns

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37c9c8dfa7f134947cf307762fe4c1f133c708da0c9e918e4caeaa1df32d4362
MD5 17c319e70056eb113958534f97808ced
BLAKE2b-256 928e528fa1738ad6e513ce18ec0ccafa26fd8c8a04f93727f1883d8a48489e81

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on llmns/llmns

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 256.1 kB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b904fe8c072f24134b0576b12a53367c0bbad37538867af0be0f4377517f0ccd
MD5 e6dcbf522ccbe8f4d4b773198238a85c
BLAKE2b-256 7114e46f68018e047406f71db95f028e9c1e0e0706b2c636900819005e2dbf0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.3.0-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: ci.yml on llmns/llmns

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

3 files

0.2.0

3 files

0.1.0

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page