Tools for using article data in Python.
Project description
elife-tools
Tools for using article data in Python
Supports
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+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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
elifetools-0.6.0.tar.gz
(59.0 kB
view hashes)
Built Distribution
elifetools-0.6.0-py3-none-any.whl
(60.9 kB
view hashes)
Close
Hashes for elifetools-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9e23d7b7dfb9779a31eca5ca77f1784a8415932110cc4d75640f1e40eb11a0 |
|
MD5 | e76e381360d67593fe4c13bcf04bba79 |
|
BLAKE2b-256 | 324b7fb9e0273a525abd3d4f54ddb5647308616106a737d1a21f97037a97369d |