pybtexnbib
A pybtex plugin for NBIB/Medline/PubMed files. For information on the file format, see the documentation at the National Library of Medicine.
Installation
Install pybtexnbib from PyPI using pip:
pip install pybtexnbib
Command-line usage
To convert an NBIB file to another format, use the pybtex-convert command. For example:
pybtex-convert bibliography.nbib bibliography.bib
The extension of the output file must be supported by pybtex or an associated plugin.
To format an NBIB file into a human-readable bibliography, use the pybtex-format command. For example:
pybtex-format bibliography.nbib bibliography.txt
For more information, see the documentation for pybtex.
Programmatic usage
NBIB files can be formatted into a human-readable bibliography as a string as follows:
from pybtex import format_from_file
bibliography_string = format_from_file(
"path/to/file.nbib",
style="plain",
output_backend="plaintext",
bib_format="nbib",
)
Multiple NBIB files can be formatted in a similar way:
from pybtex import format_from_files
bibliography_string = format_from_files(
["path/to/file1.nbib", "path/to/file2.nbib"],
style="plain",
output_backend="plaintext",
bib_format="nbib",
)
By giving "suffix" as the argument to bib_format, NBIB files can be combined with bibliography files of other formats (such as BibTeX or RIS):
from pybtex import format_from_files
bibliography_string = format_from_files(
["path/to/file1.nbib", "path/to/file2.bib", "path/to/file3.ris"],
style="plain",
output_backend="plaintext",
bib_format="suffix",
)
The RIS parser comes from pybtexris. Parsers for the files for other formats need to be registered on the pybtex.database.input.suffixes entry point as discussed pybtex plugin documentation.
For more information on programmatic use of pybtex, see the documentation of the Python API of pybtex.
Credit
Robert Turnbull (Melbourne Data Analytics Platform, University of Melbourne)
Metadata
Release files for pybtexnbib 0.2.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 | |
|---|---|---|---|---|
| pybtexnbib-0.2.0.tar.gz | 7.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybtexnbib-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / pybtexnbib-0.2.0.tar.gz
| Download URL | pybtexnbib-0.2.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
840fff214e7df96ad515520744d76c461a37e756ade067bb25ddd61ce3982b57
|
|
BLAKE2b-256 checksum How to use checksums |
e084cd7b2e72dd26e5bfdddb0968997d2e4f4ed31324179acee19f0d080e5996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.1 Darwin/25.5.0
|
Release files / pybtexnbib-0.2.0-py3-none-any.whl
| Download URL | pybtexnbib-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05b7608e1a98a2dbdb3979f4cd4bff03bfdd5593f1b78f7675124b285963b0b4
|
|
BLAKE2b-256 checksum How to use checksums |
5d5b18adbdb35672ed8089c0748cd1026dde2708e4265f99119b245389b02264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.1 Darwin/25.5.0
|
Security for pybtexnbib 0.2.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.