Skip to main content

Reddit and python, made simple.

Project description

py-reddit

A package that can be used to get reddit submissions, and their various attributes. The package supports both synchronous and asynchronous development. I am more familiar with synchronous programming, but have tried my best at making a good asynchronous implementation. The package is written in Python 3.10, and uses requests and aiohttp as its main dependencies.

Updates will be coming soon, thank you for viewing this package, please consider using it.

Version - 1.0.2

Socials - KING7077 - GitHub

Installation methods:

pip3 install py-reddit

py -3 -m pip install py-reddit

python3 -m pip install py-reddit

Example usage:

import reddit

client = reddit.Client()

subreddit = client.Subreddit('top', 'memes') # supports 'top', 'new' or 'hot'

print(subreddit.selftext(0)) #gets the selftext of the first post here

Asynchronus client:

import reddit
import asyncio

client = reddit.AsyncClient()

subreddit = client.Subreddit('top', 'memes') # supports 'top', 'new' or 'hot'

async def main():
    print(await subreddit.selftext(0))

asyncio.run(main())

The package is still under development

CHANGELOG

February 18, 2022

Minor changes to the description of the project - 1.0.2

February 18, 2022

Initial release - 1.0.1

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

py-reddit-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

py_reddit-1.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file py-reddit-1.0.2.tar.gz.

File metadata

  • Download URL: py-reddit-1.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.47.0 importlib-metadata/4.11.1 keyring/21.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for py-reddit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9451b18f909c8dab696063751391dae6356ac160c19844589a6361239ac992f7
MD5 5208cf00dbd6389562a3a09355b9a5b0
BLAKE2b-256 12137c6fa31621544b079f950e3877f2e5b02f5cd8ea79d1e2c9aa52ea57d8cb

See more details on using hashes here.

File details

Details for the file py_reddit-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_reddit-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.47.0 importlib-metadata/4.11.1 keyring/21.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for py_reddit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8bbe8022fa8801f7a9bc69450b87aae8b02ff0b1272ab8745acd8f9e99f3176e
MD5 dd3baa3cf7f062ca8f1939b806334bda
BLAKE2b-256 f1be826e22a126bcdf585bb4864d7d4afdf58334406fd29e143ed94db87faf5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page