Metapub is a Python library that provides python objects fetched via eutils that represent papers and concepts found within the NLM.
PubMedArticle / PubMedFetcher
Basic usage:
fetch = PubMedFetcher()
article = fetch.article_by_pmid('123456')
print article.title
print article.journal, article.year, article.volume, article.issue
print article.authors
MedGenConcept / MedGenFetcher
Basic usage:
fetch = MedGenFetcher()
concept = fetch.concept_by_uid('336867')
print concept.name
print concept.description
print concept.associated_genes
print concept.modes_of_inheritance
These objects abstract some interactions with pubmed, and intends to encompass as many types of database lookups and summaries as can be provided via Eutils / Entrez.
Metapub relies on the very neat eutils package created by Reece Hart, which you can check out here:
http://bitbucket.org/uta/eutils
This library is in its very early stages and there’s a lot that may change, and quite a bit planned for implementation in 2014-2015.
Feel free to use the library with confidence that each released version is well tested – and in a couple of cases, some of its code is already in production – but until (say) version 0.5, don’t expect consistency between versions.
YMMV, At your own risk, etc.
–Naomi Most (@nthmost)
Metadata
Release files for metapub 0.1.0
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 |
|---|---|---|---|---|
| metapub-0.1.0.tar.gz | 17.2 kB | Without provenance | Details for metapub-0.1.0.tar.gz |
Release files / metapub-0.1.0.tar.gz
| Download URL | metapub-0.1.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d69f7cd632a5c349746f3e71cab429b65f4a7914f62a4db9bb729ea739e6d64f
|
|
BLAKE2b-256 checksum How to use checksums |
c9a1b41ffc09abeef1045c6df5976465faf76c4ddaca1310dd0f86e8134066b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for metapub 0.1.0
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.