Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
/slackerPublic archive

Full-featured Python interface for the Slack API

License

NotificationsYou must be signed in to change notification settings

os/slacker

Repository files navigation

It's time to say goodbye. I'm archiving Slacker. It's been getting harder to find time to maintain this project for a while now. For years it's been the most popular Python library for Slack. Eventually Slack decided to go withtheir library, and I lost my motivation to maintain it. Thank you all for your contributions to this project.

Slacker

pypibuild statuspypi downloadslicensegitter chat

https://raw.githubusercontent.com/os/slacker/master/static/slacker.jpg

About

Slacker is a full-featured Python interface for theSlack API.

Installation

$ pip install slacker

Examples

fromslackerimportSlackerslack=Slacker('<your-slack-api-token-goes-here>')# Send a message to #general channelslack.chat.post_message('#general','Hello fellow slackers!')# Get users listresponse=slack.users.list()users=response.body['members']# Upload a fileslack.files.upload('hello.txt')# If you need to proxy the requestsproxy_endpoint='http://myproxy:3128'slack=Slacker('<your-slack-api-token-goes-here>',http_proxy=proxy_endpoint,https_proxy=proxy_endpoint)# Advanced: Use `request.Session` for connection pooling (reuse)fromrequests.sessionsimportSessionwithSession()assession:slack=Slacker(token,session=session)slack.chat.post_message('#general','All these requests')slack.chat.post_message('#general','go through')slack.chat.post_message('#general','a single https connection')

Documentation

https://api.slack.com/methods

About

Full-featured Python interface for the Slack API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors40

Languages


[8]ページ先頭

©2009-2026 Movatter.jp