Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Computational Social Science Python Packages

Python packages with the GitHub topic computational-social-science. Sorted by monthly downloads, with stars and forks.
RemiPelloux
modelly-abm

Agent-based modeling (ABM) framework for Python: typed scenarios, seeded reproducible runs, numpy-backed agents, grids, networks and continuous space, discrete-event time, pandas data collection, browser visualization. Fast by construction. A codemod path from Mesa.

70K 0 0
JasonKessler
scattertext

Beautiful visualizations of how language differs among document types.

5K 2K 283
nealcaren
topica

40+ validated topic models for computational social science, behind one NumPy-native interface: covariate effects on topic prevalence and content, shared diagnostics, reproducible fits. LDA, STM, CTM, keyATM, BERTopic, ETM, and more on a parallel Rust core. One wheel, no JVM, no PyTorch.

4K 6 0
jboynyc
textnets

Text analysis with networks.

3K 296 25
CornellNLP
convokit

ConvoKit is a toolkit for extracting conversational features and analyzing social phenomena in conversations. It includes several large conversational datasets along with scripts exemplifying the use of the toolkit on these datasets.

3K 655 142
SimulaMet
verdi-agents

Auditable testbed for value drift, governance and institutional recovery in societies of LLM agents. Reproducible runs, sweeps across models, one-click HTML reports.

2K 0 1
ryanjgallagher
shifterator

Interpretable data visualizations for understanding how texts differ at the word level

1K 291 32
rmovva
hypothesaes

HypotheSAEs: hypothesizing interpretable relationships in text datasets using sparse autoencoders. https://arxiv.org/abs/2502.04382

653 100 35
ryanjgallagher
wordlevel

Word-level natural language processing and text analysis

583 5 1
cardiffnlp
tweetnlp

TweetNLP for all the NLP enthusiasts working on Twitter! The Python library tweetnlp provides a collection of useful tools to analyze/understand tweets such as sentiment analysis, emoji prediction, and named entity recognition, powered by state-of-the-art language models specialised on Twitter.

517 395 35
rubingshen
augmentedsocialscientist

A package to easily train Bert-like models for text classification

420 19 2
sagnik-chakravarty
arcshiftwrap

End-to-end pipeline for collecting, labeling, and analyzing metaphor framing and stance in Reddit and news discourse using LLMs.

357 1 0
ryanboyd
blamegame

BlameGame is a Python package for detecting internal/external (dispositional/situational) attributions in text.

221 1 0
jturner-uofl
pycorpdiff

Comparative corpus analysis for Python: keyness, collocations, semantic shift, temporal trajectories with changepoints + causal inference.

198 3 0
zalkikar
mlm-bias

Bias Evaluation Methods for Masked Language Models implemented in PyTorch

168 4 2
nariyoo
langaccess

Classifies the language access a website provides, separating the site's own writing from a translation widget's output, and returns the evidence behind each verdict.

159 0 0
sii-research
socioverse2

SocioVerse2: a longitudinal, LLM-native social-simulation runtime with interventions, counterfactual branches and panel data.

154 29 4
wbendinelli
dlvt

Python package implementing Dynamic Leadership Vitality Theory — a dynamical systems model of executive sustainability. Simulates vitality–capital dynamics, finds equilibria, classifies leadership regimes.

144 0 0
UWNETLAB
dcss

Supplementary materials for McLevey 2021 Doing Computational Social Science (Sage, UK).

129 29 11
letiziaia
multiway-alignment

Quantifying multiway (higher-order) alignment with mutual information

101 3 0
Baron-Sun
socialscikit

Zero-code toolkit for social science text analysis — classification (QuantiKit), qualitative coding (QualiKit), and research methods tools (Toolbox)

81 0 0
unna97
twarc2sql

This package converts jsonl file generated by twarc2 to sql database in an opnionated way.

64 0 0
MohammadForouhesh
tracking-policy-agendas

A Persian Twitter policy agenda tracking framework

50 1 0
sagnik-chakravarty
framescope

Python client for the Arctic Shift API.

4 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology