Skip to content

Conversation

@el-iot
Copy link

@el-iot el-iot commented Oct 14, 2022

Firstly, thank you for creating this package! I've been looking for a python-implementation of jkeens spec for a while.

Currently, get_tracking_number returns the first valid TrackingNumber based on a given number. However, I'd like to be able to get all matching TrackingNumbers (with differing couriers) and add some logic to select the most appropriate courier afterwards. I've added a new function get_tracking_numbers(number: str) -> list[TrackingNumber] which does exactly this. Let me know what you think!

@devtanna
Copy link

devtanna commented Nov 13, 2022

This is great! I was thinking of doing something similar 😃 what do you think about searching not just a string of numbers but any text? Kind of like what the main ruby gem does with TrackingNumber.search
I've been meaning to put up a PR for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants