Major change
Versioning will follow the [`CalVer`](https://calver.org/) convention with the format `YYYY.MM.DD_MICRO`
What is new?
- Integration of Australia Post [Postage Assessment Calculator](https://developers.auspost.com.au/apis)
- Introduce PurplShip custom errors `(MethodNotSupportedError, OriginNotServicedError, MultiItemShipmentSupportError)`
- Introduction of multi-mapper per proxy configurable by the client. `(will be used to decouple Freight from package shipping API)`
python
import purplship
australia_post = purplship.gateway["aups"].create(
{
"api_key": "username",
"password": "password",
"account_number": "1234567",
"api": "Postage",
}
)
Changes
- Update Fluent API to offer `Typed` or `Dict` (JSON) as parameters
python
Typed
import purplship
from purplship.domain.Types import TrackingRequest
purplship.tracking.fetch(
TrackingRequest(tracking_numbers=["1Z12345E6205277936"])
).from_(ups).parse()
python
Dict (JSON)
purplship.tracking.fetch(
{"tracking_numbers": ["1Z12345E6205277936"]}
).from_(ups).parse()