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.8.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.8.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for refren-0.8.0.tar.gz
Algorithm Hash digest
SHA256 192aea3884d3f51cbb69cdb610bd03387a5403c1d22b87e72cae45fbfe2753cf
MD5 e9627b8822f0c3cda8d0f10ccbd1191b
BLAKE2b-256 4c80aa1df72b9103eb9b3c395a157ed0a8c19440bc7fad54a18121d094d3d431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refren-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ddaaf0405620a5a3bddccbb93d04b751fe60e5f8309452bdd6b40b8f1b83a5a
MD5 ea9c0caac52c67c797e5955d9a96868e
BLAKE2b-256 053ee49e72aea0e41e949d6f003631546e963d128e0e94bb9faadd0d48df27f6

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