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 first page.

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

The program uses Claude, and therefore requires an ANTHROPIC_API_KEY environment variable.

Development

cd ~/github/refren
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.5.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.5.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refren-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 53b036b88901f5a86436f2f703df8ad581278cf78bfcaea5f6fff1b5bb203bed
MD5 d49cccec6fe1883236badc5cdb36842e
BLAKE2b-256 b90d4b8e1e4529354391d884ac54a4e8692d95172c0fac9082b7815c8159fc58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refren-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 308a20a91d3ebdd7d27dbb2ffa3484cc054d1eb0c36b91fba6e138963ad7ee3a
MD5 67dc9bf89bc3cd87cbd92ce7f7eccf1f
BLAKE2b-256 ed8f9f2ffc9df0d6823cd9acae8851851562ce451635f334451a28126e1fcca9

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