Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
964c77c
codegen metadata
stainless-app[bot] Oct 21, 2025
9109c24
codegen metadata
stainless-app[bot] Oct 21, 2025
c50bca7
fix(client): close streams without requiring full consumption
stainless-app[bot] Oct 30, 2025
445023e
chore(internal/tests): avoid race condition with implicit client cleanup
stainless-app[bot] Oct 31, 2025
5c82d3a
chore(internal): grammar fix (it's -> its)
stainless-app[bot] Nov 4, 2025
80b7c35
chore(package): drop Python 3.8 support
stainless-app[bot] Nov 11, 2025
6e10abe
fix: compat with Python 3.14
stainless-app[bot] Nov 11, 2025
b71ebf9
fix(compat): update signatures of `model_dump` and `model_dump_json` …
stainless-app[bot] Nov 12, 2025
6df3ecd
chore: add Python 3.14 classifier and testing
stainless-app[bot] Nov 22, 2025
ab93bca
fix: ensure streams are always closed
stainless-app[bot] Nov 28, 2025
d644966
chore(deps): mypy 1.18.1 has a regression, pin to 1.17
stainless-app[bot] Nov 28, 2025
f840597
chore: update lockfile
stainless-app[bot] Dec 3, 2025
ee97b11
chore(docs): use environment variables for authentication in code sni…
stainless-app[bot] Dec 3, 2025
6b7bd87
refactor(api)!: change route to be /beta instead of /v1
stainless-app[bot] Dec 5, 2025
7769f80
fix(types): allow pyright to infer TypedDict types within SequenceNotStr
stainless-app[bot] Dec 9, 2025
37f1eae
chore: add missing docstrings
stainless-app[bot] Dec 9, 2025
1d7820f
chore(internal): add missing files argument to base client
stainless-app[bot] Dec 16, 2025
4ebe231
chore: speedup initial import
stainless-app[bot] Dec 17, 2025
4c68967
fix: use async_to_httpx_files in patch method
stainless-app[bot] Dec 18, 2025
22cd02f
chore(internal): add `--fix` argument to lint script
stainless-app[bot] Dec 19, 2025
c4127dd
refactor(api): api domain from miruml to mirurobotics
stainless-app[bot] Jan 8, 2026
18e2399
release: 0.7.0
stainless-app[bot] Jan 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/miruml/python-server-sdk/actions/workflows/publish-pypi.yml
# You can run this workflow by navigating to https://www.github.com/mirurobotics/python-server-sdk/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'miruml/python-server-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
if: github.repository == 'mirurobotics/python-server-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.6.1"
".": "0.7.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 14
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-e8b887c478291aecbbf06e532903242a5d5ff682a2a6814921bb770c97a1753d.yml
openapi_spec_hash: b15141c2e0e81b8029c620d4aef4188c
config_hash: c1d1c4ffd4bc69023d6bf98b1bbc4304
config_hash: 0c281c7956e6819225d871f6cfc91578
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## 0.7.0 (2026-01-08)

Full Changelog: [v0.6.1...v0.7.0](https://github.com/mirurobotics/python-server-sdk/compare/v0.6.1...v0.7.0)

### ⚠ BREAKING CHANGES

* **api:** change route to be /beta instead of /v1

### Bug Fixes

* **client:** close streams without requiring full consumption ([c50bca7](https://github.com/mirurobotics/python-server-sdk/commit/c50bca723dc9398bf97d9db9d881f8090b9deef0))
* compat with Python 3.14 ([6e10abe](https://github.com/mirurobotics/python-server-sdk/commit/6e10abeb80e20e1d64eb9e1d251bd2d426ed62ad))
* **compat:** update signatures of `model_dump` and `model_dump_json` for Pydantic v1 ([b71ebf9](https://github.com/mirurobotics/python-server-sdk/commit/b71ebf96149950711b88780da4dce30a1e250e02))
* ensure streams are always closed ([ab93bca](https://github.com/mirurobotics/python-server-sdk/commit/ab93bca51d143a6e8d26a05947e538d15ee751ea))
* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([7769f80](https://github.com/mirurobotics/python-server-sdk/commit/7769f807b07bc2d6b611766e1e5d4545289d558d))
* use async_to_httpx_files in patch method ([4c68967](https://github.com/mirurobotics/python-server-sdk/commit/4c6896709773ce6fee0641f107ab0c7364f9716d))


### Chores

* add missing docstrings ([37f1eae](https://github.com/mirurobotics/python-server-sdk/commit/37f1eae5abbe16ad18e05bdf8bfa47509304c7ee))
* add Python 3.14 classifier and testing ([6df3ecd](https://github.com/mirurobotics/python-server-sdk/commit/6df3ecd00b28abb16c06cae6c13b8728445ace6a))
* **deps:** mypy 1.18.1 has a regression, pin to 1.17 ([d644966](https://github.com/mirurobotics/python-server-sdk/commit/d644966063e8b3e17ca407ad4062be2874e07878))
* **docs:** use environment variables for authentication in code snippets ([ee97b11](https://github.com/mirurobotics/python-server-sdk/commit/ee97b11addd6b183e49a28d6ccbc7cb73b9247dd))
* **internal/tests:** avoid race condition with implicit client cleanup ([445023e](https://github.com/mirurobotics/python-server-sdk/commit/445023e773a89e857f47d1ca9fb61f0c1f6fde7b))
* **internal:** add `--fix` argument to lint script ([22cd02f](https://github.com/mirurobotics/python-server-sdk/commit/22cd02f5f184a085b365aca7c1f1f6959be0fbcb))
* **internal:** add missing files argument to base client ([1d7820f](https://github.com/mirurobotics/python-server-sdk/commit/1d7820f56b688e75988288e86b2a6eb62657681f))
* **internal:** grammar fix (it's -> its) ([5c82d3a](https://github.com/mirurobotics/python-server-sdk/commit/5c82d3a7b9f90620c68e850441cbd204d475e8d0))
* **package:** drop Python 3.8 support ([80b7c35](https://github.com/mirurobotics/python-server-sdk/commit/80b7c35b8dbe72ecf05cca08217b934eb8bef3a5))
* speedup initial import ([4ebe231](https://github.com/mirurobotics/python-server-sdk/commit/4ebe2315fe940766e2888b4cda52c7d9799e6132))
* update lockfile ([f840597](https://github.com/mirurobotics/python-server-sdk/commit/f8405973872ef23e5294cf061d7794497e15a1ec))


### Refactors

* **api:** api domain from miruml to mirurobotics ([c4127dd](https://github.com/mirurobotics/python-server-sdk/commit/c4127dd3a6e14e10757ea6f29929370231c1ceaf))
* **api:** change route to be /beta instead of /v1 ([6b7bd87](https://github.com/mirurobotics/python-server-sdk/commit/6b7bd87fd125f8ac6205af2d289e75036df693e4))

## 0.6.1 (2025-10-21)

Full Changelog: [v0.6.0...v0.6.1](https://github.com/miruml/python-server-sdk/compare/v0.6.0...v0.6.1)
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ pip install git+ssh://git@github.com/miruml/python-server-sdk.git
$ pip install git+ssh://git@github.com/mirurobotics/python-server-sdk.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel

### Publish with a GitHub workflow

You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/miruml/python-server-sdk/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/mirurobotics/python-server-sdk/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2025 miru
Copyright 2026 miru

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<!-- prettier-ignore -->
[![PyPI version](https://img.shields.io/pypi/v/miru_server_sdk.svg?label=pypi%20(stable))](https://pypi.org/project/miru_server_sdk/)

The Miru Python library provides convenient access to the Miru REST API from any Python 3.8+
The Miru Python library provides convenient access to the Miru REST API from any Python 3.9+
application. The library includes type definitions for all request params and response fields,
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).

It is generated with [Stainless](https://www.stainless.com/).

## Documentation

The REST API documentation can be found on [docs.miruml.com](https://docs.miruml.com/home). The full API of this library can be found in [api.md](api.md).
The REST API documentation can be found on [docs.mirurobotics.com](https://docs.mirurobotics.com/home). The full API of this library can be found in [api.md](api.md).

## Installation

Expand Down Expand Up @@ -87,14 +87,15 @@ pip install miru_server_sdk[aiohttp]
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:

```python
import os
import asyncio
from miru_server_sdk import DefaultAioHttpClient
from miru_server_sdk import AsyncMiru


async def main() -> None:
async with AsyncMiru(
api_key="My API Key",
api_key=os.environ.get("MIRU_SERVER_API_KEY"), # This is the default and can be omitted
http_client=DefaultAioHttpClient(),
) as client:
config_instance = await client.config_instances.retrieve(
Expand Down Expand Up @@ -253,9 +254,9 @@ config_instance = response.parse() # get the object that `config_instances.retr
print(config_instance.id)
```

These methods return an [`APIResponse`](https://github.com/miruml/python-server-sdk/tree/main/src/miru_server_sdk/_response.py) object.
These methods return an [`APIResponse`](https://github.com/mirurobotics/python-server-sdk/tree/main/src/miru_server_sdk/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/miruml/python-server-sdk/tree/main/src/miru_server_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
The async client returns an [`AsyncAPIResponse`](https://github.com/mirurobotics/python-server-sdk/tree/main/src/miru_server_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.

#### `.with_streaming_response`

Expand Down Expand Up @@ -361,7 +362,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/miruml/python-server-sdk/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/mirurobotics/python-server-sdk/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand All @@ -376,7 +377,7 @@ print(miru_server_sdk.__version__)

## Requirements

Python 3.8 or higher.
Python 3.9 or higher.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ or products provided by Miru, please follow the respective company's security re

### Miru Terms and Policies

Please contact ben@miruml.com for any questions or concerns regarding the security of our services.
Please contact ben@mirurobotics.com for any questions or concerns regarding the security of our services.

---

Expand Down
32 changes: 17 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
[project]
name = "miru_server_sdk"
version = "0.6.1"
version = "0.7.0"
description = "The official Python library for the miru API"
dynamic = ["readme"]
license = "MIT"
authors = [
{ name = "Miru", email = "ben@miruml.com" },
{ name = "Miru", email = "ben@mirurobotics.com" },
]

dependencies = [
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.10, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.10, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
]
requires-python = ">= 3.8"

requires-python = ">= 3.9"
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: MacOS",
Expand All @@ -35,8 +37,8 @@ classifiers = [
]

[project.urls]
Homepage = "https://github.com/miruml/python-server-sdk"
Repository = "https://github.com/miruml/python-server-sdk"
Homepage = "https://github.com/mirurobotics/python-server-sdk"
Repository = "https://github.com/mirurobotics/python-server-sdk"

[project.optional-dependencies]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
Expand All @@ -46,7 +48,7 @@ managed = true
# version pins are in requirements-dev.lock
dev-dependencies = [
"pyright==1.1.399",
"mypy",
"mypy==1.17",
"respx",
"pytest",
"pytest-asyncio",
Expand Down Expand Up @@ -124,7 +126,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\1](https://github.com/miruml/python-server-sdk/tree/main/\g<2>)'
replacement = '[\1](https://github.com/mirurobotics/python-server-sdk/tree/main/\g<2>)'

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand All @@ -141,7 +143,7 @@ filterwarnings = [
# there are a couple of flags that are still disabled by
# default in strict mode as they are experimental and niche.
typeCheckingMode = "strict"
pythonVersion = "3.8"
pythonVersion = "3.9"

exclude = [
"_dev",
Expand Down
Loading