prawcore
Low-level communication layer for PRAW 4+.
What it is and what it does
prawcore is a low-level HTTP communication and authentication layer designed specifically for Reddit API interaction. It handles the mechanics of connecting to Reddit's API endpoints, managing OAuth authentication flows, and translating Python method calls into properly formatted HTTP requests and responses. The package abstracts away the details of HTTP session management, request signing, and credential handling so that higher-level libraries like PRAW can focus on domain logic.
You use prawcore when you need direct, granular control over Reddit API calls or when building tools that interact with Reddit at the protocol level. It provides authenticators for different credential types (script apps, read-only access, etc.) and a session context manager for making authenticated requests. The package follows semantic versioning and is designed to be a stable foundation for other Reddit client libraries.
Use it for:
- Build custom Reddit API clients or bots that need finer control than PRAW provides
- Implement read-only Reddit data scrapers with proper authentication and session management
- Create server-side applications that need to fetch Reddit user data or subreddit information
- Develop tools that interact with Reddit's OAuth flow for user authentication
- Integrate Reddit API calls into larger data pipelines or monitoring systems
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
prawcore provides low-level HTTP communication and authentication handling for Reddit API access, serving as the foundation layer for PRAW 4+.
Yes. prawcore is actively maintained, has low install friction, carries a permissive BSD license, and is the official low-level layer for PRAW 4+. Install it if you need direct Reddit API access or are building on top of PRAW. No known security vulnerabilities.
Install
prawcore on PyPI
pip
pip install prawcoreuv
uv add prawcorepoetry
poetry add prawcoreInstalling prawcore
Before you install
Low friction install with a single dependency (requests). Actively maintained with a release 62 days ago and recent commits; supports modern Python versions 3.10 through 3.14.
License in practice
BSD license (permissive) allows commercial and private use with minimal restrictions; you must retain copyright notice and disclaimer in distributions.
Quickstart
pip install prawcore
import os
import prawcore
authenticator = prawcore.TrustedAuthenticator(
client_id=os.environ["PRAWCORE_CLIENT_ID"],
client_secret=os.environ["PRAWCORE_CLIENT_SECRET"],
requestor=prawcore.Requestor(user_agent="YOUR_VALID_USER_AGENT"),
)
authorizer = prawcore.ReadOnlyAuthorizer(authenticator=authenticator)
authorizer.refresh()
with prawcore.session(authorizer=authorizer) as session:
session.request(method="GET", path="/api/v1/user/example/trophies")
Requires environment variables PRAWCORE_CLIENT_ID and PRAWCORE_CLIENT_SECRET to be set with valid Reddit application credentials.
Verify before relying
- Rate limiting and retry behavior for Reddit API throttling
- Error handling and exception types for common API failures
- Support for different Reddit authentication flows beyond TrustedAuthenticator
Package facts
| License | Copyright (c) 2016, Bryce Boe All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1.… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 62 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,717,833/month — #3,621 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prawcore-4.0.0-py3-none-any.whl
Keywords: api, praw, reddit
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
asyncprawcoreasyncprawcore provides a low-level async HTTP…
permissive · top 15,000 on PyPI
prawPRAW provides a Python interface to Reddit's…
permissive · top 5,000 on PyPI
asyncprawAsync PRAW provides asynchronous access to…
permissive · top 15,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
redditwarpRedditWarp is a Python wrapper for the Reddit…
permissive · top 15,000 on PyPI
elasticsearch6Low-level Python client for Elasticsearch that…
permissive · top 15,000 on PyPI
pipedreamProvides a Python client library for accessing…
unclear · top 15,000 on PyPI
conjure-python-clientA lightweight HTTP client library built on…
permissive · top 15,000 on PyPI
elasticsearch5Low-level Python client for Elasticsearch 5.x…
permissive · top 15,000 on PyPI
botocoreBotocore provides low-level, data-driven access…
permissive · top 100 on PyPI