Skip to main content

Helpers for dealing with application settings

Project description

Django Click

https://img.shields.io/travis/GaretJax/django-click.svg https://img.shields.io/pypi/v/django-click.svg https://img.shields.io/pypi/dm/django-click.svg https://img.shields.io/coveralls/GaretJax/django-click/master.svg https://img.shields.io/badge/docs-latest-brightgreen.svg https://img.shields.io/pypi/l/django-click.svg https://img.shields.io/requires/github/GaretJax/django-click.svg

django-click is a library to easily write django management commands using the click command line library.

Installation

pip install django-click

Example

Create a command module as you would usually do, but instead of creating a class, just put a djclick command into it:

import djclick as click

@click.command()
@click.argument('name')
def command(name):
   click.secho('Hello, {}'.format(name), fg='red')

History

0.1.0 – Unreleased

  • Initial release

Project details


Download files

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

Source Distribution

django-click-0.1.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

django_click-0.1.0-py2-none-any.whl (5.4 kB view hashes)

Uploaded Python 2

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