Installation
pip install pub.tools
To use this tool you are advised to create an Entrez account and use the associated email and API key.
from Bio import Entrez
Entrez.email = "myemailhere@imsweb.com"
Entrez.tool = "pub.tools"
Entrez.api_key = "mykeyhere"
Tools available:
- entrez - a wrapper API for BioPython
- citations - creates citations for 6 different types using IMS standards
- date - formats dates into our desired format
Citations
Citations are based on a standard defined by PubMed https://www.ncbi.nlm.nih.gov/books/NBK7256/. For some publication types, passing the italicize parameter with a True value will return HTML with italic tagged journals or conference names.
You can easily create a citation from a retrieved PubMed record:
>>> from pub.tools import entrez
>>> from pub.tools import citations
>>> if pub := entrez.get_publication(pmid=12345678):
>>> citations.publication_citation(publication=pub)
Alternatively, you can pass one of the following to the citation function:
- An instance of one of the dataclasses in schema.py
- Keyword arguments directly
Journals
The journals module uses the PMC source file https://www.ncbi.nlm.nih.gov/pmc/journals/?format=csv to construct a library of journals keyed by abbreviation or full title.
Metadata
Release files for pub.tools 5.3.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 |
|---|---|---|---|---|
| pub.tools-5.3.0.tar.gz | 337.3 kB | Without provenance | Details for pub.tools-5.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pub.tools-5.3.0-py3-none-any.whl | Python 3 | none | any | Details for pub.tools-5.3.0-py3-none-any.whl |
Total release size: 681.2 kB
Release files / pub.tools-5.3.0.tar.gz
| Download URL | pub.tools-5.3.0.tar.gz |
|---|---|
| Size | 337.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de43c2903d5ade2eb96d4a93594b6fac3f9fb786cd6dde7a56dab81ec88d7513
|
|
BLAKE2b-256 checksum How to use checksums |
ba21b7bebe14272d37a43f15fa30e2292f96f00726865f27fa09f874ed1a9af4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / pub.tools-5.3.0-py3-none-any.whl
| Download URL | pub.tools-5.3.0-py3-none-any.whl |
|---|---|
| Size | 343.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d4e09b36032eb8ea432d15ed61ef0bd6a316f5778b363e558fd84ff79de9751
|
|
BLAKE2b-256 checksum How to use checksums |
397d88af5bf7599fc21e2b5c2a78fe174626713dacfd314c4bda14a228eac3fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for pub.tools 5.3.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.