Skip to content

release: 0.9.0 #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
42de23d
chore(internal): update lock file (#201)
stainless-bot Nov 29, 2023
2049c50
chore(internal): updates to proxy helper (#202)
stainless-bot Nov 29, 2023
b5b9f79
chore(internal): add tests for proxy change (#203)
stainless-bot Nov 29, 2023
0659932
fix(client): ensure retried requests are closed (#204)
stainless-bot Nov 30, 2023
4ff1a6b
docs(readme): update example snippets (#205)
stainless-bot Nov 30, 2023
7c920a3
chore(internal): replace string concatenation with f-strings (#206)
stainless-bot Nov 30, 2023
5e04fa7
fix(client): correct base_url setter implementation (#207)
stainless-bot Dec 1, 2023
e1ed4a5
chore(package): lift anyio v4 restriction (#208)
stainless-bot Dec 4, 2023
6b8c8a3
ci: ensure PR titles use conventional commits (#209)
stainless-bot Dec 4, 2023
cd3cc6f
feat(api): add `/jobs` endpoints (#210)
stainless-bot Dec 4, 2023
d354f0a
feat(api): add `client_type` and `connection_type` to introspection (…
stainless-bot Dec 5, 2023
ff189d8
ci: remove PR title linter (#212)
stainless-bot Dec 6, 2023
81a6e2f
chore(internal): reformat imports (#213)
stainless-bot Dec 7, 2023
cd5253c
chore(internal): update formatting (#214)
stainless-bot Dec 7, 2023
9adf490
feat(pagination): remove unused types (#215)
stainless-bot Dec 7, 2023
14c8df0
chore(internal): reformat imports (#216)
stainless-bot Dec 7, 2023
61018d4
chore(internal): enable more lint rules (#217)
stainless-bot Dec 7, 2023
d0f1493
feat(api): add `lp` tax payer type enum value (#218)
stainless-bot Dec 7, 2023
ee8fb39
fix(errors): properly assign APIError.body (#219)
stainless-bot Dec 8, 2023
c634771
fix: avoid leaking memory when Client.with_options is used (#220)
stainless-bot Dec 8, 2023
1c946dd
docs: improve README timeout comment (#221)
stainless-bot Dec 11, 2023
7f116d2
refactor(client): simplify cleanup (#222)
stainless-bot Dec 12, 2023
481dc7d
refactor: simplify internal error handling (#223)
stainless-bot Dec 12, 2023
f0b3fb7
refactor: remove unused model types used in params (#224)
stainless-bot Dec 13, 2023
7147466
chore(ci): run release workflow once per day (#226)
stainless-bot Dec 17, 2023
2fe5981
release: 0.9.0
stainless-bot Dec 17, 2023
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: 2 additions & 0 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Create releases
on:
schedule:
- cron: '0 5 * * *' # every day at 5am UTC
push:
branches:
- main
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.8.2"
".": "0.9.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 19
configured_endpoints: 23
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## 0.9.0 (2023-12-17)

Full Changelog: [v0.8.2...v0.9.0](https://github.com/Finch-API/finch-api-python/compare/v0.8.2...v0.9.0)

### Features

* **api:** add `/jobs` endpoints ([#210](https://github.com/Finch-API/finch-api-python/issues/210)) ([cd3cc6f](https://github.com/Finch-API/finch-api-python/commit/cd3cc6febbb46537d6694303c52fbfa266e762cd))
* **api:** add `client_type` and `connection_type` to introspection ([#211](https://github.com/Finch-API/finch-api-python/issues/211)) ([d354f0a](https://github.com/Finch-API/finch-api-python/commit/d354f0a501deeea8090c0e2a6200302fe40a7638))
* **api:** add `lp` tax payer type enum value ([#218](https://github.com/Finch-API/finch-api-python/issues/218)) ([d0f1493](https://github.com/Finch-API/finch-api-python/commit/d0f1493c4bbbabe9fa9b7c5c3ef55588820ba87b))
* **pagination:** remove unused types ([#215](https://github.com/Finch-API/finch-api-python/issues/215)) ([9adf490](https://github.com/Finch-API/finch-api-python/commit/9adf490d6b23ddb642eb630be867690a8f8a8693))


### Bug Fixes

* avoid leaking memory when Client.with_options is used ([#220](https://github.com/Finch-API/finch-api-python/issues/220)) ([c634771](https://github.com/Finch-API/finch-api-python/commit/c6347717feebc43eb69d191aeee3369aa010e0a0))
* **client:** correct base_url setter implementation ([#207](https://github.com/Finch-API/finch-api-python/issues/207)) ([5e04fa7](https://github.com/Finch-API/finch-api-python/commit/5e04fa773d4603d0be73aa67268b17fdc4f6fed2))
* **client:** ensure retried requests are closed ([#204](https://github.com/Finch-API/finch-api-python/issues/204)) ([0659932](https://github.com/Finch-API/finch-api-python/commit/0659932aaaa69850982e6acbe076a4af7980efcd))
* **errors:** properly assign APIError.body ([#219](https://github.com/Finch-API/finch-api-python/issues/219)) ([ee8fb39](https://github.com/Finch-API/finch-api-python/commit/ee8fb3977610c5a7578353042553665a07943b42))


### Chores

* **ci:** run release workflow once per day ([#226](https://github.com/Finch-API/finch-api-python/issues/226)) ([7147466](https://github.com/Finch-API/finch-api-python/commit/7147466ca5ce520e88fb392bd2d84be99a03e2b7))
* **internal:** add tests for proxy change ([#203](https://github.com/Finch-API/finch-api-python/issues/203)) ([b5b9f79](https://github.com/Finch-API/finch-api-python/commit/b5b9f79c19e846e2e8fc3fd1faf905a65a6aa7c4))
* **internal:** enable more lint rules ([#217](https://github.com/Finch-API/finch-api-python/issues/217)) ([61018d4](https://github.com/Finch-API/finch-api-python/commit/61018d4794ec858953dc0a3746054dbc04807ff9))
* **internal:** reformat imports ([#213](https://github.com/Finch-API/finch-api-python/issues/213)) ([81a6e2f](https://github.com/Finch-API/finch-api-python/commit/81a6e2f22a5c5fe862c693a0b5b2affda78d88af))
* **internal:** reformat imports ([#216](https://github.com/Finch-API/finch-api-python/issues/216)) ([14c8df0](https://github.com/Finch-API/finch-api-python/commit/14c8df00568bba59acab45ff6cdef2cb04599b43))
* **internal:** replace string concatenation with f-strings ([#206](https://github.com/Finch-API/finch-api-python/issues/206)) ([7c920a3](https://github.com/Finch-API/finch-api-python/commit/7c920a33c103fadee08cd784f5d028f2ab19411f))
* **internal:** update formatting ([#214](https://github.com/Finch-API/finch-api-python/issues/214)) ([cd5253c](https://github.com/Finch-API/finch-api-python/commit/cd5253c9a8417eec88dc8c30fdfa817ec1519a9e))
* **internal:** update lock file ([#201](https://github.com/Finch-API/finch-api-python/issues/201)) ([42de23d](https://github.com/Finch-API/finch-api-python/commit/42de23d5c7a3b9253396b94af7884e7a9300b841))
* **internal:** updates to proxy helper ([#202](https://github.com/Finch-API/finch-api-python/issues/202)) ([2049c50](https://github.com/Finch-API/finch-api-python/commit/2049c50e723ec6ec4b4d46a18fa87800a58d581a))
* **package:** lift anyio v4 restriction ([#208](https://github.com/Finch-API/finch-api-python/issues/208)) ([e1ed4a5](https://github.com/Finch-API/finch-api-python/commit/e1ed4a53591362f5e2579e301b43529b64f2fc8b))


### Documentation

* improve README timeout comment ([#221](https://github.com/Finch-API/finch-api-python/issues/221)) ([1c946dd](https://github.com/Finch-API/finch-api-python/commit/1c946dd97fc43bfdda3346311282086af8cac6cb))
* **readme:** update example snippets ([#205](https://github.com/Finch-API/finch-api-python/issues/205)) ([4ff1a6b](https://github.com/Finch-API/finch-api-python/commit/4ff1a6b04ba8e3301ac6ff4a612bb8aab801abd0))


### Refactors

* **client:** simplify cleanup ([#222](https://github.com/Finch-API/finch-api-python/issues/222)) ([7f116d2](https://github.com/Finch-API/finch-api-python/commit/7f116d2665c22e08988fb01cbbb692c8c0b79fea))
* remove unused model types used in params ([#224](https://github.com/Finch-API/finch-api-python/issues/224)) ([f0b3fb7](https://github.com/Finch-API/finch-api-python/commit/f0b3fb7fceb4cdfe42abc5e49e04de30633cc55c))
* simplify internal error handling ([#223](https://github.com/Finch-API/finch-api-python/issues/223)) ([481dc7d](https://github.com/Finch-API/finch-api-python/commit/481dc7de11733b2493e820ff241b7999d873fd16))

## 0.8.2 (2023-11-28)

Full Changelog: [v0.8.1...v0.8.2](https://github.com/Finch-API/finch-api-python/compare/v0.8.1...v0.8.2)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ from finch import Finch

# Configure the default for all requests:
client = Finch(
# default is 60s
# 20 seconds (default is 1 minute)
timeout=20.0,
)

Expand Down
32 changes: 30 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Shared Types

```python
from finch.types import OperationSupport, OperationSupportMatrix
from finch.types import OperationSupport, OperationSupportMatrix, Paging
```

# Finch
Expand All @@ -16,7 +16,7 @@ Methods:
Types:

```python
from finch.types import Income, Location, Money, Paging
from finch.types import Income, Location, Money
```

## CompanyResource
Expand Down Expand Up @@ -186,3 +186,31 @@ from finch.types import RequestForwardingForwardResponse
Methods:

- <code title="post /forward">client.request_forwarding.<a href="./src/finch/resources/request_forwarding.py">forward</a>(\*\*<a href="src/finch/types/request_forwarding_forward_params.py">params</a>) -> <a href="./src/finch/types/request_forwarding_forward_response.py">RequestForwardingForwardResponse</a></code>

# Jobs

## Automated

Types:

```python
from finch.types.jobs import AutomatedAsyncJob, AutomatedCreateResponse
```

Methods:

- <code title="post /jobs/automated">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">create</a>(\*\*<a href="src/finch/types/jobs/automated_create_params.py">params</a>) -> <a href="./src/finch/types/jobs/automated_create_response.py">AutomatedCreateResponse</a></code>
- <code title="get /jobs/automated/{job_id}">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">retrieve</a>(job_id) -> <a href="./src/finch/types/jobs/automated_async_job.py">AutomatedAsyncJob</a></code>
- <code title="get /jobs/automated">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">list</a>(\*\*<a href="src/finch/types/jobs/automated_list_params.py">params</a>) -> <a href="./src/finch/types/jobs/automated_async_job.py">SyncPage[AutomatedAsyncJob]</a></code>

## Manual

Types:

```python
from finch.types.jobs import ManualAsyncJob
```

Methods:

- <code title="get /jobs/manual/{job_id}">client.jobs.manual.<a href="./src/finch/resources/jobs/manual.py">retrieve</a>(job_id) -> <a href="./src/finch/types/jobs/manual_async_job.py">ManualAsyncJob</a></code>
35 changes: 21 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "finch-api"
version = "0.8.2"
version = "0.9.0"
description = "The official Python library for the Finch API"
readme = "README.md"
license = "Apache-2.0"
Expand All @@ -11,7 +11,7 @@ dependencies = [
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.5, <5",
"anyio>=3.5.0, <4",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",

Expand Down Expand Up @@ -45,17 +45,18 @@ Repository = "https://github.com/Finch-API/finch-api-python"

[tool.rye]
managed = true
# version pins are in requirements-dev.lock
dev-dependencies = [
"pyright==1.1.332",
"mypy==1.7.1",
"black==23.3.0",
"respx==0.19.2",
"pytest==7.1.1",
"pytest-asyncio==0.21.1",
"ruff==0.0.282",
"isort==5.10.1",
"time-machine==2.9.0",
"nox==2023.4.22",
"pyright",
"mypy",
"black",
"respx",
"pytest",
"pytest-asyncio",
"ruff",
"isort",
"time-machine",
"nox",
"dirty-equals>=0.6.0",

]
Expand All @@ -80,7 +81,7 @@ typecheck = { chain = [
]}
"typecheck:pyright" = "pyright"
"typecheck:verify-types" = "pyright --verifytypes finch --ignoreexternal"
"typecheck:mypy" = "mypy --enable-incomplete-feature=Unpack ."
"typecheck:mypy" = "mypy ."

[build-system]
requires = ["hatchling"]
Expand Down Expand Up @@ -132,9 +133,11 @@ extra_standard_library = ["typing_extensions"]

[tool.ruff]
line-length = 120
format = "grouped"
output-format = "grouped"
target-version = "py37"
select = [
# bugbear rules
"B",
# remove unused imports
"F401",
# bare except statements
Expand All @@ -145,6 +148,10 @@ select = [
"T201",
"T203",
]
ignore = [
# mutable defaults
"B006",
]
unfixable = [
# disable auto fix for print statements
"T201",
Expand Down
13 changes: 6 additions & 7 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

-e file:.
annotated-types==0.6.0
anyio==3.7.1
anyio==4.1.0
argcomplete==3.1.2
attrs==23.1.0
black==23.3.0
Expand All @@ -20,9 +20,9 @@ distlib==0.3.7
distro==1.8.0
exceptiongroup==1.1.3
filelock==3.12.4
h11==0.12.0
httpcore==0.15.0
httpx==0.23.0
h11==0.14.0
httpcore==1.0.2
httpx==0.25.2
idna==3.4
iniconfig==2.0.0
isort==5.10.1
Expand All @@ -42,9 +42,8 @@ pytest==7.1.1
pytest-asyncio==0.21.1
python-dateutil==2.8.2
pytz==2023.3.post1
respx==0.19.2
rfc3986==1.5.0
ruff==0.0.282
respx==0.20.2
ruff==0.1.7
six==1.16.0
sniffio==1.3.0
time-machine==2.9.0
Expand Down
9 changes: 4 additions & 5 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

-e file:.
annotated-types==0.6.0
anyio==3.7.1
anyio==4.1.0
certifi==2023.7.22
distro==1.8.0
exceptiongroup==1.1.3
h11==0.12.0
httpcore==0.15.0
httpx==0.23.0
h11==0.14.0
httpcore==1.0.2
httpx==0.25.2
idna==3.4
pydantic==2.4.2
pydantic-core==2.10.1
rfc3986==1.5.0
sniffio==1.3.0
typing-extensions==4.8.0
2 changes: 1 addition & 1 deletion src/finch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
for __name in __all__:
if not __name.startswith("__"):
try:
setattr(__locals[__name], "__module__", "finch")
__locals[__name].__module__ = "finch"
except (TypeError, AttributeError):
# Some of our exported symbols are builtins which we can't set attributes for.
pass
Loading