pybtexris
A pybtex plugin for working with RIS files.
Installation
Install pybtexris from PyPI using pip:
pip install pybtexris
Command-line usage
To convert an RIS file to another format, use the pybtex-convert command. For example:
pybtex-convert bibliography.ris bibliography.bib
The extension of the output file must be supported by pybtex or an associated plugin.
To format an RIS file into a human-readable bibliography, use the pybtex-format command. For example:
pybtex-format bibliography.ris bibliography.txt
For more information, see the documentation for pybtex.
Programmatic usage
RIS 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.ris",
style="plain",
output_backend="plaintext",
bib_format="ris",
)
Multiple RIS files can be formatted in a similar way:
from pybtex import format_from_files
bibliography_string = format_from_files(
["path/to/file1.ris", "path/to/file2.ris"],
style="plain",
output_backend="plaintext",
bib_format="ris",
)
So that RIS files can be combined with bibliography files of other formats (such as BibTeX), pybtexris also adds SuffixParser to the list of plugins which pybtex can use. The user just needs to give suffix as the argument to bib_format.
from pybtex import format_from_files
result = format_from_files(
["path/to/file1.ris", "path/to/file2.bib"],
style="plain",
output_backend="plaintext",
bib_format="suffix",
)
The parsers for the files for other formats need to be registered on the pybtex.database.input.suffixes entry point as discussed pybtex plugin documentation. To combine with NBIB citation files, please use the pybtexnbib plugin.
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 pybtexris 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 | Actions |
|---|---|---|---|---|
| pybtexris-0.2.0.tar.gz | 9.2 kB | Without provenance | Details for pybtexris-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybtexris-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pybtexris-0.2.0-py3-none-any.whl |
Total release size: 19.6 kB
Release files / pybtexris-0.2.0.tar.gz
| Download URL | pybtexris-0.2.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b55aecb7a2370bb98b592befffc776e8d2d05ad62b8754dfa23070cb2d87c4f
|
|
BLAKE2b-256 checksum How to use checksums |
4eb83e294306eafb24d547e888f8b575a1eed9a0ecca6a9f7a327c97f214ed5c
|
| 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 / pybtexris-0.2.0-py3-none-any.whl
| Download URL | pybtexris-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7bf74b5d974b2fed6ac3e701595e02863112ce51e081f1bc68aa6bc309a6ade
|
|
BLAKE2b-256 checksum How to use checksums |
12cc613064b2cd188b6a94f329e269400c9a2c05ca48827526bb60749762cf63
|
| 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 pybtexris 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.