griffithlab / civicpy

A python interface for the CIViC db application
MIT License
8 stars 5 forks source link

Support configurable remote cache locations #26

Closed susannasiebert closed 5 years ago

susannasiebert commented 5 years ago

The location of the cache is set via the CIVICPY_CACHE_FILE env variable. Otherwise it defaults to a location on civicdb.org.

The new method update_cache will fetch all records and save the pkl to the CIVICPY_CACHE_FILE location. This method will be used when creating and updating the remote master pkl on civicdb.org.

The tests have been updated to not allow caching.

Closes #17