Skip to main content

A tool that automatically renames scientific paper PDF files based on their titles. It scans the PDF content to detect the paper’s title and uses it to generate a clean, meaningful filename.

Project description

Scientific Paper Rename (sci-paper-rename)

Tired of messy filenames for all your scientific papers? sci-paper-rename is here to help! This handy command-line tool automatically renames your PDFs using their actual paper titles — no more guesswork or manual renaming.

sci-paper-rename

Just run it on your folder of papers, and watch it tidy up your files with neat, meaningful names. Easy, fast, and stress-free!

Introduction

Scientific Paper Rename (or sci-paper-rename, for short) is a command-line tool that makes organizing your scientific papers a breeze. It scans each PDF to find the paper’s title and then renames the file to match — so your folders stay neat and easy to navigate.

Approach

sci-paper-rename looks for the title in two places:

  1. PDF Metadata: If the PDF was carefully created, the title might be stored in its metadata.
  2. Largest Font on First Page: If metadata is unavailable or unreliable, the tool scans the first page of the paper, looking for a sentence with the largest font size, assuming it's the title.

If both methods succeed, the user is prompted to choose which title to use.

Dependencies

The current version depends on Python 3.11.6 and PyMuPDF 1.26.0. Please make sure to have them installed before running the package!

If your version doesn't match, use pyenv to install Python version 3.11.6.

Installation

You can install sci-paper-rename easily with pip:

From PyPI

pip install sci-paper-rename

From GitHub repository (latest development version)

pip install git+https://github.com/heversonbr/sci-paper-rename.git

Or, if you prefer to install locally after cloning

git clone https://github.com/heversonbr/sci-paper-rename.git
cd sci-paper-rename
python3 -m venv .venv
source .venv/bin/activate
pip install .

Usage

After installation, use the tool from the command line.

Rename all files in a directory

python3 sci-paper-rename.py </path/to/target_directory>

Rename a single PDF file

sci-paper-rename /path/to/specific-paper.pdf

Show help message

sci-paper-rename --help

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

sci_paper_rename-1.0.3.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sci_paper_rename-1.0.3-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file sci_paper_rename-1.0.3.tar.gz.

File metadata

  • Download URL: sci_paper_rename-1.0.3.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for sci_paper_rename-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ecd936a245710f9c4df911c15321f2d816dbe8f2934e049cf02f6011b78a001e
MD5 c9a5ad7e7b632e8762d2a0e7e4d2b7da
BLAKE2b-256 842df87d78b66e195e0d26450f201b385a1ad8d3acfbd9cabec62b4f9b9474e0

See more details on using hashes here.

File details

Details for the file sci_paper_rename-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sci_paper_rename-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79ea2e341f0ada4417fe9775e04474bc18f240b6a47d942a9f6f351c2dcd5587
MD5 48a7a9b51a2ecc161ef26e03b8cc1639
BLAKE2b-256 d1bcae70ed246e8c1b9ebdf1d045e5cfdc20b78d171699130ae3c0ddf061da55

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