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.53.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.53.0.tar.gz | 94.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elifetools-0.53.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 161.7 kB
Release files / elifetools-0.53.0.tar.gz
| Download URL | elifetools-0.53.0.tar.gz |
|---|---|
| Size | 94.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e27ccc4075962cb5d6a08cdb3484e093174d966c6869d47b543c0e5aacf6a5d
|
|
BLAKE2b-256 checksum How to use checksums |
acee5f3762f47dd70736d8c7eb6a142a5ee6ad91d374edaac562168784e058a1
|
| 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.53.0-py3-none-any.whl
| Download URL | elifetools-0.53.0-py3-none-any.whl |
|---|---|
| Size | 67.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
890ae33df321b26ba15fc73e81a8f3b656d20ee592a3608dbd076fef8760041e
|
|
BLAKE2b-256 checksum How to use checksums |
488f2eeb9ee8adc339403d74cef1fa1c4309686373b51565a74fd33875828fd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|