Skip to content

hudsonjwh/slack-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack-Client

Owner: Jacob Parr | A Slack client that is capable of maintaining and contributing to a slack-thread that this client creates.

Purpose

This client is used by various apps including AWS Lambdas and Spark Listeners to post messages back to Slack.

It's key feature is its ability to maintain a slack-thread and post updates to that one thread and thus avoiding spamming of the named channel.

Getting Started

conda create -n slack-client python=3.8
conda activate slack-client
pip install -r requirements.txt

Once setup, unit tests can by ran by executing pytest

Usage

Usage of this library will require an OAuth Token obtained from your custom Slack Application. One such application (Training Engine) currently exists and is available by contacting Jacob D. Parr.

Once obtained, the token can be specified by setting the SLACK_OAUTH_ACCESS_TOKEN environment variable to the appropriate value.

Misc Notes:

The package structure puts all source files in the python folder and all tests in the test folder. This break from convention is done to facility deployment as a layer on AWS Lambeda which requires all packages be nested in a subfolder named "python". With this convention, once can simply zip the python folder and deploy the zip file to AWS Lambda Layers.

About

Owner: Jacob Parr | A Slack client that is capable of maintaining and contributing to a slack-thread that it creates.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages