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

Add integration with requests-cache #158

Closed
Tracked by #217
JWCook opened this issue Jun 1, 2021 · 0 comments · Fixed by #250
Closed
Tracked by #217

Add integration with requests-cache #158

JWCook opened this issue Jun 1, 2021 · 0 comments · Fixed by #250
Labels
enhancement New feature or request
Milestone

Comments

@JWCook
Copy link
Member

JWCook commented Jun 1, 2021

I'm currently maintaining requests-cache, and the iNaturalist API is a use case I specifically had in mind for it. Requests-cache can already be combined with pyinaturalist (via requests_cache.install_cache(), which I've already been doing in some of my other projects), but I think this is useful enough to integrate into pyinaturalist directly, using CachedSession instead of install_cache().

Expiration can be configured per endpoint, so one of the tasks for this will be adding some sane default config for the most commonly used endpoints. This should also be user-configurable, with the option to disable it completely.

This will be especially useful for infrequently-changing data like taxa and places, and to a lesser extent observations (although with a shorter cache expiration).

@JWCook JWCook added the enhancement New feature or request label Jun 1, 2021
@JWCook JWCook added this to the v0.14 milestone Jun 1, 2021
@JWCook JWCook modified the milestones: v0.14, v0.15 Jun 28, 2021
@JWCook JWCook mentioned this issue Jul 30, 2021
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant