XML parser for PubMed Central (PMC) Database
Installation
python3 -m pip install pmc_xml
Usage
CommandLine
pmc_xml --help
# parse single
pmc_xml PMC6039336
# parse batch
pmc_xml PMC6039336,PMC6031859,PMC6031856
# parse multiple
pmc_xml PMC6039336 PMC6031859 PMC6031856
# save file
pmc_xml PMC6039336,PMC6031859,PMC6031856 -o out.jl
Python
from pmc_xml import PMC_XML_Parser
pmc = PMC_XML_Parser()
for article in pmc.parse('PMC6039336,PMC6031859,PMC6031856'):
print(article) # Article<30003002>
print(article.data) # dict object
print(article.to_json(indent=2)) # json string
print(article.pmid, article.title, article.abstract) # by attribute
print(article['pmid'], article['title'], article['abstract']) # by key
Metadata
Release files for pmc-xml 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 | Provenance | Actions |
|---|---|---|---|---|
| pmc_xml-1.0.3.tar.gz | 7.3 kB | Without provenance | Details for pmc_xml-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pmc_xml-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for pmc_xml-1.0.3-py3-none-any.whl |
Total release size: 15.4 kB
Release files / pmc_xml-1.0.3.tar.gz
| Download URL | pmc_xml-1.0.3.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96af1b62c733c7badf3c4e48e0a61af912f7b73d6abb87868a69ef3c8d32ede1
|
|
BLAKE2b-256 checksum How to use checksums |
0a0e831d68598a9f0487db2f339d6f3156775bd2ca1488b8d1abf191d07820f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / pmc_xml-1.0.3-py3-none-any.whl
| Download URL | pmc_xml-1.0.3-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d07761b69a48804cef4c573746243e469954a1806bd5271f91dfcb0d1ac14d
|
|
BLAKE2b-256 checksum How to use checksums |
4b79594d145a17ce1f85fe380295b17653244548ae0f196d06b2a03830b3a72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for pmc-xml 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.