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
Metadata
Release files for pmc-mapper 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pmc_mapper-1.0.3.tar.gz | 6.1 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pmc_mapper-1.0.3-py3.7.egg | Legacy Egg format | - | - | Details |
| pmc_mapper-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 kB
Release files / pmc_mapper-1.0.3.tar.gz
| Download URL | pmc_mapper-1.0.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b84ef2d726e27beb66c07525c57ac789ba8a43975862901a39b78911b0f9e243
|
|
BLAKE2b-256 checksum How to use checksums |
6eb7fb938dada2be109ea31cec862aedbb824a57d60f00ebc7d370973fd5629d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
|
Release files / pmc_mapper-1.0.3-py3.7.egg
| Download URL | pmc_mapper-1.0.3-py3.7.egg |
|---|---|
| Size | 13.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8eaee0d81d576c5def9925dd2ff0648266f10571f63c65dfbbd0406692cbc4bb
|
|
BLAKE2b-256 checksum How to use checksums |
1c97095d7874c61e106ec2c6e641ea6a8b3843736e988e7f78ae40bc33741026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
|
Release files / pmc_mapper-1.0.3-py3-none-any.whl
| Download URL | pmc_mapper-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79004925cce2e9ea15c9b00461e91b3431681a7947081f61943960397da5bbc5
|
|
BLAKE2b-256 checksum How to use checksums |
d1f72a10e6cf3f6641c8e2d7f62de1f336fbd325ab680e969497fb408dda2cd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
|