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.1.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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hindex-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hindex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f614c839ecaa8c2840ee2d27773b7f5d60952fefa471e864f74b68d9c5958b06
MD5 07076dc0ff3edcf56078a3c7b9a8c032
BLAKE2b-256 49c6189ab02dbc28c0e609b2b161b01d8924c35f8688bf11e9aae422c22ad52d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindex-0.1.1.tar.gz:

Publisher: publish.yml on gxlarson/hindex

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

File details

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

File metadata

  • Download URL: hindex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hindex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7557549b31ccd4f116898b42a9c0e31bd05681e5ec9a5cf2cedc9c5ee6fc12d0
MD5 5f71cad453813ed8ce541d9c9ae5613e
BLAKE2b-256 cc0c4bf5b9f2fa4239e92222d6a6e453ccefde81a7008c37b59eb0229867ef2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindex-0.1.1-py3-none-any.whl:

Publisher: publish.yml on gxlarson/hindex

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