Skip to main content

A Python package for computing bibliometric indices (h-index, g-index, i10-index, and more)

Project description

hindex

A Python package for computing bibliometric indices to measure research impact.

While originally designed for academic citation analysis, these metrics can be applied to any domain where you want to measure impact across a collection of items:

  • Researchers: citations per paper
  • YouTube creators: views per video
  • Musicians: streams per song
  • Writers: sales per book
  • Open source developers: stars per repository

Installation

pip install hindex

Quick Start

import hindex

# Academic: citations per paper
citations = [45, 30, 24, 18, 12, 9, 4, 2, 1]
h = hindex.h_index(citations)  # 5

# YouTube: views per video
views = [1200000, 450000, 380000, 95000, 42000, 8000]
h = hindex.h_index(views)  # 6

Available Metrics

h-index

The maximum value h such that h items have at least h citations/views/etc each.

hindex.h_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 5

Normalized h-index

The h-index divided by a scale factor (e.g., career length) for cross-comparison.

hindex.normalized_h_index([45, 30, 24, 18, 12], scale=10)  # 0.5

i10-index

The number of items with at least 10 citations/views/etc. Used by Google Scholar.

hindex.i10_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 5

g-index

The largest number g such that the top g items have at least g² cumulative citations.

hindex.g_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 12

o-index

The geometric mean of the h-index and maximum citations: sqrt(h * max).

hindex.o_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 15.0

w-index

Counts items meeting escalating thresholds: 1st needs 10+, 2nd needs 20+, 3rd needs 30+, etc.

hindex.w_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 3

e-index

Measures excess citations in the h-core beyond the h-index requirement.

hindex.e_index([45, 30, 24, 18, 12, 9, 4, 2, 1])  # 9.49

API Reference

Function Parameters Returns
h_index(citations) List of counts int
normalized_h_index(citations, scale) List of counts, scale factor float
i10_index(citations) List of counts int
g_index(citations) List of counts int
o_index(citations) List of counts float
w_index(citations) List of counts int
e_index(citations) List of counts float

All functions accept counts in any order and handle empty lists by returning 0.

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

hindex-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

hindex-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file hindex-0.1.0.tar.gz.

File metadata

  • Download URL: hindex-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for hindex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf1cc942066e57c809c0a978007d943a00288e13087d5ef2f48fc8eda52d05ab
MD5 75a0274d5886eaceb1fc4570bc85b7a5
BLAKE2b-256 cc21133239b2d310d472a70164c8660726cd92974b97daf009627d91764b1d9b

See more details on using hashes here.

File details

Details for the file hindex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hindex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for hindex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9926d9021d0c3f5cd773a27f6758cbd3c8796a878c1e0db991bfa9791e21354f
MD5 3c4312b1bb78d7847ff76424ca406fce
BLAKE2b-256 2f875f316322b25a0f36d0f7d6e24bf7489bd4788b6c5106c78110be0d0a650c

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