Skip to content

Commit fca3934

Browse files
committed
Release 0.0.72
1 parent 99bf66b commit fca3934

19 files changed

+221
-85
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "axiomatic"
33

44
[tool.poetry]
55
name = "axiomatic"
6-
version = "0.0.71"
6+
version = "0.0.72"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 93 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,86 @@ core.File` — See core.File for more documentation
745745
</dl>
746746

747747

748+
</dd>
749+
</dl>
750+
</details>
751+
752+
<details><summary><code>client.document.<a href="src/axiomatic/document/client.py">constants</a>(...)</code></summary>
753+
<dl>
754+
<dd>
755+
756+
#### 📝 Description
757+
758+
<dl>
759+
<dd>
760+
761+
<dl>
762+
<dd>
763+
764+
Extracts specific constants from documents
765+
</dd>
766+
</dl>
767+
</dd>
768+
</dl>
769+
770+
#### 🔌 Usage
771+
772+
<dl>
773+
<dd>
774+
775+
<dl>
776+
<dd>
777+
778+
```python
779+
from axiomatic import Axiomatic
780+
781+
client = Axiomatic(
782+
api_key="YOUR_API_KEY",
783+
)
784+
client.document.constants(
785+
constants=["constants"],
786+
)
787+
788+
```
789+
</dd>
790+
</dl>
791+
</dd>
792+
</dl>
793+
794+
#### ⚙️ Parameters
795+
796+
<dl>
797+
<dd>
798+
799+
<dl>
800+
<dd>
801+
802+
**file:** `from __future__ import annotations
803+
804+
core.File` — See core.File for more documentation
805+
806+
</dd>
807+
</dl>
808+
809+
<dl>
810+
<dd>
811+
812+
**constants:** `typing.List[str]`
813+
814+
</dd>
815+
</dl>
816+
817+
<dl>
818+
<dd>
819+
820+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
821+
822+
</dd>
823+
</dl>
824+
</dd>
825+
</dl>
826+
827+
748828
</dd>
749829
</dl>
750830
</details>
@@ -1003,9 +1083,7 @@ from axiomatic import Axiomatic
10031083
client = Axiomatic(
10041084
api_key="YOUR_API_KEY",
10051085
)
1006-
client.document.plot.points(
1007-
b_64_img_str="b64_img_str",
1008-
)
1086+
client.document.plot.points()
10091087

10101088
```
10111089
</dd>
@@ -1021,15 +1099,17 @@ client.document.plot.points(
10211099
<dl>
10221100
<dd>
10231101

1024-
**b_64_img_str:** `str` — Img of plot as a base64 string
1102+
**plot_img:** `from __future__ import annotations
1103+
1104+
core.File` — See core.File for more documentation
10251105

10261106
</dd>
10271107
</dl>
10281108

10291109
<dl>
10301110
<dd>
10311111

1032-
**method:** `typing.Optional[int]` — Can specify specific method to extract points
1112+
**method:** `typing.Optional[int]` — Can specify a specific method to extract points
10331113

10341114
</dd>
10351115
</dl>
@@ -1747,6 +1827,14 @@ client.pic.circuit.generate(
17471827
<dl>
17481828
<dd>
17491829

1830+
**apply_orientation:** `typing.Optional[bool]`
1831+
1832+
</dd>
1833+
</dl>
1834+
1835+
<dl>
1836+
<dd>
1837+
17501838
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
17511839

17521840
</dd>

src/axiomatic/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from .types import (
44
Bundle,
55
BundleSettingsValue,
6+
ColorToPoints,
67
Computation,
78
ComputationArgumentsValue,
89
CostFunction,
@@ -24,10 +25,8 @@
2425
GetSpectrumResponseSpectrumItem,
2526
HttpValidationError,
2627
InteractiveResponse,
27-
MultiPoints,
2828
Net,
2929
Netlist,
30-
NetlistPlacementsValueValue,
3130
OptimizationHistory,
3231
OptimizeConfig,
3332
OptimizeNetlistResponse,
@@ -40,6 +39,7 @@
4039
PicInstanceInfoValue,
4140
PicInstanceSettingsValue,
4241
PicWarnings,
42+
Placement,
4343
Points,
4444
RefineCodeResponse,
4545
RefineComponentCodeResponse,
@@ -78,6 +78,7 @@
7878
"AxiomaticEnvironment",
7979
"Bundle",
8080
"BundleSettingsValue",
81+
"ColorToPoints",
8182
"Computation",
8283
"ComputationArgumentsValue",
8384
"CostFunction",
@@ -99,10 +100,8 @@
99100
"GetSpectrumResponseSpectrumItem",
100101
"HttpValidationError",
101102
"InteractiveResponse",
102-
"MultiPoints",
103103
"Net",
104104
"Netlist",
105-
"NetlistPlacementsValueValue",
106105
"OptimizationHistory",
107106
"OptimizeConfig",
108107
"OptimizeNetlistResponse",
@@ -115,6 +114,7 @@
115114
"PicInstanceInfoValue",
116115
"PicInstanceSettingsValue",
117116
"PicWarnings",
117+
"Placement",
118118
"Points",
119119
"RefineCodeResponse",
120120
"RefineComponentCodeResponse",

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.71",
19+
"X-Fern-SDK-Version": "0.0.72",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/document/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from . import plot
4-
from .plot import PlotPointsResponse
54

6-
__all__ = ["PlotPointsResponse", "plot"]
5+
__all__ = ["plot"]

src/axiomatic/document/client.py

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,7 @@ def parse(
180180
raise ApiError(status_code=_response.status_code, body=_response_json)
181181

182182
def constants(
183-
self,
184-
*,
185-
file: core.File,
186-
constants: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
187-
request_options: typing.Optional[RequestOptions] = None,
183+
self, *, file: core.File, constants: typing.List[str], request_options: typing.Optional[RequestOptions] = None
188184
) -> ExtractConstantsResponse:
189185
"""
190186
Extracts specific constants from documents
@@ -194,8 +190,7 @@ def constants(
194190
file : core.File
195191
See core.File for more documentation
196192
197-
constants : typing.Optional[typing.Union[str, typing.Sequence[str]]]
198-
List of constants to extract
193+
constants : typing.List[str]
199194
200195
request_options : typing.Optional[RequestOptions]
201196
Request-specific configuration.
@@ -204,14 +199,24 @@ def constants(
204199
-------
205200
ExtractConstantsResponse
206201
Successful Response
202+
203+
Examples
204+
--------
205+
from axiomatic import Axiomatic
206+
207+
client = Axiomatic(
208+
api_key="YOUR_API_KEY",
209+
)
210+
client.document.constants(
211+
constants=["constants"],
212+
)
207213
"""
208214
_response = self._client_wrapper.httpx_client.request(
209215
"document/constants",
210216
method="POST",
211-
params={
217+
data={
212218
"constants": constants,
213219
},
214-
data={},
215220
files={
216221
"file": file,
217222
},
@@ -419,11 +424,7 @@ async def main() -> None:
419424
raise ApiError(status_code=_response.status_code, body=_response_json)
420425

421426
async def constants(
422-
self,
423-
*,
424-
file: core.File,
425-
constants: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
426-
request_options: typing.Optional[RequestOptions] = None,
427+
self, *, file: core.File, constants: typing.List[str], request_options: typing.Optional[RequestOptions] = None
427428
) -> ExtractConstantsResponse:
428429
"""
429430
Extracts specific constants from documents
@@ -433,8 +434,7 @@ async def constants(
433434
file : core.File
434435
See core.File for more documentation
435436
436-
constants : typing.Optional[typing.Union[str, typing.Sequence[str]]]
437-
List of constants to extract
437+
constants : typing.List[str]
438438
439439
request_options : typing.Optional[RequestOptions]
440440
Request-specific configuration.
@@ -443,14 +443,32 @@ async def constants(
443443
-------
444444
ExtractConstantsResponse
445445
Successful Response
446+
447+
Examples
448+
--------
449+
import asyncio
450+
451+
from axiomatic import AsyncAxiomatic
452+
453+
client = AsyncAxiomatic(
454+
api_key="YOUR_API_KEY",
455+
)
456+
457+
458+
async def main() -> None:
459+
await client.document.constants(
460+
constants=["constants"],
461+
)
462+
463+
464+
asyncio.run(main())
446465
"""
447466
_response = await self._client_wrapper.httpx_client.request(
448467
"document/constants",
449468
method="POST",
450-
params={
469+
data={
451470
"constants": constants,
452471
},
453-
data={},
454472
files={
455473
"file": file,
456474
},
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
from .types import PlotPointsResponse
4-
5-
__all__ = ["PlotPointsResponse"]

0 commit comments

Comments
 (0)