File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 11configured_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
44config_hash : 3911423d0a218a9e0813f5fe6370ae95
Original file line number Diff line number Diff line change @@ -28,12 +28,9 @@ pip install git+ssh://git@github.com/uselemma/sdk-python.git
2828The full API of this library can be found in [ api.md] ( api.md ) .
2929
3030``` python
31- import os
3231from 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
3835datasets = client.datasets.list()
3936```
@@ -48,13 +45,10 @@ so that your API Key is not stored in source control.
4845Simply import ` AsyncLemma ` instead of ` Lemma ` and use ` await ` with each API call:
4946
5047``` python
51- import os
5248import asyncio
5349from 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
6054async def main () -> None :
@@ -87,7 +81,6 @@ from lemma import AsyncLemma
8781
8882async 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()
You can’t perform that action at this time.
0 commit comments