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.9.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.9.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refren-0.9.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.9.0.tar.gz
Algorithm Hash digest
SHA256 b3182717e7ea18dad79ec867aa048bf5e1ea6c42df4a6c565cb7fd57e7d71be6
MD5 6da6289e4ecdaf07940484936150e258
BLAKE2b-256 7df82dce6a8a181df5d93998344f0c13d96a9d8d64d7e9ca6fd71c0722734b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refren-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f70ed0b30eb058f958749a2107d6e18c54f6a46a6d41590a4cf5561a5534b7c
MD5 3793a1b3534dc37afbdcfd2062629ad9
BLAKE2b-256 cbb289ee8794a7a7c7bd44ff2daba886109847061b8fc77a7c3c2d25e076c460

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