Skip to content

Commit 34981ab

Browse files
feat(api): api update
1 parent 233eaa6 commit 34981ab

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lemma%2Flemma-a7a66ada4907eaf7c12f8686ea23314984295b2c28a8662c2c7bb5f74deeea08.yml
3-
openapi_spec_hash: be8496356007ef4d20617cc2fea77f47
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lemma%2Flemma-276d426bbfd4d9743a75ddaf84f9587a6f4bb36db878432f87e3ed86d871092a.yml
3+
openapi_spec_hash: c8592cad3d823e3e370a06c675022636
44
config_hash: 3911423d0a218a9e0813f5fe6370ae95

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ pip install git+ssh://git@github.com/uselemma/sdk-python.git
2828
The full API of this library can be found in [api.md](api.md).
2929

3030
```python
31-
import os
3231
from lemma import Lemma
3332

34-
client = Lemma(
35-
api_key=os.environ.get("LEMMA_API_KEY"), # This is the default and can be omitted
36-
)
33+
client = Lemma()
3734

3835
datasets = client.datasets.list()
3936
```
@@ -48,13 +45,10 @@ so that your API Key is not stored in source control.
4845
Simply import `AsyncLemma` instead of `Lemma` and use `await` with each API call:
4946

5047
```python
51-
import os
5248
import asyncio
5349
from lemma import AsyncLemma
5450

55-
client = AsyncLemma(
56-
api_key=os.environ.get("LEMMA_API_KEY"), # This is the default and can be omitted
57-
)
51+
client = AsyncLemma()
5852

5953

6054
async def main() -> None:
@@ -87,7 +81,6 @@ from lemma import AsyncLemma
8781

8882
async def main() -> None:
8983
async with AsyncLemma(
90-
api_key="My API Key",
9184
http_client=DefaultAioHttpClient(),
9285
) as client:
9386
datasets = await client.datasets.list()

0 commit comments

Comments
 (0)