Skip to content

Commit db03abc

Browse files
authored
Merge pull request #52 from team-monite/fern-bot/2025-06-26T08-54Z
🌿 Fern Regeneration -- June 26, 2025
2 parents d736f9a + cdfec69 commit db03abc

159 files changed

Lines changed: 20460 additions & 4229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,49 @@ pip install monite
1717

1818
## Reference
1919

20-
A full reference for this library is available [here](./reference.md).
20+
A full reference for this library is available [here](https://github.com/team-monite/monite-python-client/blob/HEAD/./reference.md).
2121

2222
## Usage
2323

2424
Instantiate and use the client with the following:
2525

2626
```python
2727
from monite import Monite
28-
client = Monite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
29-
client.products.create(name='name', )
28+
29+
client = Monite(
30+
monite_version="YOUR_MONITE_VERSION",
31+
monite_entity_id="YOUR_MONITE_ENTITY_ID",
32+
token="YOUR_TOKEN",
33+
)
34+
client.products.create(
35+
name="name",
36+
)
3037
```
3138

3239
## Async Client
3340

3441
The SDK also exports an `async` client so that you can make non-blocking calls to our API.
3542

3643
```python
37-
from monite import AsyncMonite
3844
import asyncio
39-
client = AsyncMonite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
45+
46+
from monite import AsyncMonite
47+
48+
client = AsyncMonite(
49+
monite_version="YOUR_MONITE_VERSION",
50+
monite_entity_id="YOUR_MONITE_ENTITY_ID",
51+
token="YOUR_TOKEN",
52+
)
53+
54+
4055
async def main() -> None:
41-
await client.products.create(name='name', )
42-
asyncio.run(main())```
56+
await client.products.create(
57+
name="name",
58+
)
59+
60+
61+
asyncio.run(main())
62+
```
4363

4464
## Exception Handling
4565

@@ -48,6 +68,7 @@ will be thrown.
4868

4969
```python
5070
from monite.core.api_error import ApiError
71+
5172
try:
5273
client.products.create(...)
5374
except ApiError as e:
@@ -64,7 +85,10 @@ The `.with_raw_response` property returns a "raw" client that can be used to acc
6485

6586
```python
6687
from monite import Monite
67-
client = Monite(..., )
88+
89+
client = Monite(
90+
...,
91+
)
6892
response = client.products.with_raw_response.create(...)
6993
print(response.headers) # access the response headers
7094
print(response.data) # access the underlying object
@@ -97,7 +121,12 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
97121
```python
98122

99123
from monite import Monite
100-
client = Monite(..., timeout=20.0, )
124+
125+
client = Monite(
126+
...,
127+
timeout=20.0,
128+
)
129+
101130

102131
# Override timeout for a specific method
103132
client.products.create(..., request_options={
@@ -111,9 +140,17 @@ You can override the `httpx` client to customize it for your use-case. Some comm
111140
and transports.
112141

113142
```python
114-
from monite import Monite
115143
import httpx
116-
client = Monite(..., httpx_client=httpx.Client(proxies="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ))```
144+
from monite import Monite
145+
146+
client = Monite(
147+
...,
148+
httpx_client=httpx.Client(
149+
proxies="http://my.test.proxy.example.com",
150+
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
151+
),
152+
)
153+
```
117154

118155
## Contributing
119156

poetry.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "monite"
33

44
[tool.poetry]
55
name = "monite"
6-
version = "0.5.2"
6+
version = "0.5.3"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -38,7 +38,7 @@ Repository = 'https://github.com/team-monite/monite-python-client'
3838
python = "^3.8"
3939
httpx = ">=0.21.2"
4040
pydantic = ">= 1.9.2"
41-
pydantic-core = "^2.18.2"
41+
pydantic-core = ">=2.18.2"
4242
typing_extensions = ">= 4.0.0"
4343

4444
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)