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.16.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.16.0
File Size Uploaded Provenance
refren-0.16.0.tar.gz 13.5 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.5 MB

Release files / refren-0.16.0.tar.gz

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

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

Download URL refren-0.16.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1be71528df5fcdb1b3a3b3325a9704270f939119f06aff1bd7d8c2239832d4c
BLAKE2b-256 checksum
How to use checksums
3b5009b81d992418a562ade128e9d0fc11c21bba20cce8168f8d839aa5de8f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for refren 0.16.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