pushshift_python
A Python wrapper for Reddit community analytics via the Pushshift API. Includes data collection, ML classification, and research support.
Features
- Reddit data collection via Pushshift API
- ML classifiers (Decision Tree, Random Forest, SVM, Logistic Regression)
- Statistical analysis with sklearn, pandas, numpy
- Network analysis with NetworkX
- HPC support (SLURM scripts for Great Lakes cluster)
Structure
pushshift_python.py # Public facade that re-exports the internal library surface
_pushshift_queries.py # Shared query base plus file/web collectors
_pushshift_community.py # Community analytics and feature engineering
_pushshift_modeling.py # sklearn-based model training and evaluation
_pushshift_api.py # Reddit OAuth helper for subreddit refreshes
_pushshift_subreddits.py # Subreddit inventory filtering utilities
Great_Lakes_HPC/ # SLURM batch scripts for HPC
Resources/ # Date partition helpers and supporting data
Examples/ # Usage examples
ICWSM/ # AAAI Web & Social Media research
TADA/ # Text As Data research
tests/ # Public API and HPC smoke coverage
Installation
Install the published library in a virtual environment:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install pushshift-python
For development from a checkout:
pip install -e .
The project currently targets Python 3.10+.
For a non-editable local environment, pip install . also works.
Test Data
Available on Google Drive.
Documentation
Development
Run the test suite with:
MPLCONFIGDIR=/tmp/matplotlib pytest -q
License
Metadata
Release files for pushshift-python 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pushshift_python-0.1.1.tar.gz | 21.2 kB | With provenance | Details for pushshift_python-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pushshift_python-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pushshift_python-0.1.1-py3-none-any.whl |
Total release size: 40.6 kB
Release files / pushshift_python-0.1.1.tar.gz
| Download URL | pushshift_python-0.1.1.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dba88fb05bb740c6aa10824d5483e00b98fa65b3382e1b04e25f83c0190434b3
|
|
BLAKE2b-256 checksum How to use checksums |
d4b5fa0bbbc5479757f34586c23f08c9277f596f737799fbab8d39f79359eb68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / pushshift_python-0.1.1-py3-none-any.whl
| Download URL | pushshift_python-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eee33db5c3cdebe136f4f51e543adf1e12de9d47ce941886a1756aaf0799d926
|
|
BLAKE2b-256 checksum How to use checksums |
534dab9d8bf302e1edfc3c53c4880d30a777137f68f48cdf1c772b17a8d16b5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for pushshift-python 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pushshift_python-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.