Skip to main content

A python library/command-line tool to automatically rename the pdf files of scientific publications by looking up the publication metadata on the web.

Project description

pdf-renamer

pdf-renamer is a Python command-line tool to automatically rename the pdf files of a scientific paper, or in general any publication which can be associated to a DOI or other identifiers (e.g. arXiv). It can be used to rename single files or to scan entire folders and sub-folders. The format of the filename can be specified by the user by choosing among several tags. Besides command-line operation, it can also be used as a library from your Python project.

Table of Contents

Description

pdf-renamer uses the libraries pdf2doi and pdf2bib to extract bibliographic data of a paper starting from a .pdf file. The retrieved data can then be used to automatically rename pdf files with a custom format (e.g. 'Year - Journal - Authors - Title').

Installation

Pip Package

Use the package manager pip to install pdf-renamer.

pip install pdfrenamer==1.0rc1

The executable will be installed in certain directory whose path depends on the type of Python installation and the operating system. Make sure that this directory is in the PATH variable of your operating system (for standard python installations under Windows this should be already the case). Check how to do add the folder to the PATH variable for Windows, Mac and Linux.

Under Windows, it is also possible to add shortcuts to the right-click context menu.

Usage

pdf-renamer can be invoked directly from the command line, without having to open a python console. The simplest command-line invokation is

$ pdfrenamer 'path/to/target'

where target is either a valid pdf file or a directory containing pdf files.

Type

$ pdfrenamer --h

for a list of all the possible optional commands.

[TO FINISH]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

pdf-renamer-1.0rc1.tar.gz (224.0 kB view hashes)

Uploaded Source

Built Distribution

pdf_renamer-1.0rc1-py3-none-any.whl (225.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page