Petpy

Latest version: v2.2.1

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

Scan your dependencies

Page 3 of 5

1.7.2

- There is now a proper message when the daily API call limit is exceeded. Before the change, methods would
return a `JSONDecodeError`.
- The Python 2 to 3 compatibility package `six`, has been added as a requirement for package installation.
The `six` library is lightweight and ensures the `petpy` package works properly for Python 2 and 3.
- Numpy is no longer required for installing the package. Numpy's `nan` was initially used to denoted shelters animals
that were not found in the Petfinder database. The value returned when a shelter or animal is not found is now 'na'.

1.7.1

- Fix to the `shelter_get()` method for handling empty responses when no shelters returned for when
the parameter `return_df = True`.
- Fix to getting pets available at a shelter with `shelter_get_pets()` when the parameter
`return_df = True` when the given shelter does not return any available animals.

1.7.0

- Refactoring of the library to clean up code files.
- Fixed a bug with the `shelter_get_pets()` method that caused an error to be thrown when there is only
one pet record and the parameter `return_df = True`.
- Many changes to simplify expressions and internal code within methods.
- The `Petfinder` class method names and parameters have been renamed to be PEP8 compatible. I apologize as this will
cause backward compatibility issues upon updating for anyone using previous versions. The original intention of the
naming was to reflect the Petfinder API's method names as closely as possible, but after further consideration and
given the relatively short life of the library, I think the change is necessary for the future growth and maturity
of the package.
- How the methods interact with the Petfinder API is unchanged. Thus there is no immediate need to update your
version of petpy if it will break any current code.
- The Github repo README has been updated with the new API methods.
- Below is a table detailing the changed method names:

| Previous Method Name | New Method Name |
| -------------------------- | ---------------------- |
| pet_getRandom() | pet_get_random() |
| shelter_getPets() | shelter_get_pets() |
| shelter_listByBreed() | shelter_list_by_breed() |

- The following lists the method parameter names that have changed with the release:

| Previous Parameter Name | New Parameter Name |
| ---------------------------- | ------------------------- |
| petId | pet_id |
| shelterId | shelter_id |

1.6.0

- This release removes pandas as an installation requirement for the package. Although pandas is
required to convert the API results into a DataFrame, this is optional and not necessary to the
building or use of the package itself.

1.5.995

- Calls that return JSON results when using the `pet_find()` method when `return_df=True` are now
adequately handled and an empty pandas DataFrame is returned. This result can happen when searching for a
particular breed of animal that is currently not available in the Petfinder database.

1.5.92

- The paged results should now cap at Petfinder's 2,000 search limit consistently.
- The methods `shelter_get()` and `shelters_get()` now handle shelters that have opted-out of having
their information available in the Petfinder API.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.