runcommands: execute system commands from views
Project description
runcommands: execute system commands from urls.
Authors: Mathieu Agopian and contributors
Licence: BSD
Compatibility: Django 1.4+, python2.7 and python3.3
Project URL: https://github.com/magopian/django-runcommands
Documentation: http://django-runcommands.rtfd.org/
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_runcommands-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90eca1f59f8a047ff99398df35a885c01a6206bee7995474316788101f0c6b6 |
|
MD5 | 3c47e50af73ebd52f9e89a210baf1311 |
|
BLAKE2b-256 | 5bb5bff49ce0b526652e755c867bda7e5265fe70568843f9a1e0c64d4a9f8490 |