Petpy

Latest version: v2.2.1

Safety actively analyzes 627056 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

1.5.91

- Paged results will now reach Petfinder's 2,000 records per search limit. Before, if the next paged result would
equal or exceed 2,000 results the call would end, and the results would be returned. For example, if the parameters
`pages` is 10 and `count` is 200, 2,000 records will now be returned, whereas previously 1,800 would be returned.

1.5.9

- Paging results that exceed Petfinder's limit of 2,000 records returned per search with `return_df = True`
will now correctly exit the loop and return the results as a DataFrame.

1.5.7

- The fix to returning a DataFrame when paging results is now implemented in this release. Apologies for the
oversight, the code change was not made before releasing the previous version.
- The contact information returned with a DataFrame when `return_df = True` now has the prefix 'contact.'
removed to make the results cleaner.

1.5.6

- Paging results now returns the stated number of pages in the `pages` parameter. Before, `pages + 1`
results were returned.
- Returning pandas DataFrames with methods `pet_find()` and `shelter_find()` should no longer throw
`ValueError` (duplicate column name was causing an error in concatenating a list of results into a DataFrame).

1.5.5

- `shelter_getPets()` method now returns a complete flattened pandas DataFrame when the parameter
`return_df = True`.

1.5.4

- Slight fix to `pet_getRandom()` method. Before, if the method parameter `return_df = True`, but the parameter `output`
was not one of 'basic' or 'full', the `return_df` parameter was overridden and set as `False`. Now, if
`return_df = True` and `output` `None`, then `output` is set to 'full' to return the complete DataFrame.
- Added `records` parameter to `pet_getRandom()` to allow multiple random results to be returned in the same method
call. Please note each record returned counts as one call made to the Petfinder API.
- Added API convenience methods `pets_get()` and `shelters_get()` for pulling multiple results given a list or tuple
of IDs. These methods are essentially wrappers of the API methods `pet_get()` and `shelter_get()`.
- More code cleanup, formatting, and simplification.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.