Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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-agent-sdk/actions/workflows/publish-pypi.yml
# You can run this workflow by navigating to https://www.github.com/mirurobotics/python-agent-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-agent-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-agent-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.2.1"
".": "0.2.2"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-agent-ffae0a34ce97de595b13ef4f245379ab41e318b2abd8c1e4683bf34b4dd0d2c1.yml
openapi_spec_hash: 62914cbb512ac0083489f7b281c77671
config_hash: a36330a3b27b8375298d0677e6ac4aa9
config_hash: f3c25b21daf83ecec852832315bf6291
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 0.2.2 (2026-01-08)

Full Changelog: [v0.2.1...v0.2.2](https://github.com/mirurobotics/python-agent-sdk/compare/v0.2.1...v0.2.2)

### Bug Fixes

* **client:** close streams without requiring full consumption ([842ca7c](https://github.com/mirurobotics/python-agent-sdk/commit/842ca7c72218a02fa2249ee68fbcc1645a2193d5))
* compat with Python 3.14 ([ef95edb](https://github.com/mirurobotics/python-agent-sdk/commit/ef95edbaa00a842f9d40c30d329f6398851582d0))
* **compat:** update signatures of `model_dump` and `model_dump_json` for Pydantic v1 ([d607c00](https://github.com/mirurobotics/python-agent-sdk/commit/d607c004fb803cd532fa344b44ab3b3404bdeb6e))


### Chores

* bump `httpx-aiohttp` version to 0.1.9 ([74ef8cb](https://github.com/mirurobotics/python-agent-sdk/commit/74ef8cbc0912a8a5f32c62d1f5e2d2c9e6967358))
* **internal/tests:** avoid race condition with implicit client cleanup ([2bd8067](https://github.com/mirurobotics/python-agent-sdk/commit/2bd80673bbdb96bbfd82e93a1e927542211bf890))
* **internal:** detect missing future annotations with ruff ([5749281](https://github.com/mirurobotics/python-agent-sdk/commit/5749281cfd3192819fdaa6faa3409932a6a8e15e))
* **internal:** grammar fix (it's -> its) ([3d0e23a](https://github.com/mirurobotics/python-agent-sdk/commit/3d0e23a5a6b703718047bf698ad41f154133abcc))
* **package:** drop Python 3.8 support ([5544c35](https://github.com/mirurobotics/python-agent-sdk/commit/5544c352c00a7c5d1ec53a90c0719ce96fd5b846))


### Refactors

* **api:** migrate api domain from miruml to mirurobotics ([9f29446](https://github.com/mirurobotics/python-agent-sdk/commit/9f29446fe63b2b68e973fed4ff946a22d8eb5e07))

## 0.2.1 (2025-09-21)

Full Changelog: [v0.2.0...v0.2.1](https://github.com/miruml/python-agent-sdk/compare/v0.2.0...v0.2.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-agent-sdk.git
$ pip install git+ssh://git@github.com/mirurobotics/python-agent-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-agent-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-agent-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
12 changes: 6 additions & 6 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_agent_sdk.svg?label=pypi%20(stable))](https://pypi.org/project/miru_agent_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). 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). The full API of this library can be found in [api.md](api.md).

## Installation

Expand Down Expand Up @@ -223,9 +223,9 @@ device = response.parse() # get the object that `device.retrieve()` would have
print(device.id)
```

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

The async client returns an [`AsyncAPIResponse`](https://github.com/miruml/python-agent-sdk/tree/main/src/miru_agent_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-agent-sdk/tree/main/src/miru_agent_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 @@ -329,7 +329,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-agent-sdk/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/mirurobotics/python-agent-sdk/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand All @@ -344,7 +344,7 @@ print(miru_agent_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
38 changes: 22 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
[project]
name = "miru_agent_sdk"
version = "0.2.1"
version = "0.2.2"
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,18 +37,18 @@ classifiers = [
]

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

[project.optional-dependencies]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]

[tool.rye]
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-agent-sdk/tree/main/\g<2>)'
replacement = '[\1](https://github.com/mirurobotics/python-agent-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 Expand Up @@ -224,6 +226,8 @@ select = [
"B",
# remove unused imports
"F401",
# check for missing future annotations
"FA102",
# bare except statements
"E722",
# unused arguments
Expand All @@ -246,6 +250,8 @@ unfixable = [
"T203",
]

extend-safe-fixes = ["FA102"]

[tool.ruff.lint.flake8-tidy-imports.banned-api]
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"

Expand Down
Loading