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
Metadata
Release files for elifetools 0.54.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elifetools-0.54.0.tar.gz | 94.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elifetools-0.54.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 162.0 kB
Release files / elifetools-0.54.0.tar.gz
| Download URL | elifetools-0.54.0.tar.gz |
|---|---|
| Size | 94.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ea81fdc70842a56ea7a14786bff215dfaff7e5e754eef56abf9330f15326748
|
|
BLAKE2b-256 checksum How to use checksums |
f6cc4f7463de8deb67798e9523eb1e43843283a3f44965f485f491528e5112a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / elifetools-0.54.0-py3-none-any.whl
| Download URL | elifetools-0.54.0-py3-none-any.whl |
|---|---|
| Size | 67.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5465bea0662c902765e8149eb132450a4b154ca9ddcd11165dd6a3de903bb435
|
|
BLAKE2b-256 checksum How to use checksums |
d62ddabb290b91e6583eabd882163bc8943da208c55b83fc9d8d7ac065054853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|