Releases: EasyPost/easypost-python
Releases · EasyPost/easypost-python
v7.6.1
- Concatenates
error.message
if it incorrectly comes back from the API as a list
v7.6.0
- Adds support to pass
end_shipper_id
on the buy call of a Shipment - Migrates the Partner White Label (Referral) functions from beta to the general library namespace and deprecates the beta functions
v7.5.0
- Adds the
EndShipper
class withcreate
,retrieve
,all
, andsave
functions
v7.4.0
- Adds Carbon Offset support
- Adds ability to create a shipment with carbon_offset
- Adds ability to buy a shipment with carbon_offset
- Adds ability to one-call-buy a shipment with carbon_offset
- Adds ability to rerate a shipment with carbon_offset
- Adds
validate_webhook
function that returns your webhook or raises an error if there is awebhook_secret
mismatch
v7.3.0
- Adds ability to generate forms for shipments via
generate_form()
function
v7.2.0
- Adds
Billing.retrieve_payment_methods()
,Billing.fund_wallet()
, andBilling.delete_payment_method()
functions - Removes the unusable
carrier
param fromAddress.verify()
along with the deadmessage
conditional check that was missed in v7.0.0 - Adds OS specific details to the user-agent header
- API keys are now required for every request and will fail fast if not present
- Swaps update functions to use
patch
instead ofput
behind the scenes to better match the API behavior and documentation. Behavior of these functions should be unchanged
v6.0.1
- Backported newer user-agent header
v7.1.1
- Fixes the inclusion of the new
beta
module
v7.1.0
- Adds a
lowest_rate()
function to Orders and Pickups - Adds a
Shipment.get_lowest_smartrate()
function and ashipment.lowest_smartrate()
function - Adds beta Referral class for Partner White Label API with these new functions:
create()
,update_email()
,all()
, andadd_credit_card()
v7.0.0
Upgrading major versions of this project? Refer to the Upgrade Guide.
Breaking Changes
- Bumps minimum Python version from 2.7 to 3.6
- Bumps all dependencies
- Removes
shipment.get_rates()
method since the shipment object already has rates. If you need to get new rates for a shipment, please use theshipment.regenerate_rates()
method. - Removes
track_with_code
in shipment class since it's no longer being used - Removes the unusable
carrier
param fromAddress.create_and_verify()
along with the deadmessage
conditional check - Must pass a list object to
shipment.lowest_rate()
rather than a comma-separated list
Features
- Adds the
update_brand()
method to the User object - Adds Python version to user-agent header on requests
- Adds
retrieve_me()
convenience function that allow users to retrieve without specifying an ID.
Chores
- Broke out the entire project into separate modules based on object
- Removes
_max_timeout
and instead uses a flat 60-second timeout for requests - Added Makefile for much easier development management
- Added typehints throughout the project
- Consolidated all dependencies from various requirements files to
setup.py
- Added a comprehensive test suite that tests all interfaces of the project
- Documented each interface of the project via docstrings