Skip to main content

llmns

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

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 identity rule: the normalized
# (host, model, pin) triple. Credential, hints, transport, and TLS
# do not contribute.
llmns.parse("llms://work@API.openai.com/gpt-5") == llmns.parse("llm://api.openai.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.2.0.tar.gz (13.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.2.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (295.7 kB view details)

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

llmns-0.2.0-cp312-abi3-macosx_11_0_arm64.whl (254.1 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: llmns-0.2.0.tar.gz
  • Upload date:
  • Size: 13.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.2.0.tar.gz
Algorithm Hash digest
SHA256 1d8b43df9c6f491c2b74c2f350a3f01179f04f063126fd6b6a27fe3dc1ecde18
MD5 958462e5945cf95569c9c063dbb9ca0d
BLAKE2b-256 d019f60c2101565bac7ec9d8962bfa549e000e0a655c11f34f2047f5fbe786a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.2.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.2.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for llmns-0.2.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 595c5e6e63c80deeca2ab05e35156884920d11cc2ddd9a973d3880214ba381fe
MD5 45779ebac6c50219bba1b6634bdf9e12
BLAKE2b-256 e637afe75b5213b25d1464453b8d58a2ffb3031beadaf69dd7f3629fbd0b137a

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.2.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.2.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: llmns-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 254.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.2.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b7f8d0436fd45345b4beeb918f74231d3534fb575c4796d9433b4c7955dda9b
MD5 ca70bb8628cb9c82e4c7feccd5fc2f16
BLAKE2b-256 a13cc882976ff7b1a8f25c1a77e5c051430a01e84a16a0519b7488ff13730fee

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmns-0.2.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

0.3.0

3 files

This release

0.2.0 This release

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