petpy 2.1.2 Release
New release includes a bug fix and some additional changes for checking total usage against the Petfinder API.
animal_type
parameter used in theanimals()
endpoint has been corrected and should be working properly.- New methods for checking the usage of the supplied API key against the limits defined by the Petfinder API have been implemented to better help warn users when they are approaching their API request limit.
- If the
max_pages
parameter exceeds 10,000, a warning will be issued to give the user the opportunity to continue or limit their results to 10,000 pages. - When the API limits are exceeded, a
RuntimeError
will be issued.
- If the
Thank you to contributor ma755 for submitting the pull request.