Skip to content

Commit cd8bef9

Browse files
authored
Update upgrading_to_v2.md
1 parent 15d2b77 commit cd8bef9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/04_upgrading/upgrading_to_v2.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ Support for Python 3.9 has been dropped. The Apify Python API Client v2.x now re
1111

1212
## New underlying HTTP library
1313

14-
In v2.0, the Apify Python API client switched from using `httpx` to [`impit`](https://github.com/apify/impit) as the underlying HTTP library.
14+
In v2.0, the Apify Python API client switched from using [`httpx`](https://www.python-httpx.org/) to [`impit`](https://github.com/apify/impit) as the underlying HTTP library. However, this change shouldn't have much impact on the end user.
1515

1616
## API method changes
1717

18+
Several public methods have changed their signatures or behavior.
19+
1820
### Removed parameters and attributes
1921

20-
- The `parse_response` parameter has been removed from the `call()` method. This was an internal parameter that added a private attribute to the `Response` object.
22+
- The `parse_response` parameter has been removed from the `HTTPClient.call()` method. This was an internal parameter that added a private attribute to the `Response` object.
2123
- The private `_maybe_parsed_body` attribute has been removed from the `Response` object.
2224

2325
### KeyValueStoreClient
@@ -30,9 +32,11 @@ In v2.0, the Apify Python API client switched from using `httpx` to [`impit`](ht
3032

3133
## Module reorganization
3234

35+
Some modules have been restructured.
36+
3337
### Constants
3438

35-
- Deprecated constant re-exports from `consts.py` have been removed. Constants should now be imported from the [apify-shared-python](https://github.com/apify/apify-shared-python) package.
39+
- Deprecated constant re-exports from `consts.py` have been removed. Constants should now be imported from the [apify-shared-python](https://github.com/apify/apify-shared-python) package if needed.
3640

3741
### Errors
3842

0 commit comments

Comments
 (0)