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.1.3.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmtw-1.1.3-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file pmtw-1.1.3.tar.gz.

File metadata

  • Download URL: pmtw-1.1.3.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pmtw-1.1.3.tar.gz
Algorithm Hash digest
SHA256 77f1c24b26a0b934a883ed167bb033c298cd1726481df4d0a5347cc1630c7308
MD5 84ec05f9d6fba06c43434fe4b3210048
BLAKE2b-256 4b77bb6bca9e8e577ca5fd39d7646979e0cd17d1d0f767ca200d1846ef42427e

See more details on using hashes here.

File details

Details for the file pmtw-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: pmtw-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pmtw-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b47c6fd36cd319d49cdac08c6b84ee1b881cb257fd0a929060c091da0dfd4bee
MD5 9acaaa5b4897ed432c130b3882d215b4
BLAKE2b-256 936115dd450a26395526adc93bc8b49019ed64925adc736970d04f12f2e0b96f

See more details on using hashes here.

Supported by

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