Skip to content
Open
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.6.0"
".": "1.7.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/landingai%2Fade-eeb4eb7952abc58f1b28144dbc17bc42da3780cbf9b375436188cf654901bb6b.yml
openapi_spec_hash: fe28a7763c5d084a9251109581c52b81
config_hash: 43f45ffa1cb556d90dcef6d742ed239f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/landingai%2Fade-62ce42134d4beaf8300c08d6703701fbaaffb737caa58b62da0a1824a05290c1.yml
openapi_spec_hash: 0500c26b20a94ad551f5d5a647a011a8
config_hash: e8101fd147c425cd30880ddf8e069e79
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.7.0 (2026-02-20)

Full Changelog: [v1.6.0...v1.7.0](https://github.com/landing-ai/ade-python/compare/v1.6.0...v1.7.0)

### Features

* **api:** improve multipart openapispec ([2c7cadf](https://github.com/landing-ai/ade-python/commit/2c7cadfa52019266d1ebf4569bc0efc3f8a0c93c))
* **api:** manual updates ([7d3f8a3](https://github.com/landing-ai/ade-python/commit/7d3f8a3bbc4e9cf84d3e30559652d5cdf5004c4f))


### Chores

* format all `api.md` files ([bb7dcc2](https://github.com/landing-ai/ade-python/commit/bb7dcc2b53dc8e3a1cbb22fb0f93a4a08811700d))
* **internal:** remove mock server code ([78be66f](https://github.com/landing-ai/ade-python/commit/78be66f42f256ebeb48012092913bb6aa5643920))
* update mock server docs ([ad39f48](https://github.com/landing-ai/ade-python/commit/ad39f4805421843d4f73b24748226c11e764543f))

## 1.6.0 (2026-02-13)

Full Changelog: [v1.5.0...v1.6.0](https://github.com/landing-ai/ade-python/compare/v1.5.0...v1.6.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "landingai-ade"
version = "1.6.0"
version = "1.7.0"
description = "The official Python library for the landingai-ade API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -69,7 +69,7 @@ format = { chain = [
# run formatting again to fix any inconsistencies when imports are stripped
"format:ruff",
]}
"format:docs" = "python scripts/utils/ruffen-docs.py README.md api.md"
"format:docs" = "bash -c 'python scripts/utils/ruffen-docs.py README.md $(find . -type f -name api.md)'"
"format:ruff" = "ruff format"

"lint" = { chain = [
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

export DEFER_PYDANTIC_BUILD=false

Expand Down
2 changes: 1 addition & 1 deletion src/landingai_ade/_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__ = "landingai_ade"
__version__ = "1.6.0" # x-release-please-version
__version__ = "1.7.0" # x-release-please-version
48 changes: 24 additions & 24 deletions tests/api_resources/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
class TestClient:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_extract(self, client: LandingAIADE) -> None:
client_ = client.extract(
schema="schema",
)
assert_matches_type(ExtractResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_extract_with_all_params(self, client: LandingAIADE) -> None:
client_ = client.extract(
Expand All @@ -40,7 +40,7 @@ def test_method_extract_with_all_params(self, client: LandingAIADE) -> None:
)
assert_matches_type(ExtractResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_extract(self, client: LandingAIADE) -> None:
response = client.with_raw_response.extract(
Expand All @@ -52,7 +52,7 @@ def test_raw_response_extract(self, client: LandingAIADE) -> None:
client_ = response.parse()
assert_matches_type(ExtractResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_extract(self, client: LandingAIADE) -> None:
with client.with_streaming_response.extract(
Expand All @@ -66,13 +66,13 @@ def test_streaming_response_extract(self, client: LandingAIADE) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_parse(self, client: LandingAIADE) -> None:
client_ = client.parse()
assert_matches_type(ParseResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_parse_with_all_params(self, client: LandingAIADE) -> None:
client_ = client.parse(
Expand All @@ -83,7 +83,7 @@ def test_method_parse_with_all_params(self, client: LandingAIADE) -> None:
)
assert_matches_type(ParseResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_parse(self, client: LandingAIADE) -> None:
response = client.with_raw_response.parse()
Expand All @@ -93,7 +93,7 @@ def test_raw_response_parse(self, client: LandingAIADE) -> None:
client_ = response.parse()
assert_matches_type(ParseResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_parse(self, client: LandingAIADE) -> None:
with client.with_streaming_response.parse() as response:
Expand All @@ -105,15 +105,15 @@ def test_streaming_response_parse(self, client: LandingAIADE) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_split(self, client: LandingAIADE) -> None:
client_ = client.split(
split_class=[{"name": "name"}],
)
assert_matches_type(SplitResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_split_with_all_params(self, client: LandingAIADE) -> None:
client_ = client.split(
Expand All @@ -130,7 +130,7 @@ def test_method_split_with_all_params(self, client: LandingAIADE) -> None:
)
assert_matches_type(SplitResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_split(self, client: LandingAIADE) -> None:
response = client.with_raw_response.split(
Expand All @@ -142,7 +142,7 @@ def test_raw_response_split(self, client: LandingAIADE) -> None:
client_ = response.parse()
assert_matches_type(SplitResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_split(self, client: LandingAIADE) -> None:
with client.with_streaming_response.split(
Expand All @@ -162,15 +162,15 @@ class TestAsyncClient:
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_extract(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.extract(
schema="schema",
)
assert_matches_type(ExtractResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_extract_with_all_params(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.extract(
Expand All @@ -181,7 +181,7 @@ async def test_method_extract_with_all_params(self, async_client: AsyncLandingAI
)
assert_matches_type(ExtractResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_extract(self, async_client: AsyncLandingAIADE) -> None:
response = await async_client.with_raw_response.extract(
Expand All @@ -193,7 +193,7 @@ async def test_raw_response_extract(self, async_client: AsyncLandingAIADE) -> No
client = await response.parse()
assert_matches_type(ExtractResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_extract(self, async_client: AsyncLandingAIADE) -> None:
async with async_client.with_streaming_response.extract(
Expand All @@ -207,13 +207,13 @@ async def test_streaming_response_extract(self, async_client: AsyncLandingAIADE)

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_parse(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.parse()
assert_matches_type(ParseResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_parse_with_all_params(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.parse(
Expand All @@ -224,7 +224,7 @@ async def test_method_parse_with_all_params(self, async_client: AsyncLandingAIAD
)
assert_matches_type(ParseResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_parse(self, async_client: AsyncLandingAIADE) -> None:
response = await async_client.with_raw_response.parse()
Expand All @@ -234,7 +234,7 @@ async def test_raw_response_parse(self, async_client: AsyncLandingAIADE) -> None
client = await response.parse()
assert_matches_type(ParseResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_parse(self, async_client: AsyncLandingAIADE) -> None:
async with async_client.with_streaming_response.parse() as response:
Expand All @@ -246,15 +246,15 @@ async def test_streaming_response_parse(self, async_client: AsyncLandingAIADE) -

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_split(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.split(
split_class=[{"name": "name"}],
)
assert_matches_type(SplitResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_split_with_all_params(self, async_client: AsyncLandingAIADE) -> None:
client = await async_client.split(
Expand All @@ -271,7 +271,7 @@ async def test_method_split_with_all_params(self, async_client: AsyncLandingAIAD
)
assert_matches_type(SplitResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_split(self, async_client: AsyncLandingAIADE) -> None:
response = await async_client.with_raw_response.split(
Expand All @@ -283,7 +283,7 @@ async def test_raw_response_split(self, async_client: AsyncLandingAIADE) -> None
client = await response.parse()
assert_matches_type(SplitResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_split(self, async_client: AsyncLandingAIADE) -> None:
async with async_client.with_streaming_response.split(
Expand Down
Loading