From 0930f4d67a3f4da02fa13d37e8013edb4cec8474 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Sun, 13 Oct 2024 22:25:14 +0000 Subject: [PATCH] feat(api): api update --- .github/workflows/publish-pypi.yml | 2 +- .github/workflows/release-doctor.yml | 2 +- CONTRIBUTING.md | 4 ++-- README.md | 10 +++++----- bin/check-release-environment | 2 +- pyproject.toml | 6 +++--- release-please-config.json | 2 +- src/arcadepy/_version.py | 2 +- src/arcadepy/resources/auth.py | 8 ++++---- src/arcadepy/resources/chat.py | 8 ++++---- src/arcadepy/resources/health.py | 8 ++++---- src/arcadepy/resources/tools.py | 8 ++++---- 12 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index be41086c..918b838c 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -28,4 +28,4 @@ jobs: run: | bash ./bin/publish-pypi env: - PYPI_TOKEN: ${{ secrets.ARCADE_ENGINE_PYPI_TOKEN || secrets.PYPI_TOKEN }} + PYPI_TOKEN: ${{ secrets.ARCADE_AI_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 191986bb..a16324eb 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -18,4 +18,4 @@ jobs: run: | bash ./bin/check-release-environment env: - PYPI_TOKEN: ${{ secrets.ARCADE_ENGINE_PYPI_TOKEN || secrets.PYPI_TOKEN }} + PYPI_TOKEN: ${{ secrets.ARCADE_AI_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e32d32fb..7b3f66c5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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/stainless-sdks/arcade-engine-python.git +$ pip install git+ssh://git@github.com/ArcadeAI/arcade-py.git ``` Alternatively, you can build from source and install the wheel file: @@ -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/stainless-sdks/arcade-engine-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/ArcadeAI/arcade-py/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index 1d016172..fd394259 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ The REST API documentation can be found on [arcade-ai.com](https://arcade-ai.com ## Installation ```sh -# install from this staging repo -pip install git+ssh://git@github.com/stainless-sdks/arcade-engine-python.git +# install from the production repo +pip install git+ssh://git@github.com/ArcadeAI/arcade-py.git ``` > [!NOTE] @@ -214,9 +214,9 @@ chat = response.parse() # get the object that `chat.completions()` would have r print(chat.id) ``` -These methods return an [`APIResponse`](https://github.com/stainless-sdks/arcade-engine-python/tree/main/src/arcadepy/_response.py) object. +These methods return an [`APIResponse`](https://github.com/ArcadeAI/arcade-py/tree/main/src/arcadepy/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/arcade-engine-python/tree/main/src/arcadepy/_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/ArcadeAI/arcade-py/tree/main/src/arcadepy/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -310,7 +310,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/arcade-engine-python/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/ArcadeAI/arcade-py/issues) with questions, bugs, or suggestions. ### Determining the installed version diff --git a/bin/check-release-environment b/bin/check-release-environment index f676d2b0..b98a6fa0 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -3,7 +3,7 @@ errors=() if [ -z "${PYPI_TOKEN}" ]; then - errors+=("The ARCADE_ENGINE_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") + errors+=("The ARCADE_AI_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") fi lenErrors=${#errors[@]} diff --git a/pyproject.toml b/pyproject.toml index caf5a98a..d79e1224 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,8 +36,8 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/stainless-sdks/arcade-engine-python" -Repository = "https://github.com/stainless-sdks/arcade-engine-python" +Homepage = "https://github.com/ArcadeAI/arcade-py" +Repository = "https://github.com/ArcadeAI/arcade-py" @@ -123,7 +123,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/arcade-engine-python/tree/main/\g<2>)' +replacement = '[\1](https://github.com/ArcadeAI/arcade-py/tree/main/\g<2>)' [tool.black] line-length = 120 diff --git a/release-please-config.json b/release-please-config.json index fc35ad9f..d8571ed1 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -61,6 +61,6 @@ ], "release-type": "python", "extra-files": [ - "src/arcade_engine/_version.py" + "src/arcadepy/_version.py" ] } \ No newline at end of file diff --git a/src/arcadepy/_version.py b/src/arcadepy/_version.py index 981cd236..d1de1efe 100644 --- a/src/arcadepy/_version.py +++ b/src/arcadepy/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "arcadepy" -__version__ = "0.0.1-alpha.0" +__version__ = "0.0.1-alpha.0" # x-release-please-version diff --git a/src/arcadepy/resources/auth.py b/src/arcadepy/resources/auth.py index caa2fb01..54783973 100644 --- a/src/arcadepy/resources/auth.py +++ b/src/arcadepy/resources/auth.py @@ -31,7 +31,7 @@ def with_raw_response(self) -> AuthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return AuthResourceWithRawResponse(self) @@ -40,7 +40,7 @@ def with_streaming_response(self) -> AuthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return AuthResourceWithStreamingResponse(self) @@ -137,7 +137,7 @@ def with_raw_response(self) -> AsyncAuthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return AsyncAuthResourceWithRawResponse(self) @@ -146,7 +146,7 @@ def with_streaming_response(self) -> AsyncAuthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return AsyncAuthResourceWithStreamingResponse(self) diff --git a/src/arcadepy/resources/chat.py b/src/arcadepy/resources/chat.py index e78283dd..fffa5c54 100644 --- a/src/arcadepy/resources/chat.py +++ b/src/arcadepy/resources/chat.py @@ -34,7 +34,7 @@ def with_raw_response(self) -> ChatResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return ChatResourceWithRawResponse(self) @@ -43,7 +43,7 @@ def with_streaming_response(self) -> ChatResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return ChatResourceWithStreamingResponse(self) @@ -150,7 +150,7 @@ def with_raw_response(self) -> AsyncChatResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return AsyncChatResourceWithRawResponse(self) @@ -159,7 +159,7 @@ def with_streaming_response(self) -> AsyncChatResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return AsyncChatResourceWithStreamingResponse(self) diff --git a/src/arcadepy/resources/health.py b/src/arcadepy/resources/health.py index 8b0c6d70..ec6d66ab 100644 --- a/src/arcadepy/resources/health.py +++ b/src/arcadepy/resources/health.py @@ -26,7 +26,7 @@ def with_raw_response(self) -> HealthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return HealthResourceWithRawResponse(self) @@ -35,7 +35,7 @@ def with_streaming_response(self) -> HealthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return HealthResourceWithStreamingResponse(self) @@ -66,7 +66,7 @@ def with_raw_response(self) -> AsyncHealthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return AsyncHealthResourceWithRawResponse(self) @@ -75,7 +75,7 @@ def with_streaming_response(self) -> AsyncHealthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return AsyncHealthResourceWithStreamingResponse(self) diff --git a/src/arcadepy/resources/tools.py b/src/arcadepy/resources/tools.py index 6e42ed44..290f4976 100644 --- a/src/arcadepy/resources/tools.py +++ b/src/arcadepy/resources/tools.py @@ -33,7 +33,7 @@ def with_raw_response(self) -> ToolsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return ToolsResourceWithRawResponse(self) @@ -42,7 +42,7 @@ def with_streaming_response(self) -> ToolsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return ToolsResourceWithStreamingResponse(self) @@ -188,7 +188,7 @@ def with_raw_response(self) -> AsyncToolsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/ArcadeAI/arcade-py#accessing-raw-response-data-eg-headers """ return AsyncToolsResourceWithRawResponse(self) @@ -197,7 +197,7 @@ def with_streaming_response(self) -> AsyncToolsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/arcade-engine-python#with_streaming_response + For more information, see https://www.github.com/ArcadeAI/arcade-py#with_streaming_response """ return AsyncToolsResourceWithStreamingResponse(self)