Skip to main content

Scientific manuscript PDF file renamer

Project description

refren: scientific manuscript PDF renamer

Renames a PDF file - assumed to contain a scientific manuscript - to FirstAuthor_SecondAuthor_JournalAbbrev_Year.pdf using Claude AI to extract bibliographic metadata from the PDF

Usage

refren <pdf_file> [--remove]

--remove deletes the original PDF after creating the renamed copy.

Example

$ refren 1758-2946-6-10.pdf 
  (calling Claude API...)
  First author last name : Krstajic
  Second author last name: Buturovic
  Journal                : Journal of Cheminformatics -> J Cheminform
  Year                   : 2014

  1758-2946-6-10.pdf  ->  Krstajic_Buturovic_JCheminform_2014.pdf
Copied to: Krstajic_Buturovic_JCheminform_2014.pdf

Install

$ pipx install refren # Linux, Mac

The program uses Claude API, and therefore requires an ANTHROPIC_API_KEY environment variable. If you don't have the API key, please read SETUP.md for instructions

Development

cd ~/github/refren
rm -f dist/*
uv run python -m build
uv run twine upload dist/*

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

refren-0.6.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

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

refren-0.6.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file refren-0.6.0.tar.gz.

File metadata

  • Download URL: refren-0.6.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for refren-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2e87ea6558952b13d0ca4e0dd1bf921d29490c42c14511ab87d1498ab2fa4cb2
MD5 d729f87f08220c256cf55d7ced199d59
BLAKE2b-256 1bb492cd67dd1c21ab4c45e27dcc6c5dc4f69f7319f1f1c54db0aab533a57cea

See more details on using hashes here.

File details

Details for the file refren-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: refren-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for refren-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca15c21323ea9a2c0bfc8e726602f838e9d81ea2d5fcbd96afd496381ebe854
MD5 f8125220897c9c74014b1d9918c40384
BLAKE2b-256 8649f4c32cb79082bb434191534a239336a60e35798a125d9271827f7b5ffb61

See more details on using hashes here.

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