Metadata-Version: 2.1
Name: py-reddit
Version: 1.0.2
Summary: Reddit and python, made simple.
Author: KING7077
Author-email: sram2007india@gmail.com
License: UNKNOWN
Keywords: python,reddit,py-reddit,async-py-reddit,python-reddit
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Unix
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://github.com/KING7077)

Installation methods:

```
pip3 install py-reddit

py -3 -m pip install py-reddit

python3 -m pip install py-reddit
```

Example usage:

```py
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:

```py
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


