Releases: EasyPost/easypost-python
Releases · EasyPost/easypost-python
v9.0.1
- Corrects the return type of
regenerate_rates
v9.0.0
- Removes
with_carbon_offsetparameter fromcreate,buy, andregenerate_ratesfunctions of the Shipment service as EasyPost now offers Carbon Neutral shipments by default for free - Removes the undocumented
create_and_buyfunction from theBatchservice. The proper usage is to create a batch first and buy it separately - Removes the
beta_carrier_metadataservice as it is deprecated, please use thecarrier_metadataGA service instead
v8.2.1
- Fixes a bug where
get_next_pagefunctions threw an error, preventing users from retrieving the final page of results
v7.14.1
- Fixes a bug where
get_next_pagefunctions threw an error, preventing users from retrieving the final page of results
v7.14.0
- Adds beta
all_childrenfunction to the User class for retrieving paginated lists of children users
v7.13.1
v8.2.0
- Add dedicated API Key-related service, available via the
api_keysproperty of a client- NOTE: Please note the naming. The
api_keyproperty of a client is the currently-used API key string, while theapi_keysproperty is the service for managing API keys.
- NOTE: Please note the naming. The
- Migrated API Key-related functionality to
api_keysservice, deprecated old methods inuserservice
v8.1.1
- Fix endpoint for creating a FedEx Smartpost carrier account
v8.1.0
- Adds new
RequestHookandResponseHookevents. (un)subscribe to them with the newsubscribe_to_request_hook,subscribe_to_response_hook,unsubscribe_from_request_hook, orunsubscribe_from_response_hookmethods of anEasyPostClient - Maps 400 status codes to new
BadRequestErrorclass
v8.0.0
See our Upgrade Guide for more details.
- New
EasyPostClientobject- Logic is grouped together in Services and each EasyPost object has a new model (eg:
client.shipment.create())
- Logic is grouped together in Services and each EasyPost object has a new model (eg:
- Error handling overhaul
- Introduces ~2 dozen new error types that extend from either
ApiErrororEasyPostError - ApiErrors behave like the previous
Errorclass did. They will include amessage,http_status, andhttp_body. Additionally, a newcodeanderrorskeys are present and populate when available
- Introduces ~2 dozen new error types that extend from either
- Beta namespace changed from
easypost.beta.xtoclient.beta_x - Empty API response functions return
Noneinstead ofTrue - Corrected naming conventions
- References to
Referralare nowReferralCustomerandreferral_customerto match the API and docs - References to
Smartrateare nowSmartRateandsmart_rateto match the API and docs - References to
Scanformare nowScanFormandscan_form primary_or_secondaryparamater name for billing functions is now calledpriorityto match the API and docs
- References to
- The
update_emailfunction of thereferral_customerservice had the parameter order switched soid(previously calleduser_id) is first which matches the rest of the library - Retrieving carrier metadata is now in GA
- Dropped Python 3.6 support
- Bumps all dependencies