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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elifetools-0.49.0.tar.gz.
File metadata
- Download URL: elifetools-0.49.0.tar.gz
- Upload date:
- Size: 94.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa9316af1ff97b3ef851593f29ef5ece35116c1b9420f5279f4d37311e39d9b
|
|
| MD5 |
c621976307cd09d7c52d0940b23dea9e
|
|
| BLAKE2b-256 |
954e5df52e9191c5569b32585e1715c62645059793c3df6bad3519c2a84d2631
|
File details
Details for the file elifetools-0.49.0-py3-none-any.whl.
File metadata
- Download URL: elifetools-0.49.0-py3-none-any.whl
- Upload date:
- Size: 67.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134886b6b862cbaa090e922f95b733ed5029bd6de24ea3725f2e54336cc35dfc
|
|
| MD5 |
9495d69fe073056b0f47399fbe05956a
|
|
| BLAKE2b-256 |
70044c0cd618de253fe888b8b7156be35d2bd2eb1d46a035f376c20b39a93d4a
|