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('tests/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 tests
or you can run tests with coverage:
$ coverage run -m unittest discover 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.42.0.tar.gz
(92.2 kB
view details)
Built Distribution
File details
Details for the file elifetools-0.42.0.tar.gz
.
File metadata
- Download URL: elifetools-0.42.0.tar.gz
- Upload date:
- Size: 92.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ece7252ae89655f9823e02b1a7c791b51f08eae647ab22bf24751abb4f6368ce |
|
MD5 | f7fc740d90b45b4ea57784c529b662a9 |
|
BLAKE2b-256 | e02d0ca5b965cda96a38b8ca147aa4fa23f4dfdb0d4cf69723943fe38fdd4b89 |
File details
Details for the file elifetools-0.42.0-py3-none-any.whl
.
File metadata
- Download URL: elifetools-0.42.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd07404e09fe2536a00fc245ea6eb23cf69f077ddb4a997df28908db0abcf001 |
|
MD5 | 278ee6d89ac5b212731fe3ff938548e2 |
|
BLAKE2b-256 | 0bb98982dca3cffb8eefa61d067741f069b4c07e0b7d51eda2652e6696cbe035 |