@@ -20,12 +20,22 @@ A full reference for this library is available [here](./reference.md).
2020Instantiate and use the client with the following:
2121
2222``` python
23- from axiomatic import Axiomatic
23+ from axiomatic import Axiomatic, RequirementBody
2424
2525client = Axiomatic(
2626 api_key = " YOUR_API_KEY" ,
2727)
28- client.pic.extract()
28+ client.requirements.check_requirements_endpoint(
29+ request = [
30+ RequirementBody(
31+ latex_symbol = " latex_symbol" ,
32+ requirement_name = " requirement_name" ,
33+ tolerance = 1.1 ,
34+ value = 1.1 ,
35+ units = " units" ,
36+ )
37+ ],
38+ )
2939```
3040
3141## Async Client
@@ -35,15 +45,25 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
3545``` python
3646import asyncio
3747
38- from axiomatic import AsyncAxiomatic
48+ from axiomatic import AsyncAxiomatic, RequirementBody
3949
4050client = AsyncAxiomatic(
4151 api_key = " YOUR_API_KEY" ,
4252)
4353
4454
4555async def main () -> None :
46- await client.pic.extract()
56+ await client.requirements.check_requirements_endpoint(
57+ request = [
58+ RequirementBody(
59+ latex_symbol = " latex_symbol" ,
60+ requirement_name = " requirement_name" ,
61+ tolerance = 1.1 ,
62+ value = 1.1 ,
63+ units = " units" ,
64+ )
65+ ],
66+ )
4767
4868
4969asyncio.run(main())
@@ -58,7 +78,7 @@ will be thrown.
5878from axiomatic.core.api_error import ApiError
5979
6080try :
61- client.pic.extract (... )
81+ client.requirements.check_requirements_endpoint (... )
6282except ApiError as e:
6383 print (e.status_code)
6484 print (e.body)
@@ -81,7 +101,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
81101Use the ` max_retries ` request option to configure this behavior.
82102
83103``` python
84- client.pic.extract (... , request_options = {
104+ client.requirements.check_requirements_endpoint (... , request_options = {
85105 " max_retries" : 1
86106})
87107```
@@ -101,7 +121,7 @@ client = Axiomatic(
101121
102122
103123# Override timeout for a specific method
104- client.pic.extract (... , request_options = {
124+ client.requirements.check_requirements_endpoint (... , request_options = {
105125 " timeout_in_seconds" : 1
106126})
107127```
0 commit comments