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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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