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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.166.0"
".": "0.167.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 199
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-120670f0bcb7ab318b5b09e639e25e243d2cb7a630a27aebb4f94395b1fc337b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-92b3218777bbba277b31ea137f39b68f565e6ad3c653aca0f2d30db51e5fe3c7.yml
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.167.0 (2024-12-09)

Full Changelog: [v0.166.0...v0.167.0](https://github.com/Increase/increase-python/compare/v0.166.0...v0.167.0)

### Features

* **api:** api update ([#862](https://github.com/Increase/increase-python/issues/862)) ([16f7ea2](https://github.com/Increase/increase-python/commit/16f7ea203f2a33d3b9f40a7d2a71c535c78d2536))


### Chores

* **internal:** bump pydantic dependency ([#859](https://github.com/Increase/increase-python/issues/859)) ([9671540](https://github.com/Increase/increase-python/commit/96715402bb54430a3e37a000f9fa3a092e310e9e))


### Documentation

* **readme:** fix http client proxies example ([#861](https://github.com/Increase/increase-python/issues/861)) ([426b32c](https://github.com/Increase/increase-python/commit/426b32c2e60f38f123d05d40a3a8ec5db4fc0aee))

## 0.166.0 (2024-12-04)

Full Changelog: [v0.165.1...v0.166.0](https://github.com/Increase/increase-python/compare/v0.165.1...v0.166.0)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,18 +386,19 @@ can also get all the extra fields on the Pydantic model as a dict with

You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:

- Support for proxies
- Custom transports
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality

```python
import httpx
from increase import Increase, DefaultHttpxClient

client = Increase(
# Or use the `INCREASE_BASE_URL` env var
base_url="http://my.test.server.example.com:8083",
http_client=DefaultHttpxClient(
proxies="http://my.test.proxy.example.com",
proxy="http://my.test.proxy.example.com",
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
),
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.166.0"
version = "0.167.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ platformdirs==3.11.0
# via virtualenv
pluggy==1.5.0
# via pytest
pydantic==2.9.2
pydantic==2.10.3
# via increase
pydantic-core==2.23.4
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
Expand Down
4 changes: 2 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ httpx==0.25.2
idna==3.4
# via anyio
# via httpx
pydantic==2.9.2
pydantic==2.10.3
# via increase
pydantic-core==2.23.4
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via anyio
Expand Down
6 changes: 2 additions & 4 deletions src/increase/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ def get(self, __key: str) -> str | None: ...
StrBytesIntFloat = Union[str, bytes, int, float]

# Note: copied from Pydantic
# https://github.com/pydantic/pydantic/blob/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49
IncEx: TypeAlias = Union[
Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]]
]
# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79
IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]]

PostParser = Callable[[Any], Any]

Expand Down
2 changes: 1 addition & 1 deletion src/increase/_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__ = "increase"
__version__ = "0.166.0" # x-release-please-version
__version__ = "0.167.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/increase/resources/bookkeeping_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def retrieve(
def list(
self,
*,
account_id: str | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -95,6 +96,8 @@ def list(
List Bookkeeping Entries

Args:
account_id: The identifier for the Bookkeeping Account to filter by.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
Expand All @@ -118,6 +121,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"account_id": account_id,
"cursor": cursor,
"limit": limit,
},
Expand Down Expand Up @@ -188,6 +192,7 @@ async def retrieve(
def list(
self,
*,
account_id: str | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -201,6 +206,8 @@ def list(
List Bookkeeping Entries

Args:
account_id: The identifier for the Bookkeeping Account to filter by.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
Expand All @@ -224,6 +231,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"account_id": account_id,
"cursor": cursor,
"limit": limit,
},
Expand Down
3 changes: 3 additions & 0 deletions src/increase/types/bookkeeping_entry_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@


class BookkeepingEntryListParams(TypedDict, total=False):
account_id: str
"""The identifier for the Bookkeeping Account to filter by."""

cursor: str
"""Return the page of entries after this one."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_bookkeeping_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def test_method_list(self, client: Increase) -> None:
@parametrize
def test_method_list_with_all_params(self, client: Increase) -> None:
bookkeeping_entry = client.bookkeeping_entries.list(
account_id="account_id",
cursor="cursor",
limit=1,
)
Expand Down Expand Up @@ -139,6 +140,7 @@ async def test_method_list(self, async_client: AsyncIncrease) -> None:
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> None:
bookkeeping_entry = await async_client.bookkeeping_entries.list(
account_id="account_id",
cursor="cursor",
limit=1,
)
Expand Down
Loading