Skip to main content

django-slappy

PyPI version PyPI pyversions

This is a django app that allows you to run python interactively in slack. It requires an existing server running django.

Features

Variable Persistence

persist

Shared Scope

allows interactivity between users

shared-scope

Multi-liners

multi-liner

Fool Proof

Long running code will be terminated code-timeout

Exit prevention prevents-exit

Installation

Need an already running django site

pip install django-slappy

  1. Add "django_slappy" to your INSTALLED_APPS setting like this

        INSTALLED_APPS = [
            ...
            'django_slappy',
        ]
    
  2. Include the URLconf in your project urls.py like this

    path('slappy/', include('django_slappy.urls'))
  1. Create a slack app and add command with url 'http://your-server/slappy/'

  2. Install to workspace. Slack will give you an OAUTH secret. Paste to your settings.py like following

    SLACK_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

Metadata

Release files for django-slappy 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-slappy 0.0.2
File Size Uploaded Provenance Actions
django-slappy-0.0.2.tar.gz 6.6 kB Without provenance Details for django-slappy-0.0.2.tar.gz

Release files / django-slappy-0.0.2.tar.gz

Download URL django-slappy-0.0.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7fa63da34ad9dbdc8dbabd3428ec72d58323e39a636070cfdb8e736e6b534e4
BLAKE2b-256 checksum
How to use checksums
55daec38e67954a12b592f0072dce806c86ac42c3c790c63ff3edf8b00d47bba
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-slappy 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page