Skip to content

Commit 9b9ab8e

Browse files
authored
Merge pull request #7 from miruml/release-please--branches--main--changes--next
release: 0.4.2
2 parents 6fcd014 + 8589cb7 commit 9b9ab8e

File tree

8 files changed

+30
-23
lines changed

8 files changed

+30
-23
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.4.1"
2+
".": "0.5.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-d5d0de741a61bae4e957197c6fb0859ee5880ddab98616469f4414dc373c9d7f.yml
33
openapi_spec_hash: 10d91729a0e0430fd2a6c68b2c81f886
4-
config_hash: 568f270a0ae3182575201912161a09cf
4+
config_hash: 12fa4b9e99bf5317506a12aa9fecf73b

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.5.0 (2025-10-07)
4+
5+
Full Changelog: [v0.4.1...v0.5.0](https://github.com/miruml/python-server-sdk/compare/v0.4.1...v0.5.0)
6+
7+
### Features
8+
9+
* **api:** uat environment ([67e2b55](https://github.com/miruml/python-server-sdk/commit/67e2b5530fadfbd61d67e85d4fc5b4c363558fd9))
10+
311
## 0.4.1 (2025-10-05)
412

513
Full Changelog: [v0.4.1-beta.3...v0.4.1](https://github.com/miruml/python-server-sdk/compare/v0.4.1-beta.3...v0.4.1)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ from miru_server_sdk import Miru
3030

3131
client = Miru(
3232
api_key=os.environ.get("MIRU_SERVER_API_KEY"), # This is the default and can be omitted
33-
# or 'production' | 'local'; defaults to "production".
34-
environment="staging",
33+
# or 'prod' | 'staging' | 'local'; defaults to "prod".
34+
environment="uat",
3535
)
3636

3737
config_instance = client.config_instances.retrieve(
@@ -56,8 +56,8 @@ from miru_server_sdk import AsyncMiru
5656

5757
client = AsyncMiru(
5858
api_key=os.environ.get("MIRU_SERVER_API_KEY"), # This is the default and can be omitted
59-
# or 'production' | 'local'; defaults to "production".
60-
environment="staging",
59+
# or 'prod' | 'staging' | 'local'; defaults to "prod".
60+
environment="uat",
6161
)
6262

6363

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "miru_server_sdk"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
description = "The official Python library for the miru API"
55
dynamic = ["readme"]
66
license = "MIT"

src/miru_server_sdk/_client.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
]
4444

4545
ENVIRONMENTS: Dict[str, str] = {
46-
"production": "https://configs.api.miruml.com/v1",
46+
"prod": "https://configs.api.miruml.com/v1",
47+
"uat": "https://uat.api.miruml.com/v1",
4748
"staging": "https://configs.dev.api.miruml.com/v1",
4849
"local": "http://localhost:8080/v1",
4950
}
@@ -63,15 +64,15 @@ class Miru(SyncAPIClient):
6364
host: str
6465
version: str
6566

66-
_environment: Literal["production", "staging", "local"] | NotGiven
67+
_environment: Literal["prod", "uat", "staging", "local"] | NotGiven
6768

6869
def __init__(
6970
self,
7071
*,
7172
api_key: str | None = None,
7273
host: str | None = None,
7374
version: str | None = None,
74-
environment: Literal["production", "staging", "local"] | NotGiven = not_given,
75+
environment: Literal["prod", "uat", "staging", "local"] | NotGiven = not_given,
7576
base_url: str | httpx.URL | None | NotGiven = not_given,
7677
timeout: float | Timeout | None | NotGiven = not_given,
7778
max_retries: int = DEFAULT_MAX_RETRIES,
@@ -133,7 +134,7 @@ def __init__(
133134
elif base_url_env is not None:
134135
base_url = base_url_env
135136
else:
136-
self._environment = environment = "production"
137+
self._environment = environment = "prod"
137138

138139
try:
139140
base_url = ENVIRONMENTS[environment]
@@ -185,7 +186,7 @@ def copy(
185186
api_key: str | None = None,
186187
host: str | None = None,
187188
version: str | None = None,
188-
environment: Literal["production", "staging", "local"] | None = None,
189+
environment: Literal["prod", "uat", "staging", "local"] | None = None,
189190
base_url: str | httpx.URL | None = None,
190191
timeout: float | Timeout | None | NotGiven = not_given,
191192
http_client: httpx.Client | None = None,
@@ -284,15 +285,15 @@ class AsyncMiru(AsyncAPIClient):
284285
host: str
285286
version: str
286287

287-
_environment: Literal["production", "staging", "local"] | NotGiven
288+
_environment: Literal["prod", "uat", "staging", "local"] | NotGiven
288289

289290
def __init__(
290291
self,
291292
*,
292293
api_key: str | None = None,
293294
host: str | None = None,
294295
version: str | None = None,
295-
environment: Literal["production", "staging", "local"] | NotGiven = not_given,
296+
environment: Literal["prod", "uat", "staging", "local"] | NotGiven = not_given,
296297
base_url: str | httpx.URL | None | NotGiven = not_given,
297298
timeout: float | Timeout | None | NotGiven = not_given,
298299
max_retries: int = DEFAULT_MAX_RETRIES,
@@ -354,7 +355,7 @@ def __init__(
354355
elif base_url_env is not None:
355356
base_url = base_url_env
356357
else:
357-
self._environment = environment = "production"
358+
self._environment = environment = "prod"
358359

359360
try:
360361
base_url = ENVIRONMENTS[environment]
@@ -406,7 +407,7 @@ def copy(
406407
api_key: str | None = None,
407408
host: str | None = None,
408409
version: str | None = None,
409-
environment: Literal["production", "staging", "local"] | None = None,
410+
environment: Literal["prod", "uat", "staging", "local"] | None = None,
410411
base_url: str | httpx.URL | None = None,
411412
timeout: float | Timeout | None | NotGiven = not_given,
412413
http_client: httpx.AsyncClient | None = None,

src/miru_server_sdk/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "miru_server_sdk"
4-
__version__ = "0.4.1" # x-release-please-version
4+
__version__ = "0.5.0" # x-release-please-version

tests/test_client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,9 @@ def test_base_url_env(self) -> None:
555555
# explicit environment arg requires explicitness
556556
with update_env(MIRU_BASE_URL="http://localhost:5000/from/env"):
557557
with pytest.raises(ValueError, match=r"you must pass base_url=None"):
558-
Miru(api_key=api_key, _strict_response_validation=True, environment="production")
558+
Miru(api_key=api_key, _strict_response_validation=True, environment="prod")
559559

560-
client = Miru(base_url=None, api_key=api_key, _strict_response_validation=True, environment="production")
560+
client = Miru(base_url=None, api_key=api_key, _strict_response_validation=True, environment="prod")
561561
assert str(client.base_url).startswith("https://configs.api.miruml.com/v1")
562562

563563
@pytest.mark.parametrize(
@@ -1366,11 +1366,9 @@ def test_base_url_env(self) -> None:
13661366
# explicit environment arg requires explicitness
13671367
with update_env(MIRU_BASE_URL="http://localhost:5000/from/env"):
13681368
with pytest.raises(ValueError, match=r"you must pass base_url=None"):
1369-
AsyncMiru(api_key=api_key, _strict_response_validation=True, environment="production")
1369+
AsyncMiru(api_key=api_key, _strict_response_validation=True, environment="prod")
13701370

1371-
client = AsyncMiru(
1372-
base_url=None, api_key=api_key, _strict_response_validation=True, environment="production"
1373-
)
1371+
client = AsyncMiru(base_url=None, api_key=api_key, _strict_response_validation=True, environment="prod")
13741372
assert str(client.base_url).startswith("https://configs.api.miruml.com/v1")
13751373

13761374
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)