Skip to content

Commit fc709e4

Browse files
committed
Release 0.0.60
1 parent ec7d3c8 commit fc709e4

19 files changed

+371
-103
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.59"
6+
version = "0.0.60"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 76 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,77 @@ client.formalization.solution.find(
973973
</dl>
974974

975975

976+
</dd>
977+
</dl>
978+
</details>
979+
980+
## Fso Lens
981+
<details><summary><code>client.fso.lens.<a href="src/axiomatic/fso/lens/client.py">generate</a>(...)</code></summary>
982+
<dl>
983+
<dd>
984+
985+
#### 📝 Description
986+
987+
<dl>
988+
<dd>
989+
990+
<dl>
991+
<dd>
992+
993+
Generate GDS factory code to create a PIC component
994+
</dd>
995+
</dl>
996+
</dd>
997+
</dl>
998+
999+
#### 🔌 Usage
1000+
1001+
<dl>
1002+
<dd>
1003+
1004+
<dl>
1005+
<dd>
1006+
1007+
```python
1008+
from axiomatic import Axiomatic
1009+
1010+
client = Axiomatic(
1011+
api_key="YOUR_API_KEY",
1012+
)
1013+
client.fso.lens.generate(
1014+
query="query",
1015+
)
1016+
1017+
```
1018+
</dd>
1019+
</dl>
1020+
</dd>
1021+
</dl>
1022+
1023+
#### ⚙️ Parameters
1024+
1025+
<dl>
1026+
<dd>
1027+
1028+
<dl>
1029+
<dd>
1030+
1031+
**query:** `str`
1032+
1033+
</dd>
1034+
</dl>
1035+
1036+
<dl>
1037+
<dd>
1038+
1039+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1040+
1041+
</dd>
1042+
</dl>
1043+
</dd>
1044+
</dl>
1045+
1046+
9761047
</dd>
9771048
</dl>
9781049
</details>
@@ -1142,25 +1213,13 @@ Validates a set of statements against a netlist.
11421213
<dd>
11431214

11441215
```python
1145-
from axiomatic import (
1146-
Axiomatic,
1147-
Computation,
1148-
Netlist,
1149-
PicInstance,
1150-
StatementDictionary,
1151-
)
1216+
from axiomatic import Axiomatic, Computation, Netlist, StatementDictionary
11521217

11531218
client = Axiomatic(
11541219
api_key="YOUR_API_KEY",
11551220
)
11561221
client.pic.circuit.validate(
1157-
netlist=Netlist(
1158-
instances={
1159-
"key": PicInstance(
1160-
component="component",
1161-
)
1162-
},
1163-
),
1222+
netlist=Netlist(),
11641223
statements=StatementDictionary(),
11651224
mapping={
11661225
"key": Computation(
@@ -1317,20 +1376,14 @@ Map variables in the constraints to computations on the netlist.
13171376
<dd>
13181377

13191378
```python
1320-
from axiomatic import Axiomatic, Netlist, PicInstance, StatementDictionary
1379+
from axiomatic import Axiomatic, Netlist, StatementDictionary
13211380

13221381
client = Axiomatic(
13231382
api_key="YOUR_API_KEY",
13241383
)
13251384
client.pic.circuit.mapping(
13261385
statements=StatementDictionary(),
1327-
netlist=Netlist(
1328-
instances={
1329-
"key": PicInstance(
1330-
component="component",
1331-
)
1332-
},
1333-
),
1386+
netlist=Netlist(),
13341387
)
13351388

13361389
```
@@ -1571,21 +1624,14 @@ from axiomatic import (
15711624
Computation,
15721625
Netlist,
15731626
Parameter,
1574-
PicInstance,
15751627
StatementDictionary,
15761628
)
15771629

15781630
client = Axiomatic(
15791631
api_key="YOUR_API_KEY",
15801632
)
15811633
client.pic.circuit.optimize(
1582-
netlist=Netlist(
1583-
instances={
1584-
"key": PicInstance(
1585-
component="component",
1586-
)
1587-
},
1588-
),
1634+
netlist=Netlist(),
15891635
statements=StatementDictionary(),
15901636
mapping={
15911637
"key": Computation(

src/axiomatic/__init__.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
FormalizeResponse,
1414
GenerateCodeResponse,
1515
GenerateComponentCodeResponse,
16+
GenerateLensCodeResponse,
1617
HttpValidationError,
1718
InteractiveResponse,
1819
Net,
@@ -49,10 +50,11 @@
4950
ValidationErrorLocItem,
5051
VerifyCircuitCodeResponse,
5152
VerifyResponse,
52-
Z3Expression,
53+
Z3ExpressionInput,
54+
Z3ExpressionOutput,
5355
)
5456
from .errors import UnprocessableEntityError
55-
from . import code_execution, document, experimental, formalization, generic, lean, pic, requirements
57+
from . import code_execution, document, experimental, formalization, fso, generic, lean, pic, requirements
5658
from .client import AsyncAxiomatic, Axiomatic
5759
from .environment import AxiomaticEnvironment
5860
from .version import __version__
@@ -73,6 +75,7 @@
7375
"FormalizeResponse",
7476
"GenerateCodeResponse",
7577
"GenerateComponentCodeResponse",
78+
"GenerateLensCodeResponse",
7679
"HttpValidationError",
7780
"InteractiveResponse",
7881
"Net",
@@ -110,12 +113,14 @@
110113
"ValidationErrorLocItem",
111114
"VerifyCircuitCodeResponse",
112115
"VerifyResponse",
113-
"Z3Expression",
116+
"Z3ExpressionInput",
117+
"Z3ExpressionOutput",
114118
"__version__",
115119
"code_execution",
116120
"document",
117121
"experimental",
118122
"formalization",
123+
"fso",
119124
"generic",
120125
"lean",
121126
"pic",

src/axiomatic/base_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .generic.client import GenericClient
1414
from .document.client import DocumentClient
1515
from .code_execution.client import CodeExecutionClient
16+
from .fso.client import FsoClient
1617
from .pic.client import PicClient
1718
from .core.request_options import RequestOptions
1819
from .core.pydantic_utilities import parse_obj_as
@@ -25,6 +26,7 @@
2526
from .generic.client import AsyncGenericClient
2627
from .document.client import AsyncDocumentClient
2728
from .code_execution.client import AsyncCodeExecutionClient
29+
from .fso.client import AsyncFsoClient
2830
from .pic.client import AsyncPicClient
2931

3032

@@ -97,6 +99,7 @@ def __init__(
9799
self.generic = GenericClient(client_wrapper=self._client_wrapper)
98100
self.document = DocumentClient(client_wrapper=self._client_wrapper)
99101
self.code_execution = CodeExecutionClient(client_wrapper=self._client_wrapper)
102+
self.fso = FsoClient(client_wrapper=self._client_wrapper)
100103
self.pic = PicClient(client_wrapper=self._client_wrapper)
101104

102105
def trigger_error_sentry_debug_get(
@@ -253,6 +256,7 @@ def __init__(
253256
self.generic = AsyncGenericClient(client_wrapper=self._client_wrapper)
254257
self.document = AsyncDocumentClient(client_wrapper=self._client_wrapper)
255258
self.code_execution = AsyncCodeExecutionClient(client_wrapper=self._client_wrapper)
259+
self.fso = AsyncFsoClient(client_wrapper=self._client_wrapper)
256260
self.pic = AsyncPicClient(client_wrapper=self._client_wrapper)
257261

258262
async def trigger_error_sentry_debug_get(

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

src/axiomatic/fso/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from . import lens
4+
5+
__all__ = ["lens"]

src/axiomatic/fso/client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.client_wrapper import SyncClientWrapper
4+
from .lens.client import LensClient
5+
from ..core.client_wrapper import AsyncClientWrapper
6+
from .lens.client import AsyncLensClient
7+
8+
9+
class FsoClient:
10+
def __init__(self, *, client_wrapper: SyncClientWrapper):
11+
self._client_wrapper = client_wrapper
12+
self.lens = LensClient(client_wrapper=self._client_wrapper)
13+
14+
15+
class AsyncFsoClient:
16+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
17+
self._client_wrapper = client_wrapper
18+
self.lens = AsyncLensClient(client_wrapper=self._client_wrapper)

src/axiomatic/fso/lens/__init__.py

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

0 commit comments

Comments
 (0)