LMStd
LM Studio v1 REST API Client Library
This single-file library provides a clean, fully documented Python interface to interact with an LM Studio local server based on the v1 REST API endpoints.
Installation
You can install this package via pip once published or from the source code:
pip install lmstd
Usage
import os
from lmstd import LMStd
# Initialize the client
client = LMStd(
base_url="http://localhost:1234",
api_token=os.environ.get("LMSTD_APIKEY")
)
# List available models
models = client.list_models()
print(models)
Features
- Stateful chats: Fully utilize the stateful
/api/v1/chatendpoint. - Model Context Protocol (MCP): Use integrations and MCP tools directly.
- Advanced Model Management: Load, unload, and download models programmatically.
- Streaming Support: Easy SSE-based chat streaming support.
License
Copyright (c) 2026 EMuVi (emuvi@outlook.com.br)
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for lmstd 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lmstd-0.2.0.tar.gz | 7.9 kB | Without provenance | Details for lmstd-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lmstd-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for lmstd-0.2.0-py3-none-any.whl |
Total release size: 16.2 kB
Release files / lmstd-0.2.0.tar.gz
| Download URL | lmstd-0.2.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bf99d984a6d49cbbb2837162688f07ea7c405721274e9ffcfa12f61654684ff
|
|
BLAKE2b-256 checksum How to use checksums |
c014262549863f11f25efd9fcb260170d5a1d3492846cead379fb3d305a9799c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / lmstd-0.2.0-py3-none-any.whl
| Download URL | lmstd-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
218304c7fdb00c83bdf50da73f4dcf8626c5f88fbe57e52324840a0f99e57492
|
|
BLAKE2b-256 checksum How to use checksums |
df277101c4ae6d84f549a87d84bc1d66d480f93fe9ec864d0d6116e2616d3e44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for lmstd 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.