Skip to content

Commit 066a25f

Browse files
committed
Release 0.0.11
1 parent d1ef4a1 commit 066a25f

File tree

4 files changed

+48
-12
lines changed

4 files changed

+48
-12
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ pip install --upgrade fern-api
2020
```python
2121
from fern.client import Fern
2222

23-
client = Fern(token="YOUR_TOKEN")
23+
client = Fern(
24+
token="YOUR_TOKEN",
25+
)
2426
```
2527
<!-- End Usage -->
2628

@@ -30,7 +32,9 @@ client = Fern(token="YOUR_TOKEN")
3032
```python
3133
from fern.client import AsyncFern
3234

33-
client = AsyncFern(token="YOUR_TOKEN")
35+
client = AsyncFern(
36+
token="YOUR_TOKEN",
37+
)
3438
```
3539
<!-- End Async Usage -->
3640

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fern-api"
3-
version = "0.0.10"
3+
version = "0.0.11"
44
description = ""
55
readme = "README.md"
66
authors = []

src/fern/core/client_wrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1414
headers: typing.Dict[str, str] = {
1515
"X-Fern-Language": "Python",
1616
"X-Fern-SDK-Name": "fern-api",
17-
"X-Fern-SDK-Version": "0.0.10",
17+
"X-Fern-SDK-Version": "0.0.11",
1818
}
1919
headers["Authorization"] = f"Bearer {self._get_token()}"
2020
return headers

src/fern/resources/snippets/client.py

+40-8
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,15 @@ def get(
6565
6666
from fern import EndpointIdentifier, EndpointMethod
6767
68-
client = Fern(token="YOUR_TOKEN")
69-
client.snippets.get(endpoint=EndpointIdentifier(method=EndpointMethod.GET, path="/v1/search"))
68+
client = Fern(
69+
token="YOUR_TOKEN",
70+
)
71+
client.snippets.get(
72+
endpoint=EndpointIdentifier(
73+
method=EndpointMethod.GET,
74+
path="/v1/search",
75+
),
76+
)
7077
"""
7178
_request: typing.Dict[str, typing.Any] = {"endpoint": endpoint}
7279
if org_id is not OMIT:
@@ -135,12 +142,21 @@ def load(
135142
136143
from fern import PythonSdk, Sdk_Python
137144
138-
client = Fern(token="YOUR_TOKEN")
145+
client = Fern(
146+
token="YOUR_TOKEN",
147+
)
139148
client.snippets.load(
140149
page=1,
141150
org_id="vellum",
142151
api_id="vellum-ai",
143-
sdks=[Sdk_Python(value=PythonSdk(package="vellum-ai", version="1.2.1"))],
152+
sdks=[
153+
Sdk_Python(
154+
value=PythonSdk(
155+
package="vellum-ai",
156+
version="1.2.1",
157+
)
158+
)
159+
],
144160
)
145161
"""
146162
_request: typing.Dict[str, typing.Any] = {}
@@ -218,8 +234,15 @@ async def get(
218234
219235
from fern import EndpointIdentifier, EndpointMethod
220236
221-
client = AsyncFern(token="YOUR_TOKEN")
222-
await client.snippets.get(endpoint=EndpointIdentifier(method=EndpointMethod.GET, path="/v1/search"))
237+
client = AsyncFern(
238+
token="YOUR_TOKEN",
239+
)
240+
await client.snippets.get(
241+
endpoint=EndpointIdentifier(
242+
method=EndpointMethod.GET,
243+
path="/v1/search",
244+
),
245+
)
223246
"""
224247
_request: typing.Dict[str, typing.Any] = {"endpoint": endpoint}
225248
if org_id is not OMIT:
@@ -288,12 +311,21 @@ async def load(
288311
289312
from fern import PythonSdk, Sdk_Python
290313
291-
client = AsyncFern(token="YOUR_TOKEN")
314+
client = AsyncFern(
315+
token="YOUR_TOKEN",
316+
)
292317
await client.snippets.load(
293318
page=1,
294319
org_id="vellum",
295320
api_id="vellum-ai",
296-
sdks=[Sdk_Python(value=PythonSdk(package="vellum-ai", version="1.2.1"))],
321+
sdks=[
322+
Sdk_Python(
323+
value=PythonSdk(
324+
package="vellum-ai",
325+
version="1.2.1",
326+
)
327+
)
328+
],
297329
)
298330
"""
299331
_request: typing.Dict[str, typing.Any] = {}

0 commit comments

Comments
 (0)