Releases: EasyPost/easypost-python
Releases · EasyPost/easypost-python
v7.14.1
- Fixes a bug where
get_next_page
functions threw an error, preventing users from retrieving the final page of results
v7.14.0
- Adds beta
all_children
function 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_keys
property of a client- NOTE: Please note the naming. The
api_key
property of a client is the currently-used API key string, while theapi_keys
property is the service for managing API keys.
- NOTE: Please note the naming. The
- Migrated API Key-related functionality to
api_keys
service, deprecated old methods inuser
service
v8.1.1
- Fix endpoint for creating a FedEx Smartpost carrier account
v8.1.0
- Adds new
RequestHook
andResponseHook
events. (un)subscribe to them with the newsubscribe_to_request_hook
,subscribe_to_response_hook
,unsubscribe_from_request_hook
, orunsubscribe_from_response_hook
methods of anEasyPostClient
- Maps 400 status codes to new
BadRequestError
class
v8.0.0
See our Upgrade Guide for more details.
- New
EasyPostClient
object- 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
ApiError
orEasyPostError
- ApiErrors behave like the previous
Error
class did. They will include amessage
,http_status
, andhttp_body
. Additionally, a newcode
anderrors
keys are present and populate when available
- Introduces ~2 dozen new error types that extend from either
- Beta namespace changed from
easypost.beta.x
toclient.beta_x
- Empty API response functions return
None
instead ofTrue
- Corrected naming conventions
- References to
Referral
are nowReferralCustomer
andreferral_customer
to match the API and docs - References to
Smartrate
are nowSmartRate
andsmart_rate
to match the API and docs - References to
Scanform
are nowScanForm
andscan_form
primary_or_secondary
paramater name for billing functions is now calledpriority
to match the API and docs
- References to
- The
update_email
function of thereferral_customer
service 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
v7.13.0
- Adds
retrieve_estimated_delivery_date
function to the Shipment class
v7.12.0
- Adds beta
retrieve_carrier_metadata
function - Improves error deserialization to handle bad format returned from the JSON
v7.11.0
- Add
get_next_page
function that retrieves the next page of results for a paginated collection