Tools for using article data in Python
Install via pip:
$ pip install elifetools
To install the latest version directly from git
$ pip install git+https://github.com/elifesciences/elife-tools.git@master
or you can add it to your project's requirements.txt file
git+https://github.com/elifesciences/elife-tools.git@master
Clone the git repo
Make a virtualenv (optional)
Then
$ python setup.py install
>>> import parseJATS as parser
>>> soup = parser.parse_document('sample-xml/elife-kitchen-sink.xml')
>>> print parser.doi(soup)
More code examples can be found in tests/unittests/basic_usage_test.py
These code examples can be run with:
$ cd elifetools/
$ python -m unittest discover -s tests/unittests/ -p *_test.py
Lettuce for testing.
$ cd elifetools/tests
$ lettuce