RathHunt / spamwatch-py

Python wrapper for the SpamWatch API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpamWatch API Python Wrapper

Basic Usage

import spamwatch
token = 'A_LONG_TOKEN_HERE'
client = spamwatch.Client(token)
ban = client.get_ban(777000)
print(ban.reason)

Async

import spamwatch
import asyncio
token = 'A_LONG_TOKEN_HERE'
client = spamwatch.aioClient(token)

async def main():
    r = await client.version()
    print(r)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

About

Python wrapper for the SpamWatch API

License:GNU Lesser General Public License v3.0


Languages

Language:Python 98.9%Language:Shell 1.1%