Skip to main content

runcommands: execute system commands from views

Project description

Build Status

runcommands: execute system commands from urls.

Quickstart

Install the application:

pip install django-runcommands

And then add an entry for the runcommand’s view in your URLCONF, for each command you wish to make accessible:

# urls.py
from runcommands.views import RunCommandView


urlpatterns = patterns(
    '',
    url(r'^hello-world/$',
        RunCommandView.as_view(command='echo Hello World')),
)

Your command output is now available at the url /hello-world/.

Hacking

Setup your environment:

git clone https://github.com/magopian/django-runcommands.git
cd django-runcommands

Hack and run the tests using Tox to test on all the supported python and Django versions:

make test

Changelog

0.1 (2013-06-18)

  • first version

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-runcommands-0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

django_runcommands-0.1-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-runcommands-0.1.tar.gz.

File metadata

File hashes

Hashes for django-runcommands-0.1.tar.gz
Algorithm Hash digest
SHA256 8f943c568e6640d94014c98584c713058063f1a22b17f256898feea7d4f55b4e
MD5 3ef0ef93ed1784ce47970aeaa260c13d
BLAKE2b-256 54bf6df9ae2d544c03f1995835e8ca59c6bd706c73c92130186760a1b30585ae

See more details on using hashes here.

File details

Details for the file django_runcommands-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_runcommands-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c90eca1f59f8a047ff99398df35a885c01a6206bee7995474316788101f0c6b6
MD5 3c47e50af73ebd52f9e89a210baf1311
BLAKE2b-256 5bb5bff49ce0b526652e755c867bda7e5265fe70568843f9a1e0c64d4a9f8490

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page