Run python in slack
Project description
django-slappy
This is a django app that allows you to run python interactively in slack. It requires an existing server running django.
Features
Variable Persistence
Shared Scope
allows interactivity between users
Multi-liners
Fool Proof
Long running code will be terminated
Exit prevention
Installation
Need an already running django site
pip install django-slappy
-
Add "django_slappy" to your INSTALLED_APPS setting like this
INSTALLED_APPS = [ ... 'django_slappy', ]
-
Include the URLconf in your project urls.py like this
path('slappy/', include('django_slappy.urls'))
-
Create a slack app and add command with url 'http://your-server/slappy/'
-
Install to workspace. Slack will give you an OAUTH secret. Paste to your
settings.py
like followingSLACK_OAUTH_SECRET = "abab-1231231231232-sfasfasdf-12312312"
A better practice is to use environment variable.
Note
Of course you'll expose your server to remote-exploitation.
Make sure your have nice people in your workspace, otherwise prepare to get your entire server deleted
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-slappy-0.0.2.tar.gz
.
File metadata
- Download URL: django-slappy-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7fa63da34ad9dbdc8dbabd3428ec72d58323e39a636070cfdb8e736e6b534e4 |
|
MD5 | 48b894ac10eebf4b94a8a0cf800038de |
|
BLAKE2b-256 | 55daec38e67954a12b592f0072dce806c86ac42c3c790c63ff3edf8b00d47bba |