Skip to main content

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

The MIT 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)

Source distribution for elifetools 0.53.0
File Size Uploaded
elifetools-0.53.0.tar.gz 94.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elifetools 0.53.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.53.0 This release

2 release files

0.52.0

2 release files

0.51.0

2 release files

0.50.0

2 release files

0.49.0

2 release files

0.45.0

2 release files

0.44.0

2 release files

0.42.0

2 release files

0.40.0

2 release files

0.38.0

2 release files

0.37.1

2 release files

0.37.0

2 release files

0.33.1

2 release files

0.32.0

2 release files

0.31.0

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.26.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.17.0

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page