Releases: Junglescout/junglescout-python-client
v0.4.1
v0.4.0
v0.3.0
v0.3.0 (2024-11-08)
Summary
This release includes new features, most notably a new AsyncClient
client that can be used with async/await
coroutines. Here's a summary of all the new features included in this release:
- Added a new
AsyncClient
that can be used inasync/await
coroutines. - More direct interface to explicitly close clients.
- Ability to use ClientSync and ClientAsync as context managers, to automatically close clients when exiting the context.
- Introduced project-specific Exceptions.
- Various bug fixes.
Breaking Changes
- The import path for clients has changed. Additionally, we're recommending to import either
ClientSync
orClientAsync
. ImportingClient
(which is an alias forClientSync
) will be deprecated in a future release.# This import no longer works from junglescout.client import Client # Instead, you should import clients from the top-level package from junglescout import ClientSync, ClientAsync # You're still able to import the `Client` from the top-level package (which is an alias for `ClientSync`) # However, in future releases, we plan to drop support for the `Client` alias from junglescout import Client
- Under the hood, the Jungle Scout Python Client was previously using
requests
to make HTTP requests. In this release, we've switched toHTTPX
to make HTTP requests becauseHTTPX
provides async support by default. In most cases this change should be transparent. - Client methods that make API requests now raise project-specific Exceptions. Previously, client methods would raise
requests.HTTPError
. See the documentation for more information on the project specific Exceptions. - Previously, we were using default timeout settings of
default_connect_timeout=4 seconds
anddefault_read_timeout=10 seconds
. Now, the default timeout is an overall timeout of60 seconds
.
Individual PRs
Feature
- feat: Add AsyncClient, Introduce Project-Specific Exceptions, and Ability to Close Clients (#87)
- Co-authored-by: NotAnyMike <[email protected]> (
9d74862
)
- Co-authored-by: NotAnyMike <[email protected]> (
Chore
v0.2.2
v0.2.1
v0.2.0
v0.1.4
v0.1.4 (2024-06-20)
Chore
-
chore: Improve error handling and fix a test (#79) (
bdbbbec
) -
chore(deps): bump urllib3 from 2.2.1 to 2.2.2 (#77)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (beb7642
)
- chore(deps): bump requests from 2.31.0 to 2.32.0 (#74)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (dfc8f5e
)
- chore(deps): bump idna from 3.6 to 3.7 (#70)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (597fa1b
)
- chore(deps-dev): bump jinja2 from 3.1.3 to 3.1.4 (#71)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (1167638
)
- chore(deps-dev): bump black from 22.3.0 to 24.3.0 (#73)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Paulo Roberto Xavier <[email protected]>
Co-authored-by: semantic-release <semantic-release>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (a963f66
)
Fix
v0.1.3
v0.1.3 (2024-05-08)
Chore
Documentation
Fix
Changes some typing on the SalesEstimatesAttributes
to optional on the Pydantic model. (9b7a083
)