Owner: Jacob Parr | A Slack client that is capable of maintaining and contributing to a slack-thread that this client creates.
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.
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 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.
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.