A Python Library that map PubMed Central XML to Python object
Project description
pmc-mapper
A Python Library that map PubMed Central XML to Python object.
installation
pip install pmc-mapper
usage
library
from pmc_mapper import Article
# parse file
at1 = Article.from_file('PMC8353774.nxml')
at2 = Article.from_pmc_id('PMC8353774')
# journal
print(at2.journal.title)
# output
# BMC Bioinformatics
# article ids
for at_id in at2.ids:
print(f'type: {at_id.type}, value: {at_id.value}')
# output:
# type: pmid, value: 34376148
# type: pmc, value: 8353774
# type: publisher-id, value: 4312
# type: doi, value: 10.1186/s12859-021-04312-3
command line
pmc-mapper -i PMC8353774.nxml -o PMC8353774.jl
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
pmc_mapper-1.0.2.tar.gz
(6.1 kB
view hashes)
Built Distributions
pmc_mapper-1.0.2-py3.7.egg
(13.0 kB
view hashes)
Close
Hashes for pmc_mapper-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24fd0cb2fd60b1ac4509c6bb8a1a0b498beb6a3d20dd044ad585c695f2cc444 |
|
MD5 | 5253493d696090e00f8b10e8596817e7 |
|
BLAKE2b-256 | e37c9701d9017a31dbcc408f0b2dc3bcb81973e46837ccc21798c5db0f4d3a7b |