Skip to main content

slacker wrapper for asyncio

Project description

info:

slacker wrapper for asyncio

https://travis-ci.org/aio-libs/aioslacker.svg?branch=master https://img.shields.io/pypi/v/aioslacker.svg

Installation

pip install aioslacker

Usage

import asyncio

from aioslacker import Slacker

TOKEN = 'xxxxx'

async def go():
    async with Slacker(TOKEN) as slack:
        await slack.chat.post_message('#general', 'Hello fellow slackers!')

loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()

Thanks

The library was donated by Ocean S.A.

Thanks to the company for contribution.

Supported by

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