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