Skip to main content

Utility library for academic work — converts RIS and NBIB reference files to BibTeX

Project description

univtil

A Python utility library for academic work, focused on processing bibliographic reference files.

Features

  • Parse RIS (Research Information Systems) files and convert them to BibTeX
  • Parse NBIB (PubMed/NLM) files and convert them to BibTeX
  • Handles multiple entries per file
  • Automatic BibTeX entry-type mapping (article, book, inproceedings, etc.)
  • Auto-generated citation keys from author name and year

Installation

Clone the repository and add it to your Python path:

python -m pip install univtil

Usage

RIS → BibTeX

from univtil.bib.ris import RIS, rislist

# Single entry
with open("paper.ris") as f:
    text = f.read()

ref = RIS(text)
print(ref.tobib())

# Multiple entries in one file
refs = rislist(text)
for ref in refs:
    print(ref.tobib())
    print()

NBIB (PubMed) → BibTeX

from univtil.bib.nbib import NBib, nbiblist

with open("results.nbib") as f:
    text = f.read()

# Single entry
ref = NBib(text)
print(ref.tobib())

# Multiple entries
refs = nbiblist(text)
for ref in refs:
    print(ref.tobib())
    print()

Supported entry types

Source type BibTeX entry
Journal article / Review @article
Book @book
Book chapter @inbook
Conference paper @inproceedings
Thesis @phdthesis
Technical report @techreport
Other @misc

License

MIT License — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

univtil-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

univtil-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file univtil-1.0.0.tar.gz.

File metadata

  • Download URL: univtil-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for univtil-1.0.0.tar.gz
Algorithm Hash digest
SHA256 30c2eb6375fd094baca20b8923b27c6fb32a902be62a69794414550e2174197c
MD5 f4e6341c137573696f44c23ba727c599
BLAKE2b-256 d37cc02ce91960020525dccb375c55b649e623ce348e8da961a4c94b028a76ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for univtil-1.0.0.tar.gz:

Publisher: publish.yml on qnilix/univtil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file univtil-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: univtil-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for univtil-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08022c6653dd1a6d223b1acfd3a7b405d9965778d49736d1d9869f9a10a052a4
MD5 c8373d576961e4e997c2f48f2f687f49
BLAKE2b-256 f4da1b8dedb97ef887118f6da8caea07da4888fec90e87d43575d53038e5d0f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for univtil-1.0.0-py3-none-any.whl:

Publisher: publish.yml on qnilix/univtil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page