Skip to content

Commit

Permalink
feat(api): update via SDK Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Apr 17, 2024
1 parent 43548b9 commit 2cb36e7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```bash
pip install git+ssh://[email protected]/stainless-sdks/TEMP_riza-api-python.git
pip install git+ssh://[email protected]/stainless-sdks/riza-api-python.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel

### Publish with a GitHub workflow

You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/TEMP_riza-api-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/riza-api-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Riza Python API library

[![PyPI version](https://img.shields.io/pypi/v/TEMP_riza-api.svg)](https://pypi.org/project/TEMP_riza-api/)
[![PyPI version](https://img.shields.io/pypi/v/riza.svg)](https://pypi.org/project/riza/)

The Riza Python library provides convenient access to the Riza REST API from any Python 3.7+
application. The library includes type definitions for all request params and response fields,
Expand All @@ -16,7 +16,7 @@ The REST API documentation can be found [on docs.riza.io](https://docs.riza.io).

```sh
# install from PyPI
pip install --pre TEMP_riza-api
pip install --pre riza
```

## Usage
Expand Down Expand Up @@ -203,9 +203,9 @@ v1 = response.parse() # get the object that `v1.execute()` would have returned
print(v1.exit_code)
```

These methods return an [`APIResponse`](https://github.com/stainless-sdks/tree/main/src/riza/_response.py) object.
These methods return an [`APIResponse`](https://github.com/stainless-sdks/riza-api-python/tree/main/src/riza/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/tree/main/src/riza/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/riza-api-python/tree/main/src/riza/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.

#### `.with_streaming_response`

Expand Down Expand Up @@ -293,7 +293,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/TEMP_riza-api-python/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/riza-api-python/issues) with questions, bugs, or suggestions.

## Requirements

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "TEMP_riza-api"
name = "riza"
version = "0.0.1-alpha.0"
description = "The official Python library for the riza API"
dynamic = ["readme"]
Expand Down Expand Up @@ -39,8 +39,8 @@ classifiers = [


[project.urls]
Homepage = "https://github.com/stainless-sdks/TEMP_riza-api-python"
Repository = "https://github.com/stainless-sdks/TEMP_riza-api-python"
Homepage = "https://github.com/stainless-sdks/riza-api-python"
Repository = "https://github.com/stainless-sdks/riza-api-python"



Expand Down Expand Up @@ -108,7 +108,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\1](https://github.com/stainless-sdks/tree/main/\g<2>)'
replacement = '[\1](https://github.com/stainless-sdks/riza-api-python/tree/main/\g<2>)'

[tool.black]
line-length = 120
Expand Down
12 changes: 6 additions & 6 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ annotated-types==0.6.0
# via pydantic
anyio==4.1.0
# via httpx
# via temp-riza-api
# via riza
argcomplete==3.1.2
# via nox
attrs==23.1.0
Expand All @@ -26,7 +26,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
# via temp-riza-api
# via riza
exceptiongroup==1.1.3
# via anyio
filelock==3.12.4
Expand All @@ -37,7 +37,7 @@ httpcore==1.0.2
# via httpx
httpx==0.25.2
# via respx
# via temp-riza-api
# via riza
idna==3.4
# via anyio
# via httpx
Expand All @@ -60,7 +60,7 @@ pluggy==1.3.0
py==1.11.0
# via pytest
pydantic==2.4.2
# via temp-riza-api
# via riza
pydantic-core==2.10.1
# via pydantic
pyright==1.1.353
Expand All @@ -80,7 +80,7 @@ six==1.16.0
sniffio==1.3.0
# via anyio
# via httpx
# via temp-riza-api
# via riza
time-machine==2.9.0
tomli==2.0.1
# via mypy
Expand All @@ -89,7 +89,7 @@ typing-extensions==4.8.0
# via mypy
# via pydantic
# via pydantic-core
# via temp-riza-api
# via riza
virtualenv==20.24.5
# via nox
zipp==3.17.0
Expand Down
12 changes: 6 additions & 6 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ annotated-types==0.6.0
# via pydantic
anyio==4.1.0
# via httpx
# via temp-riza-api
# via riza
certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
# via temp-riza-api
# via riza
exceptiongroup==1.1.3
# via anyio
h11==0.14.0
# via httpcore
httpcore==1.0.2
# via httpx
httpx==0.25.2
# via temp-riza-api
# via riza
idna==3.4
# via anyio
# via httpx
pydantic==2.4.2
# via temp-riza-api
# via riza
pydantic-core==2.10.1
# via pydantic
sniffio==1.3.0
# via anyio
# via httpx
# via temp-riza-api
# via riza
typing-extensions==4.8.0
# via pydantic
# via pydantic-core
# via temp-riza-api
# via riza
2 changes: 1 addition & 1 deletion src/riza/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def __init__(

if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
raise TypeError(
"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 `TEMP_riza-api.DEFAULT_MAX_RETRIES`"
"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 `riza.DEFAULT_MAX_RETRIES`"
)

def _enforce_trailing_slash(self, url: URL) -> URL:
Expand Down

0 comments on commit 2cb36e7

Please sign in to comment.