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.2.tar.gz
(10.5 kB
view hashes)
Built Distributions
elifetools-0.1.2-py2.7.egg
(25.2 kB
view hashes)
Close
Hashes for elifetools-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9eae0e167d444fb2a1796a0202c23095d02e99ca82672871ef29c1475e65907 |
|
MD5 | 075369d96afef874c890652f1b4aa66c |
|
BLAKE2b-256 | cbf8cbd77d2f52de9069be4ca6275fae1dcf3c18c6291460ba2a658fedda26a5 |