
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
|pypi|_ |build status|_ |pypi downloads|_ |license|_ |gitter chat|_
.. image:: https://raw.githubusercontent.com/os/slacker/master/static/slacker.jpg
Slacker is a full-featured Python interface for the Slack API <https://api.slack.com/>
_.
.. code-block:: bash
$ pip install slacker
.. code-block:: python
from slacker import Slacker
slack = Slacker('<your-slack-api-token-goes-here>')
# Send a message to #general channel
slack.chat.post_message('#general', 'Hello fellow slackers!')
# Get users list
response = slack.users.list()
users = response.body['members']
# Upload a file
slack.files.upload('hello.txt')
# If you need to proxy the requests
proxy_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)
from requests.sessions import Session
with Session() as session:
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')
.. |build status| image:: https://img.shields.io/travis/os/slacker.svg .. _build status: http://travis-ci.org/os/slacker .. |pypi downloads| image:: https://img.shields.io/pypi/dm/slacker.svg .. _pypi downloads: https://pypi.org/project/slacker/ .. |pypi| image:: https://img.shields.io/pypi/v/Slacker.svg .. _pypi: https://pypi.python.org/pypi/slacker/ .. |license| image:: https://img.shields.io/github/license/os/slacker.svg .. _license: https://pypi.org/project/slacker/ .. |gitter chat| image:: https://badges.gitter.im/Join%20Chat.svg .. _gitter chat: https://gitter.im/os/slacker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
FAQs
Slack API client
We found that slacker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.