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.51.0.tar.gz (94.3 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.51.0-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for elifetools-0.51.0.tar.gz
Algorithm Hash digest
SHA256 9d538c6b1f84f34794d08065b74c7550717e710a857ffc99596af85321afbb75
MD5 10974936daedb3aa89235ccb04cae00d
BLAKE2b-256 b975f0d61829650b566f56c53b0fd86b81455abd2ada5c97d2b8bd8a1ed328ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elifetools-0.51.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.51.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7073008de1e5c204ae06f191e2e4fed40843d104c0eda8162baea52b6bab716f
MD5 b1340939cad6c652dcadf4efb8742185
BLAKE2b-256 1dd9005f1a7f5be0a147fb6ef7f60d3c79af46d96a4f8740565f81cc08760333

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