Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/zeke/replicate-client-python-prod-for-fun/actions/workflows/publish-pypi.yml
# You can run this workflow by navigating to https://www.github.com/replicate/replicate-python-stainless/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'zeke/replicate-client-python-prod-for-fun' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
if: github.repository == 'replicate/replicate-python-stainless' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.1-alpha.0"
".": "0.1.0-alpha.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-b45f922f6a041550870a96f5acec02aa6d8830046fc98b95a275c6486f7586fc.yml
openapi_spec_hash: ef7fddfb49b4d9c440b0635d2c86f341
config_hash: 93f687135e6d45a0f0f83fbfdcb1d8c9
config_hash: 919042036f115da833f492aa6f7e3ada
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Changelog

## 0.1.0-alpha.1 (2025-04-15)

Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/replicate/replicate-python-stainless/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

### Features

* **api:** api update ([#19](https://github.com/replicate/replicate-python-stainless/issues/19)) ([fdd9b17](https://github.com/replicate/replicate-python-stainless/commit/fdd9b17918f3b563b6810ee463c500ba17284f53))
* **api:** manual updates ([#20](https://github.com/replicate/replicate-python-stainless/issues/20)) ([33e82c8](https://github.com/replicate/replicate-python-stainless/commit/33e82c8fec082a0af05b82ed5110424b69fb4400))
* **api:** manual updates ([#21](https://github.com/replicate/replicate-python-stainless/issues/21)) ([d50ae4c](https://github.com/replicate/replicate-python-stainless/commit/d50ae4cf5088a214f4751672ad4f1493dbf54768))
* **api:** manual updates ([#22](https://github.com/replicate/replicate-python-stainless/issues/22)) ([573bbb3](https://github.com/replicate/replicate-python-stainless/commit/573bbb3fa46346d1703d076daa85541b947c27a2))
* **api:** manual updates ([#23](https://github.com/replicate/replicate-python-stainless/issues/23)) ([7962ea7](https://github.com/replicate/replicate-python-stainless/commit/7962ea7f5c5e3c8f253f66b8f13eadc9927fae7d))
* **api:** manual updates ([#24](https://github.com/replicate/replicate-python-stainless/issues/24)) ([d31ada3](https://github.com/replicate/replicate-python-stainless/commit/d31ada3ab8d19413c1ca55535f1788ae9b5d443d))
* **api:** update pagination configs ([#25](https://github.com/replicate/replicate-python-stainless/issues/25)) ([8a2cc9f](https://github.com/replicate/replicate-python-stainless/commit/8a2cc9f87cf6edb18ad906bbb0b82372b4b82099))
* **api:** update via SDK Studio ([3bf3415](https://github.com/replicate/replicate-python-stainless/commit/3bf3415ce21bb9fc55f80809239e58d64f34fb61))
* **api:** update via SDK Studio ([aafbabf](https://github.com/replicate/replicate-python-stainless/commit/aafbabfdbac1c43a547f277769c82585c616a3b4))
* **api:** update via SDK Studio ([fdf1072](https://github.com/replicate/replicate-python-stainless/commit/fdf107297bfff5086c330c32db73eb7bc4df249c))
* **api:** update via SDK Studio ([cab4d0e](https://github.com/replicate/replicate-python-stainless/commit/cab4d0e83a9fa40304fa0618d7db30445b625b16))
* **api:** update via SDK Studio ([#16](https://github.com/replicate/replicate-python-stainless/issues/16)) ([ffa306e](https://github.com/replicate/replicate-python-stainless/commit/ffa306e9121fc71133648c46b84272aec3114724))
* **api:** update via SDK Studio ([#17](https://github.com/replicate/replicate-python-stainless/issues/17)) ([958ed88](https://github.com/replicate/replicate-python-stainless/commit/958ed888458134a1235ddecd6e0e7741df6e8b54))
* **api:** update via SDK Studio ([#4](https://github.com/replicate/replicate-python-stainless/issues/4)) ([dd5a024](https://github.com/replicate/replicate-python-stainless/commit/dd5a024b8b112ccac91075890e89ba5fa61aa725))
* **api:** update via SDK Studio ([#5](https://github.com/replicate/replicate-python-stainless/issues/5)) ([5ead241](https://github.com/replicate/replicate-python-stainless/commit/5ead241e786dd7b6266076b039ad2f298848db2e))


### Bug Fixes

* **ci:** ensure pip is always available ([#14](https://github.com/replicate/replicate-python-stainless/issues/14)) ([d4f8f18](https://github.com/replicate/replicate-python-stainless/commit/d4f8f18d0d369dedc9e09551e87483f8f1787fd7))
* **ci:** remove publishing patch ([#15](https://github.com/replicate/replicate-python-stainless/issues/15)) ([002b758](https://github.com/replicate/replicate-python-stainless/commit/002b7581debae5b5bc97ec24cc0cea129100dfde))
* **types:** handle more discriminated union shapes ([#13](https://github.com/replicate/replicate-python-stainless/issues/13)) ([4ca1ca8](https://github.com/replicate/replicate-python-stainless/commit/4ca1ca8606fef7bc40144c1ae6246784ed754687))


### Chores

* fix typos ([#18](https://github.com/replicate/replicate-python-stainless/issues/18)) ([54d4e6d](https://github.com/replicate/replicate-python-stainless/commit/54d4e6da6a757ad6e5c899b79018ca39eed2a124))
* go live ([#1](https://github.com/replicate/replicate-python-stainless/issues/1)) ([bd9a84a](https://github.com/replicate/replicate-python-stainless/commit/bd9a84ae91a2c72fa49182f9ff8ea0b78e7cc343))
* **internal:** bump rye to 0.44.0 ([#12](https://github.com/replicate/replicate-python-stainless/issues/12)) ([c9d2593](https://github.com/replicate/replicate-python-stainless/commit/c9d2593f4e9d324c12e2ca323563a317d0ea1751))
* **internal:** codegen related update ([#11](https://github.com/replicate/replicate-python-stainless/issues/11)) ([41c787d](https://github.com/replicate/replicate-python-stainless/commit/41c787d2c196d59c48ec3056d93dd48bf530de72))
* **internal:** remove extra empty newlines ([#10](https://github.com/replicate/replicate-python-stainless/issues/10)) ([1c63514](https://github.com/replicate/replicate-python-stainless/commit/1c635145a8a70f3cb0ea432387f72eafa64ca5f6))
* **internal:** updates ([b7424d7](https://github.com/replicate/replicate-python-stainless/commit/b7424d7cc1c9fa440b58fa9e51331f3c77fbd83d))
* remove custom code ([31aa7ed](https://github.com/replicate/replicate-python-stainless/commit/31aa7edc04d5c9f408c06e4051c0ba343b9761ac))
* update SDK settings ([#3](https://github.com/replicate/replicate-python-stainless/issues/3)) ([27b5f18](https://github.com/replicate/replicate-python-stainless/commit/27b5f1897b823349b29dbc82b1f6742d5d704c9e))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ pip install git+ssh://git@github.com/zeke/replicate-client-python-prod-for-fun.git
$ pip install git+ssh://git@github.com/replicate/replicate-python-stainless.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -121,7 +121,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/zeke/replicate-client-python-prod-for-fun/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/replicate/replicate-python-stainless/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 @@
# Replicate Client Python API library

[![PyPI version](https://img.shields.io/pypi/v/replicate-zeke-test-stainless.svg)](https://pypi.org/project/replicate-zeke-test-stainless/)
[![PyPI version](https://img.shields.io/pypi/v/replicate-stainless.svg)](https://pypi.org/project/replicate-stainless/)

The Replicate Client Python library provides convenient access to the Replicate Client REST API from any Python 3.8+
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 [replicate.com](https://replicate.com

```sh
# install from PyPI
pip install --pre replicate-zeke-test-stainless
pip install --pre replicate-stainless
```

## Usage
Expand Down Expand Up @@ -270,9 +270,9 @@ account = response.parse() # get the object that `accounts.list()` would have r
print(account.type)
```

These methods return an [`APIResponse`](https://github.com/zeke/replicate-client-python-prod-for-fun/tree/main/src/replicate/_response.py) object.
These methods return an [`APIResponse`](https://github.com/replicate/replicate-python-stainless/tree/main/src/replicate/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/zeke/replicate-client-python-prod-for-fun/tree/main/src/replicate/_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/replicate/replicate-python-stainless/tree/main/src/replicate/_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 @@ -376,7 +376,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/zeke/replicate-client-python-prod-for-fun/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/replicate/replicate-python-stainless/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "replicate-zeke-test-stainless"
version = "0.0.1-alpha.0"
name = "replicate-stainless"
version = "0.1.0-alpha.1"
description = "The official Python library for the replicate-client API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -34,8 +34,8 @@ classifiers = [
]

[project.urls]
Homepage = "https://github.com/zeke/replicate-client-python-prod-for-fun"
Repository = "https://github.com/zeke/replicate-client-python-prod-for-fun"
Homepage = "https://github.com/replicate/replicate-python-stainless"
Repository = "https://github.com/replicate/replicate-python-stainless"


[tool.rye]
Expand Down Expand Up @@ -121,7 +121,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/zeke/replicate-client-python-prod-for-fun/tree/main/\g<2>)'
replacement = '[\1](https://github.com/replicate/replicate-python-stainless/tree/main/\g<2>)'

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
12 changes: 6 additions & 6 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via httpx
# via replicate-zeke-test-stainless
# via replicate-stainless
argcomplete==3.1.2
# via nox
certifi==2023.7.22
Expand All @@ -26,7 +26,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
# via replicate-zeke-test-stainless
# via replicate-stainless
exceptiongroup==1.2.2
# via anyio
# via pytest
Expand All @@ -37,7 +37,7 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
# via replicate-zeke-test-stainless
# via replicate-stainless
# via respx
idna==3.4
# via anyio
Expand All @@ -64,7 +64,7 @@ platformdirs==3.11.0
pluggy==1.5.0
# via pytest
pydantic==2.10.3
# via replicate-zeke-test-stainless
# via replicate-stainless
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
Expand All @@ -86,7 +86,7 @@ six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via anyio
# via replicate-zeke-test-stainless
# via replicate-stainless
time-machine==2.9.0
tomli==2.0.2
# via mypy
Expand All @@ -97,7 +97,7 @@ typing-extensions==4.12.2
# via pydantic
# via pydantic-core
# via pyright
# via replicate-zeke-test-stainless
# via replicate-stainless
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 @@ -14,32 +14,32 @@ annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via httpx
# via replicate-zeke-test-stainless
# via replicate-stainless
certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
# via replicate-zeke-test-stainless
# via replicate-stainless
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
# via httpcore
httpcore==1.0.2
# via httpx
httpx==0.28.1
# via replicate-zeke-test-stainless
# via replicate-stainless
idna==3.4
# via anyio
# via httpx
pydantic==2.10.3
# via replicate-zeke-test-stainless
# via replicate-stainless
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via anyio
# via replicate-zeke-test-stainless
# via replicate-stainless
typing-extensions==4.12.2
# via anyio
# via pydantic
# via pydantic-core
# via replicate-zeke-test-stainless
# via replicate-stainless
2 changes: 1 addition & 1 deletion src/replicate/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "replicate"
__version__ = "0.0.1-alpha.0" # x-release-please-version
__version__ = "0.1.0-alpha.1" # x-release-please-version
8 changes: 4 additions & 4 deletions src/replicate/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def with_raw_response(self) -> AccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
"""
return AccountsResourceWithRawResponse(self)

Expand All @@ -35,7 +35,7 @@ def with_streaming_response(self) -> AccountsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#with_streaming_response
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
"""
return AccountsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -88,7 +88,7 @@ def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
"""
return AsyncAccountsResourceWithRawResponse(self)

Expand All @@ -97,7 +97,7 @@ def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#with_streaming_response
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
"""
return AsyncAccountsResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/replicate/resources/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def with_raw_response(self) -> CollectionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
"""
return CollectionsResourceWithRawResponse(self)

Expand All @@ -34,7 +34,7 @@ def with_streaming_response(self) -> CollectionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#with_streaming_response
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
"""
return CollectionsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -90,7 +90,7 @@ def with_raw_response(self) -> AsyncCollectionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
"""
return AsyncCollectionsResourceWithRawResponse(self)

Expand All @@ -99,7 +99,7 @@ def with_streaming_response(self) -> AsyncCollectionsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/zeke/replicate-client-python-prod-for-fun#with_streaming_response
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
"""
return AsyncCollectionsResourceWithStreamingResponse(self)

Expand Down
Loading