Skip to content

Commit 9b712ef

Browse files
committed
Release 0.0.32
1 parent b9ebf7c commit 9b712ef

File tree

5 files changed

+4
-156
lines changed

5 files changed

+4
-156
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "axiomatic"
3-
version = "0.0.31"
3+
version = "0.0.32"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,63 +1780,3 @@ client.requirements.data_files.retrieve()
17801780
</dl>
17811781
</details>
17821782

1783-
<details><summary><code>client.requirements.data_files.<a href="src/axiomatic/requirements/data_files/client.py">get</a>()</code></summary>
1784-
<dl>
1785-
<dd>
1786-
1787-
#### 📝 Description
1788-
1789-
<dl>
1790-
<dd>
1791-
1792-
<dl>
1793-
<dd>
1794-
1795-
Provides database for user menu later used to compose reqs in AXtract
1796-
</dd>
1797-
</dl>
1798-
</dd>
1799-
</dl>
1800-
1801-
#### 🔌 Usage
1802-
1803-
<dl>
1804-
<dd>
1805-
1806-
<dl>
1807-
<dd>
1808-
1809-
```python
1810-
from axiomatic import Axiomatic
1811-
1812-
client = Axiomatic(
1813-
api_key="YOUR_API_KEY",
1814-
)
1815-
client.requirements.data_files.get()
1816-
1817-
```
1818-
</dd>
1819-
</dl>
1820-
</dd>
1821-
</dl>
1822-
1823-
#### ⚙️ Parameters
1824-
1825-
<dl>
1826-
<dd>
1827-
1828-
<dl>
1829-
<dd>
1830-
1831-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1832-
1833-
</dd>
1834-
</dl>
1835-
</dd>
1836-
</dl>
1837-
1838-
1839-
</dd>
1840-
</dl>
1841-
</details>
1842-

src/axiomatic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "axiomatic",
19-
"X-Fern-SDK-Version": "0.0.31",
19+
"X-Fern-SDK-Version": "0.0.32",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/requirements/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def check(
5959
)
6060
"""
6161
_response = self._client_wrapper.httpx_client.request(
62-
"requirements/check_requirements",
62+
"requirements/check",
6363
method="POST",
6464
json=convert_and_respect_annotation_metadata(
6565
object_=request, annotation=typing.Sequence[RequirementBody], direction="write"
@@ -141,7 +141,7 @@ async def main() -> None:
141141
asyncio.run(main())
142142
"""
143143
_response = await self._client_wrapper.httpx_client.request(
144-
"requirements/check_requirements",
144+
"requirements/check",
145145
method="POST",
146146
json=convert_and_respect_annotation_metadata(
147147
object_=request, annotation=typing.Sequence[RequirementBody], direction="write"

src/axiomatic/requirements/data_files/client.py

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -55,48 +55,6 @@ def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -
5555
raise ApiError(status_code=_response.status_code, body=_response.text)
5656
raise ApiError(status_code=_response.status_code, body=_response_json)
5757

58-
def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Optional[typing.Any]:
59-
"""
60-
Provides database for user menu later used to compose reqs in AXtract
61-
62-
Parameters
63-
----------
64-
request_options : typing.Optional[RequestOptions]
65-
Request-specific configuration.
66-
67-
Returns
68-
-------
69-
typing.Optional[typing.Any]
70-
Successful Response
71-
72-
Examples
73-
--------
74-
from axiomatic import Axiomatic
75-
76-
client = Axiomatic(
77-
api_key="YOUR_API_KEY",
78-
)
79-
client.requirements.data_files.get()
80-
"""
81-
_response = self._client_wrapper.httpx_client.request(
82-
"requirements/get_axtract_data_files",
83-
method="POST",
84-
request_options=request_options,
85-
)
86-
try:
87-
if 200 <= _response.status_code < 300:
88-
return typing.cast(
89-
typing.Optional[typing.Any],
90-
parse_obj_as(
91-
type_=typing.Optional[typing.Any], # type: ignore
92-
object_=_response.json(),
93-
),
94-
)
95-
_response_json = _response.json()
96-
except JSONDecodeError:
97-
raise ApiError(status_code=_response.status_code, body=_response.text)
98-
raise ApiError(status_code=_response.status_code, body=_response_json)
99-
10058

10159
class AsyncDataFilesClient:
10260
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -151,53 +109,3 @@ async def main() -> None:
151109
except JSONDecodeError:
152110
raise ApiError(status_code=_response.status_code, body=_response.text)
153111
raise ApiError(status_code=_response.status_code, body=_response_json)
154-
155-
async def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Optional[typing.Any]:
156-
"""
157-
Provides database for user menu later used to compose reqs in AXtract
158-
159-
Parameters
160-
----------
161-
request_options : typing.Optional[RequestOptions]
162-
Request-specific configuration.
163-
164-
Returns
165-
-------
166-
typing.Optional[typing.Any]
167-
Successful Response
168-
169-
Examples
170-
--------
171-
import asyncio
172-
173-
from axiomatic import AsyncAxiomatic
174-
175-
client = AsyncAxiomatic(
176-
api_key="YOUR_API_KEY",
177-
)
178-
179-
180-
async def main() -> None:
181-
await client.requirements.data_files.get()
182-
183-
184-
asyncio.run(main())
185-
"""
186-
_response = await self._client_wrapper.httpx_client.request(
187-
"requirements/get_axtract_data_files",
188-
method="POST",
189-
request_options=request_options,
190-
)
191-
try:
192-
if 200 <= _response.status_code < 300:
193-
return typing.cast(
194-
typing.Optional[typing.Any],
195-
parse_obj_as(
196-
type_=typing.Optional[typing.Any], # type: ignore
197-
object_=_response.json(),
198-
),
199-
)
200-
_response_json = _response.json()
201-
except JSONDecodeError:
202-
raise ApiError(status_code=_response.status_code, body=_response.text)
203-
raise ApiError(status_code=_response.status_code, body=_response_json)

0 commit comments

Comments
 (0)