Skip to main content

Generate publication per year plots for academic authors

Project description

Paper Per Year

A command-line tool to visualize an academic author's publications per year using data from Google Scholar.

Note

Numbers are not everything and number of published papers is certainly no metric for academic success.

Installation

You can run this using uvx without installation.

uvx paper-per-year [OPTIONS] AUTHOR_NAME

Alternatively, you can install it using pip.

[uv] pip install paper-per-year

Usage

paper-per-year [OPTIONS] AUTHOR_NAME

For example:

# Save plot in current directory with default style
paper-per-year "Adam Dziedzic"

# Save plot in a specific directory with custom style
paper-per-year "Adam Dziedzic" -o ~/Documents/plots --style whitegrid --context poster

Example plot for Adam Dziedzic

The command will:

  1. Search for authors matching the provided name
  2. Display a list of found authors with their affiliations
  3. Prompt you to select the correct author
  4. Generate a beautiful PDF plot showing the number of publications per year
  5. Save the plot as Author_Name.pdf in the specified directory
  6. Output year-count data to stdout for potential piping

Options

  • -o, --output-dir: Directory to save the output PDF (default: current directory)
  • --style: Plot style (choices: darkgrid, whitegrid, dark, white, ticks; default: darkgrid)
  • --context: Plot scaling context (choices: paper, notebook, talk, poster; default: talk)

Plot Features

  • Beautiful Seaborn-styled visualizations
  • Publication counts displayed on top of each bar
  • Automatically adjusted layout and spacing
  • High-resolution output (300 DPI)
  • Multiple style options for different use cases

Output Format

The command outputs the year-count data to stdout in a tab-separated format:

YEAR    COUNT
2020    5
2021    3
2022    7
...

This allows for easy piping to other commands, for example:

# Get total publication count
paper-per-year "Adam Dziedzic" | awk '{sum += $2} END {print sum}'

# Find the most productive year
paper-per-year "Adam Dziedzic" | sort -k2 -nr | head -n1

Requirements

  • Python 3.13 or higher
  • scholarly
  • numpy
  • matplotlib
  • seaborn
  • click

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

paper_per_year-0.1.3.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

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

paper_per_year-0.1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file paper_per_year-0.1.3.tar.gz.

File metadata

  • Download URL: paper_per_year-0.1.3.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for paper_per_year-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5acb2fa08bd145b304bb4e59fbc73845c1b4b1600c4d7ddc75279fad8f2ac4b1
MD5 7e2c8acccf0ac7a72334fa402e8d035b
BLAKE2b-256 d496fd2d2691559f926abbc29e77fe8d70c1891465636745872a31ef61692fc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for paper_per_year-0.1.3.tar.gz:

Publisher: publish.yml on dwahdany/paper-per-year

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file paper_per_year-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: paper_per_year-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for paper_per_year-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b9c0ace0bc2526e68c350a67302d1f502ce9aa08cbb3a0032b17d70552c2d04
MD5 8f130483667e477e8d9952d3fdd498a1
BLAKE2b-256 8969570be42b1456301fb8ca55b1ccac215ba59e6f63659eca8e4efe83697548

See more details on using hashes here.

Provenance

The following attestation bundles were made for paper_per_year-0.1.3-py3-none-any.whl:

Publisher: publish.yml on dwahdany/paper-per-year

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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