This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tools for using article data in Python.

Project Description

elife-tools

Tools for using article data in Python

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+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

Install for developers

Clone the git repo

Make a virtualenv (optional)

Then

$ python setup.py 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/basic_usage_test.py

These code examples can be run with:

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

and with xml output:

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

Testing

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

License

The MIT License

Release History

Release History

This version
History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
elifetools-0.1.7-py2.py3-none-any.whl (101.0 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 26, 2017
elifetools-0.1.7.tar.gz (95.5 kB) Copy SHA256 Checksum SHA256 Source May 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting