Tools for using article data in Python.
Project description
elife-tools
Tools for using article data in Python
Install for users
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
Install for developers
Clone the git repo
Make a virtualenv (optional)
Then
$ python setup.py install
Example usage
>>> 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
and with xml output:
$ cd elifetools/
$ python -m xmlrunner discover -s tests/unittests/ -p *_test.py
Testing
Lettuce for testing.
$ cd elifetools/tests
$ lettuce
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.1.3.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for elifetools-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4742227d5ddc583bf24cfb17467f5632e9ef022c589e0443cce286078301b843 |
|
MD5 | 81ce8b83b03875fb9db7d7fb7d6b2b2b |
|
BLAKE2b-256 | 176cbabf089e637e57f6f344902c9467f8f5d7eb7d630d40a450568cc4a3506e |