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

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.10.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.10.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refren-0.10.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.10.0.tar.gz
Algorithm Hash digest
SHA256 d673a395d3c40c780f81df5c13343f9c6c5e2779d1a24b5a8cb06752a91838f0
MD5 873fac8a423411d5874b02b3c1bcd193
BLAKE2b-256 c96ea218dbb9ae65bf83896036226aa7b6a1c26161108d0723b48b574a606b69

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for refren-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69c9a47695cf735d13bd3b145234e6716a53bafbcd89aa30ba23f9385934bf97
MD5 2c133fd6a7a0653a830f695de4455616
BLAKE2b-256 d3ffca36ee36e39c5253a3effb31370c3d3ba8a18f50a340bee153fdfd34f7e7

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