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.11.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.11.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refren-0.11.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.11.0.tar.gz
Algorithm Hash digest
SHA256 85f863770510bccb06326d614f25a9f4bc26dc7dffb2b1ef882ed14c27cd786d
MD5 b96bfa2cdc6a81ca2d8e533d71c77f5d
BLAKE2b-256 e699a0b9d3081d0747377373ac72fd70d2afca2b2a451edc628e70f981850e81

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for refren-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d5bdca1ce2bedb7eea7ce6466f6041eed5128a2af12b67a2658ed2179e3216c
MD5 e724c200c02155672a4d8065a7f6d1b7
BLAKE2b-256 5ec2e34712bbd942aa596050b485437c9b1c0316aac39c068c4113a6701dc6a9

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