Skip to main content

License

refren: scientific manuscript PDF renamer

Scenario: when you download a scientific paper from the Internet, the PDF file is usually named someting cryptic like 2506.19540v1.pdf

refren renames it to FirstAuthor_SecondAuthor_JournalAbbrev_Year.pdf using Claude AI to extract bibliographic metadata from the PDF

Usage

refren <pdf_file> [--remove] [--supplement]

--remove deletes the original PDF after creating the renamed copy.

--supplement also searches the web for the paper's supplementary material and downloads it. When used, refren creates a FirstAuthor_SecondAuthor_JournalAbbrev_Year/ folder and puts both the renamed PDF and the downloaded supplement inside it (a fresh copy is made even if a renamed copy already exists elsewhere).

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

$ refren 1758-2946-6-10.pdf --supplement
  (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/Krstajic_Buturovic_JCheminform_2014.pdf

  (searching the web for supplementary material...)
  Supplement saved to: Krstajic_Buturovic_JCheminform_2014/
    13321_2014_Article_10_MOESM1_ESM.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/*

Metadata

Release files for refren 0.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refren 0.15.0
File Size Uploaded Provenance
refren-0.15.0.tar.gz 13.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for refren 0.15.0
File Interpreter ABI Platform
refren-0.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 MB

Release files / refren-0.15.0.tar.gz

Download URL refren-0.15.0.tar.gz
Size 13.5 MB
Tags Source
SHA-256 checksum
How to use checksums
8cdb42985d82b31df160b25d941a4590bba13e8097dee2da755072546228ef48
BLAKE2b-256 checksum
How to use checksums
dbd2b0c09bc24cff39bb8e9d6963770eb6a12ae1170a051ff11a7d8ad8ea26ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / refren-0.15.0-py3-none-any.whl

Download URL refren-0.15.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e846b22b5f02be09f21a106d13dddefc79a500533e0185c7bf094115c9a6349
BLAKE2b-256 checksum
How to use checksums
7477cff470fb92559dff1f70eba3009063363450f9dc072c52f285b65f0ecf6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for refren 0.15.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page