Skip to main content

PMTW allows for simple access to Reddit Moderator Toolbox

Project description

Installation

PMTW requires Python 3.7+. The recommended way to install PMTW is via pip

pip install pmtw

For instructions on installing Python and pip see "The Hitchhiker's Guide to Python" Installation Guides

Quickstart

A Toolbox instance is the recommended way of interacting with Toolbox through PMTW. A Toolbox instance provides access to both Toolbox's settings and usernotes through toolbox.settings and toolbox.usernotes respectively.

A Toolbox instance is instantiated with a praw Subreddit instance. For Example:

import praw
import pmtw

reddit = praw.Reddit(
    client_id="my client id",
    client_secret="my client secret",
    password="my password",
    user_agent="my user agent",
    username="my username",
)

toolbox = pmtw.Toolbox(
	reddit.subreddit("my moderated subreddit")
)

Once you have a toolbox instance, you can interact with usernotes through toolbox.usernotes and settings through toolbox.settings

Documentation

PMTW's documentation is located at https://pmtw.readthedocs.io/

License

PMTW's source is provided under the Simplified BSD License

  • Copyright ©, 2021, 2022 adhesiveCheese

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

pmtw-1.0.0.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

pmtw-1.0.0-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

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