gyorilab / indra_db

A Database-based knowledge back-end built on and for INDRA. The INDRA Database is a service that can be set up by any user with their own content and knowledge access. Our implementation of the database is the back-end to many of our projects, providing a vast and detailed knowledge base derived from many resources.
GNU General Public License v3.0
16 stars 10 forks source link

Open up curations, with a hash #187

Closed pagreene closed 2 years ago

pagreene commented 3 years ago

This PR makes it so that users with any credentials (an API key or account) can get all the curations, however without extra permissions the identities will be hashed and salted.

This PR adds a new config environment variable: INDRA_DB_API_CURATOR_SALT.

This PR also switches to using the pathlib.Path object for file paths.

cthoyt commented 3 years ago

Maybe would be good to add a code example in here somewhere on how to take advantage of the curation endpoint in combination with the INDRA filter_by_curation() function https://github.com/sorgerlab/indra/blob/bc39dae6849b1fd484d83eabb3d2afee963a6298/indra/tools/assemble_corpus.py#L1669

kkaris commented 2 years ago

Just tested locally, will test on db.indra.bio/dev