Skip to content

About

πŸ“š A CLI tool to standardize article PDF filenames in a directory using LLMs (Gemini API) for semantic extraction. Keep your sources organized, keep your articles *standard*! ✨

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

8 Commits

Folders and files

Repository files navigation

πŸ“š Standardify Articles

License: MIT Python Version uv

A lightweight CLI tool to automatically rename academic PDF articles into a standardized format using LLMs (Gemini API) for semantic metadata extraction.

Keep your sources organized, keep your articles standard! ✨


πŸ“„ Output Filename Schema

[publishing_year]_[main_author_surname]['EtAl']_[title_capitalized]_[venue_acronym].pdf

Example

  • Original: document_final_v2.pdf
  • Renamed: 2023_SmithEtAl_AttentionIsAllYouNeed_NeurIPS.pdf

πŸš€ Installation

Install globally using uv:

uv tool install standardify-articles

To update to the latest version at any time:

uv tool install standardify-articles --force

πŸ”‘ API Key Configuration

The tool uses the Gemini API. You can supply your API key in any of the following ways (resolved in order):

  1. CLI Flag:

    standardify-articles --api-key "your-gemini-api-key"
  2. Environment Variable:

    export GEMINI_API_KEY="your-gemini-api-key"
  3. User Config File: Create ~/.config/standardify-articles/.env:

    GEMINI_API_KEY="your-gemini-api-key"

βš™οΈ Usage

Navigate to a folder containing article PDFs and run:

# Process current directory
standardify-articles

# Process a specific directory
standardify-articles /path/to/pdf/folder

# View help and options
standardify-articles --help

πŸ“œ License

Distributed under the MIT License.

About

πŸ“š A CLI tool to standardize article PDF filenames in a directory using LLMs (Gemini API) for semantic extraction. Keep your sources organized, keep your articles *standard*! ✨

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages