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.

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 (once published)

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.2.tar.gz (22.0 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.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sci_paper_rename-1.0.2.tar.gz
  • Upload date:
  • Size: 22.0 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.2.tar.gz
Algorithm Hash digest
SHA256 5e5f3462afc41e0cf8e6105d8a53699928944c54fcfeae3842f5401e30dce007
MD5 d6233d5b1ff656b496fe8c13caf611c6
BLAKE2b-256 05e1e9fe307c3a7c77a64aedd04c42fb919c68b8e971eb194278463b7ed6d565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sci_paper_rename-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ebd0867a01cbc1dc50910481743b76e7e3fafdd86f2aef9e66edaa5a3831e77
MD5 255422fb9fb067ee05ad2ca6bf07f25b
BLAKE2b-256 606ad29803d2020fd635b75f89933e73ee364d84bbe8529209734567b5276ebe

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