Skip to content

Commit fba1cf8

Browse files
committed
Release 0.0.4
1 parent b34948e commit fba1cf8

File tree

1,081 files changed

+12615
-15801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+12615
-15801
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Fern Python Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffern-api%2Ffdr-python-sdk)
4-
[![pypi](https://img.shields.io/pypi/v/fern-fern-fdr-sdk)](https://pypi.python.org/pypi/fern-fern-fdr-sdk)
4+
[![pypi](https://img.shields.io/pypi/v/fdr-sdk-py)](https://pypi.python.org/pypi/fdr-sdk-py)
55

66
The Fern Python library provides convenient access to the Fern API from Python.
77

88
## Installation
99

1010
```sh
11-
pip install fern-fern-fdr-sdk
11+
pip install fdr-sdk-py
1212
```
1313

1414
## Reference
@@ -20,9 +20,9 @@ A full reference for this library is available [here](https://github.com/fern-ap
2020
Instantiate and use the client with the following:
2121

2222
```python
23-
from fdr import FdrClient
23+
from fern import FernRegistry
2424

25-
client = FdrClient(
25+
client = FernRegistry(
2626
token="YOUR_TOKEN",
2727
)
2828
client.api.v_1.register.register_api_definition(
@@ -38,9 +38,9 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
3838
```python
3939
import asyncio
4040

41-
from fdr import AsyncFdrClient
41+
from fern import AsyncFernRegistry
4242

43-
client = AsyncFdrClient(
43+
client = AsyncFernRegistry(
4444
token="YOUR_TOKEN",
4545
)
4646

@@ -61,7 +61,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
6161
will be thrown.
6262

6363
```python
64-
from fdr.core.api_error import ApiError
64+
from fern.core.api_error import ApiError
6565

6666
try:
6767
client.api.v_1.register.register_api_definition(...)
@@ -75,9 +75,9 @@ except ApiError as e:
7575
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
7676

7777
```python
78-
from fdr import FdrClient
78+
from fern import FernRegistry
7979

80-
client = FdrClient(
80+
client = FernRegistry(
8181
token="YOUR_TOKEN",
8282
)
8383
response = client.generators.cli.list_cli_releases()
@@ -96,9 +96,9 @@ The SDK provides access to raw response data, including headers, through the `.w
9696
The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
9797

9898
```python
99-
from fdr import FdrClient
99+
from fern import FernRegistry
100100

101-
client = FdrClient(
101+
client = FernRegistry(
102102
...,
103103
)
104104
response = client.api.v_1.register.with_raw_response.register_api_definition(
@@ -142,9 +142,9 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
142142

143143
```python
144144

145-
from fdr import FdrClient
145+
from fern import FernRegistry
146146

147-
client = FdrClient(
147+
client = FernRegistry(
148148
...,
149149
timeout=20.0,
150150
)
@@ -163,9 +163,10 @@ and transports.
163163

164164
```python
165165
import httpx
166-
from fdr import FdrClient
167166

168-
client = FdrClient(
167+
from fern import FernRegistry
168+
169+
client = FernRegistry(
169170
...,
170171
httpx_client=httpx.Client(
171172
proxies="http://my.test.proxy.example.com",

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
2-
name = "fern-fern-fdr-sdk"
2+
name = "fdr-sdk-py"
33

44
[tool.poetry]
5-
name = "fern-fern-fdr-sdk"
6-
version = "0.0.3"
5+
name = "fdr-sdk-py"
6+
version = "0.0.4"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -27,7 +27,7 @@ classifiers = [
2727
"Typing :: Typed"
2828
]
2929
packages = [
30-
{ include = "fdr", from = "src"}
30+
{ include = "fern", from = "src"}
3131
]
3232

3333
[project.urls]

0 commit comments

Comments
 (0)