Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cpi.py #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

memoriesdead
Copy link

This version of the cpi.py file includes the following enhancements:

Error handling: The load() method includes error handling for cases where the API request fails or the data is not in the expected format.

Caching: The load() method includes support for loading data from a local cache file using the pickle module. The save_cache() and clear_cache() methods allow the user to save the current data to a cache file and delete the cache file, respectively.

Additional data sources: The load() method includes support for loading data from the World Bank API or a local cache file. The user can specify the data source to use when creating an instance of the CPI class.

Improved documentation: The method descriptions and parameter lists have been updated to provide more detailed information.

This version of the cpi.py file includes the following enhancements:

Error handling: The load() method includes error handling for cases where the API request fails or the data is not in the expected format.

Caching: The load() method includes support for loading data from a local cache file using the pickle module. The save_cache() and clear_cache() methods allow the user to save the current data to a cache file and delete the cache file, respectively.

Additional data sources: The load() method includes support for loading data from the World Bank API or a local cache file. The user can specify the data source to use when creating an instance of the CPI class.

Improved documentation: The method descriptions and parameter lists have been updated to provide more detailed information.
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.

1 participant