Skip to main content

Tools for using article data in Python.

Project description


Latest Version

Tools for using article data in Python


  • Python 2.7
  • Python >=3.5

Non-Python dependencies

  • libxml2 (Ubuntu, Arch)

Install for users

Install via pip:

$ pip install elifetools

You might need to install libxml manually first

$ sudo STATIC_DEPS=true pip install lxml==3.4.1

To install the latest version directly from git

$ pip install git+

or you can add it to your project’s requirements.txt file


Install for developers

Clone the git repo

Make a virtualenv (optional)


$ python install

Example usage

>>> from elifetools 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/

These code examples can be run with:

$ cd elifetools/
$ python -m unittest discover -s tests  -p *

and with xml output:

$ cd elifetools/
$ python -m xmlrunner discover -s tests -p *


You can run the full automated test suite from the base folder with:

$ python -m unittest discover elifetools/tests

or you can run tests with coverage:

$ coverage run -m unittest discover elifetools/tests

and then view the coverage report:

$ coverage report -m


The MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for elifetools, version 0.1.8
Filename, size & hash File type Python version Upload date
elifetools-0.1.8-py3-none-any.whl (55.7 kB) View hashes Wheel py3
elifetools-0.1.8.tar.gz (53.2 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page