Skip to main content

Scientific manuscript PDF file renamer

Project description

License

refren: scientific manuscript PDF renamer

Scenario: when you download a scientific paper from the Internet, the PDF file is usually named someting cryptic like 2506.19540v1.pdf

refren renames it 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

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.13.0.tar.gz (2.5 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.13.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refren-0.13.0.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for refren-0.13.0.tar.gz
Algorithm Hash digest
SHA256 254dd32250e44ebae42302fa2d144dc141ba486bbc93fc69a53bc890dfe17681
MD5 71793abef45f90db4bebdd10e303304f
BLAKE2b-256 5b83e9882e0caf8413ad8ea10d4422671385ec433b496be604a095a2e4c5039d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refren-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for refren-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd13649d93c960d1c2433536ed4809817b7562c5de174fffbd608842eafe76b5
MD5 ac435aa1bc4d2babb71557fdbf1094ef
BLAKE2b-256 5efe34ccfe11002d2c77f77301678d02f64f3f7d25a22427400af9d48556ea51

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