Skip to main content

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

The MIT License

Project details


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.50.0.tar.gz (94.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elifetools-0.50.0-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file elifetools-0.50.0.tar.gz.

File metadata

  • Download URL: elifetools-0.50.0.tar.gz
  • Upload date:
  • Size: 94.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for elifetools-0.50.0.tar.gz
Algorithm Hash digest
SHA256 9fb33a3f64352afa577c66c2d3793b5e0a316e63d17b0f2d057f08bf511e53be
MD5 3195b139eabfe919e350b613a47f4b6f
BLAKE2b-256 9bd600e0be2122c23e28b435a11641c5a4fdb3564e80bdabd20e49310820b62c

See more details on using hashes here.

File details

Details for the file elifetools-0.50.0-py3-none-any.whl.

File metadata

  • Download URL: elifetools-0.50.0-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for elifetools-0.50.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f6c8fdcd444050a9cae99dc3816608793b5a14bd0d65b2985fcc626c585562d
MD5 da0f62678839349b84693793be8da8de
BLAKE2b-256 788ef9f86e6bf3336c0be062b025b5b82ae4b76e73056c4ca7246b69b9ef1693

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page