Skip to main content

An asynchronous Python wrapper for the SpamWatch API.

Project description

aio-spamwatch

An asynchronous Python wrapper for the SpamWatch API.

Installation

pip install aio-spamwatch

Usage

import asyncio
from aio_spamwatch import SpamwatchAPI

client = SpamwatchAPI(token="TOKEN_HERE")


async def main():
    # import aiohttp
    # client = SpamwatchAPI(token="TOKEN_HERE", session=aiohttp.ClientSession())
    version = await client.version()
    print(version)


asyncio.run(main())

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

aio_spamwatch-0.0.7.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

aio_spamwatch-0.0.7-py3-none-any.whl (7.4 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