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 ability to save client results directly from Python #1461

Closed
wants to merge 3 commits into from

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Jan 4, 2023

This PR adds a save_as argument to get() which will save the results of a single query to a JSON file.

It also adds the .save() method which will save all results from the current client, making efforts to aggregate any existing results in that file.

This could begin the preliminary work for persistent local caching of OPTIMADE results. Caveats: what to do if not all responses fields are requested the first time around --- probably need to hash the precise query URLs and use those in the cache.

@ml-evs
Copy link
Member Author

ml-evs commented Feb 19, 2023

Superseded by #1519, IMO. If someone wants to save all data at once after the query, they can just json dump the results.

@ml-evs ml-evs closed this Feb 19, 2023
@ml-evs ml-evs deleted the ml-evs/save_client_results branch May 29, 2023 21:45
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.

None yet

1 participant