Slack IPython bot 🤯
One Slack bot to rule them all. PyBot. Just send Python code as a message.
Install
pip install slack-ipython
To start the bot, simply run:
slack-ipython
For detailed output, add DEBUG=true as an environment variable.
Create a .env (or set these environment variables yourself).
SLACK_APP_TOKEN="xapp-..."
SLACK_BOT_TOKEN="xoxb-..."
APPROVED_SLACK_MEMBER_IDS="U01LXXXXXX,U01LXXXXXXX"
Security warning: this effectively gives full access to wherever you run this. Make sure you only added Slack member IDs of people you trust.
Configure your Slack app
First create a new Slack app in the Slack app dashboard.
Your Slack app needs to have:
- [Settings -> Basic Information -> App-Level Tokens]
- Create a bot token
- connections:write
- (Optional) configure app icon.
- Create a bot token
- [Settings -> Socket Mode]
- Socket mode enabled
- [Features -> App Home]
- Messages Tab enabled
- [Features -> App Home -> Show Tabs]
- "Allow users to send Slash commands and messages from the messages tab" enabled
- [Features -> OAuth & Permissions -> Scopes]
- The following OAuth scopes
- chat:write
- files:write
- im:history
- im:read
- im:write
- The following OAuth scopes
- [Features -> Event Subscriptions]
- Events enabled
- Subscribed to bot events
- message.im
Or use the App Manifest slack_app.yaml.
Make sure you install the Slack app in your workspace after configuring the above.
Metadata
Release files for slack-ipython 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slack-ipython-0.0.3.tar.gz | 11.7 kB | Without provenance | Details for slack-ipython-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slack_ipython-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for slack_ipython-0.0.3-py3-none-any.whl |
Total release size: 24.0 kB
Release files / slack-ipython-0.0.3.tar.gz
| Download URL | slack-ipython-0.0.3.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d88f27c5ce8155d04a195e4084bc7e83fc255afe281c3fde150cb4c5b4a8ad8
|
|
BLAKE2b-256 checksum How to use checksums |
907532ff1b3e417bfc3ac0dbb843b58777577b0b9c0cb65e20b6e3ae30963187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / slack_ipython-0.0.3-py3-none-any.whl
| Download URL | slack_ipython-0.0.3-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69e69a1b62ef18f2b41d05ae41c9d29601632dbb83805147cd0a2956c4373334
|
|
BLAKE2b-256 checksum How to use checksums |
50fb32f0ce1b4051ad770eeaaf95a49c6b47399e16542b40c7c257955cd76c81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for slack-ipython 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.