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
- Installation
- Usage
- Installing the shortcuts in the right-click context menu of Windows
- Contributing
- License
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pdf_renamer-1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef57651664918435b475985335e12f121dca21db6aa69eceef92e36f05a54303 |
|
MD5 | 0920f467cd22911a02a9e5066862e1d7 |
|
BLAKE2b-256 | c6ae3b9b23b59230d760e6923962e7a901ff9878949a5a22289a3d5b269d6067 |