Skip to content

Commit 0a806f1

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#207)
1 parent f1af4c8 commit 0a806f1

File tree

7 files changed

+37
-17
lines changed

7 files changed

+37
-17
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,24 @@ jobs:
2929

3030
- name: Run lints
3131
run: ./scripts/lint
32+
test:
33+
name: test
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Install Rye
40+
run: |
41+
curl -sSf https://rye-up.com/get | bash
42+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
43+
env:
44+
RYE_VERSION: 0.24.0
45+
RYE_INSTALL_OPTION: '--yes'
46+
47+
- name: Bootstrap
48+
run: ./scripts/bootstrap
3249

50+
- name: Run tests
51+
run: ./scripts/test
3352

.stats.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
configured_endpoints: 6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openlayer%2Fopenlayer-7a4eecce275c87fdeff6194c1e6b1ccc1e703127193b0e6a381f73e358ea0bfb.yml

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Openlayer Python API library
22

3-
[![PyPI version](https://img.shields.io/pypi/v/openlayer-test.svg)](https://pypi.org/project/openlayer-test/)
3+
[![PyPI version](https://img.shields.io/pypi/v/openlayer.svg)](https://pypi.org/project/openlayer/)
44

55
The Openlayer Python library provides convenient access to the Openlayer REST API from any Python 3.7+
66
application. The library includes type definitions for all request params and response fields,
@@ -10,13 +10,13 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
1010

1111
## Documentation
1212

13-
The REST API documentation can be found [on openlayer.com](https://openlayer.com/docs/api-reference/rest). The full API of this library can be found in [api.md](api.md).
13+
The REST API documentation can be found [on openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). The full API of this library can be found in [api.md](api.md).
1414

1515
## Installation
1616

1717
```sh
1818
# install from PyPI
19-
pip install --pre openlayer-test
19+
pip install --pre openlayer
2020
```
2121

2222
## Usage

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "openlayer-test"
2+
name = "openlayer"
33
version = "0.1.0-alpha.2"
44
description = "The official Python library for the openlayer API"
55
dynamic = ["readme"]

requirements-dev.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ annotated-types==0.6.0
1212
# via pydantic
1313
anyio==4.1.0
1414
# via httpx
15-
# via openlayer-test
15+
# via openlayer
1616
argcomplete==3.1.2
1717
# via nox
1818
attrs==23.1.0
@@ -26,7 +26,7 @@ dirty-equals==0.6.0
2626
distlib==0.3.7
2727
# via virtualenv
2828
distro==1.8.0
29-
# via openlayer-test
29+
# via openlayer
3030
exceptiongroup==1.1.3
3131
# via anyio
3232
filelock==3.12.4
@@ -36,7 +36,7 @@ h11==0.14.0
3636
httpcore==1.0.2
3737
# via httpx
3838
httpx==0.25.2
39-
# via openlayer-test
39+
# via openlayer
4040
# via respx
4141
idna==3.4
4242
# via anyio
@@ -60,7 +60,7 @@ pluggy==1.3.0
6060
py==1.11.0
6161
# via pytest
6262
pydantic==2.7.1
63-
# via openlayer-test
63+
# via openlayer
6464
pydantic-core==2.18.2
6565
# via pydantic
6666
pyright==1.1.359
@@ -80,14 +80,14 @@ six==1.16.0
8080
sniffio==1.3.0
8181
# via anyio
8282
# via httpx
83-
# via openlayer-test
83+
# via openlayer
8484
time-machine==2.9.0
8585
tomli==2.0.1
8686
# via mypy
8787
# via pytest
8888
typing-extensions==4.8.0
8989
# via mypy
90-
# via openlayer-test
90+
# via openlayer
9191
# via pydantic
9292
# via pydantic-core
9393
virtualenv==20.24.5

requirements.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@ annotated-types==0.6.0
1212
# via pydantic
1313
anyio==4.1.0
1414
# via httpx
15-
# via openlayer-test
15+
# via openlayer
1616
certifi==2023.7.22
1717
# via httpcore
1818
# via httpx
1919
distro==1.8.0
20-
# via openlayer-test
20+
# via openlayer
2121
exceptiongroup==1.1.3
2222
# via anyio
2323
h11==0.14.0
2424
# via httpcore
2525
httpcore==1.0.2
2626
# via httpx
2727
httpx==0.25.2
28-
# via openlayer-test
28+
# via openlayer
2929
idna==3.4
3030
# via anyio
3131
# via httpx
3232
pydantic==2.7.1
33-
# via openlayer-test
33+
# via openlayer
3434
pydantic-core==2.18.2
3535
# via pydantic
3636
sniffio==1.3.0
3737
# via anyio
3838
# via httpx
39-
# via openlayer-test
39+
# via openlayer
4040
typing-extensions==4.8.0
41-
# via openlayer-test
41+
# via openlayer
4242
# via pydantic
4343
# via pydantic-core

src/openlayer/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def __init__(
361361

362362
if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
363363
raise TypeError(
364-
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `openlayer-test.DEFAULT_MAX_RETRIES`"
364+
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `openlayer.DEFAULT_MAX_RETRIES`"
365365
)
366366

367367
def _enforce_trailing_slash(self, url: URL) -> URL:

0 commit comments

Comments
 (0)