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

Appearance settings

A Slack Client written in Python wtih Urwid

Notifications You must be signed in to change notification settings

srikanth-dev/loaf

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Loaf

Loaf is a slack client written in python

screenshot

Why?

Why not

Getting started

  1. Create a slack app for your personal use here: https://api.slack.com/apps?new_app=1

  2. Add the redirect URL 'http://127.0.0.1:6543/' to your apps permissions page

  3. Put your client secret and client id in a file named config.json:

    {
        "client": {
            "id": "CLIENT_ID",
            "secret": "CLIENT_SECRET"
        }
    }
    
  4. 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
    
  5. Run the client

    $ venv/bin/loaf
    

Notes

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.

About

A Slack Client written in Python wtih Urwid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.