Loaf is a slack client written in python
Why not
-
Create a slack app for your personal use here: https://api.slack.com/apps?new_app=1
-
Add the redirect URL 'http://127.0.0.1:6543/' to your apps permissions page
-
Put your client secret and client id in a file named
config.json
:{ "client": { "id": "CLIENT_ID", "secret": "CLIENT_SECRET" } }
-
Run this to save a access token to your
config.json
$ python3 -m venv venv $ venv/bin/pip install -e. $ venv/bin/python -m loaf.auth
-
Run the client
$ venv/bin/loaf
The Slack API wrapper is extremely bare bones, since I only impemented what I needed. Existing Asyncio aware API wrappers like 'slacker' weren't used since I wanted to write my own wrapper
This is the first application I've written using urwid, so pull requests are welcomed to help improve the code.