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.49.0.tar.gz (94.0 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.49.0-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

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

Hashes for elifetools-0.49.0.tar.gz
Algorithm Hash digest
SHA256 4aa9316af1ff97b3ef851593f29ef5ece35116c1b9420f5279f4d37311e39d9b
MD5 c621976307cd09d7c52d0940b23dea9e
BLAKE2b-256 954e5df52e9191c5569b32585e1715c62645059793c3df6bad3519c2a84d2631

See more details on using hashes here.

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

Hashes for elifetools-0.49.0-py3-none-any.whl
Algorithm Hash digest
SHA256 134886b6b862cbaa090e922f95b733ed5029bd6de24ea3725f2e54336cc35dfc
MD5 9495d69fe073056b0f47399fbe05956a
BLAKE2b-256 70044c0cd618de253fe888b8b7156be35d2bd2eb1d46a035f376c20b39a93d4a

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