- Simple RESTful API to expose bibtex library
- Based on Python, using
flask
andpybtex
- Intended to be used as backend for websites rendering bibtex reference lists
Install flask and pybtex
sudo pip install flask pybtex
Then, the development flask server can be started with
python bibrest.py
It will serve the test.bib in the same folder.
Will return all bibtex entries, including the project field. All arguments are optional
Arguments:
reverse
: set toTrue
if order should be anti-chronologicauthor
: give one or more author names (comma separated). Will return bibtex of all entries with those strings in author field.project
: give one or more project names (comma separated). Will return bibtex of all entries with those projects.start
: give starting year from which on results are returned
Example use:
foo.bar/bibs?author=tippenhauer,mathur&project=aspire&reverse=True&start=2014
Will return bibtex for article <key>
Will return human readable list of all project keys in the database
Will return human readable list of all authors in the database
For more stable deployments, we recommend gunicorn, apache, or nginx.
- Only one project per entry
- Add ?year=2016 filter
Nils Ole Tippenhauer, SUTD, 2016