Skip to main content

Project information:

https://img.shields.io/pypi/v/django-click.svg https://img.shields.io/pypi/dm/django-click.svg https://img.shields.io/badge/docs-TODO-lightgrey.svg https://img.shields.io/pypi/l/django-click.svg

Automated code metrics:

https://img.shields.io/coveralls/GaretJax/django-click/master.svg

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

  • Free software: MIT license

  • Documentation for the Click command line library: https://click.palletsprojects.com/en/stable/

  • Compatible with Django 4.2, 5.2 and 6.0 running on Python 3.10, 3.11, 3.12, 3.13 and 3.14

    • 3.10+ required for Django 5.2 and above

    • 3.12+ required for Django 6.0 and above

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 <yourapp>/management/commands/helloworld.py:

import djclick as click

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

And then call the command with:

$ ./manage.py helloworld django-click
Hello, django-click

Check out the test commands for additional example commands and advanced usage.

Release Notes and Contributors

This package is a member of Django Commons and adheres to the community’s Code of Conduct. It is maintained by Jonathan Stoppani and Timothy Allen, who have many professional responsibilities. We are thrilled that our employers allow us a certain amount of time to contribute to open-source projects. We add features as they are necessary for our projects, and try to keep up with Issues and Pull Requests as best we can. Due to constraints of time (our full time jobs!), Feature Requests without a Pull Request may not be implemented, but we are always open to new ideas and grateful for contributions and our users.

Metadata

Release files for django-click 2.5.0

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-click 2.5.0
File Size Uploaded
django_click-2.5.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-click 2.5.0
File Interpreter ABI Platform
django_click-2.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / django_click-2.5.0.tar.gz

Download URL django_click-2.5.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60d346a04d0db991d0bb31754c0dcad282643aa26a4701ca5ff5df742a7473f8
BLAKE2b-256 checksum
How to use checksums
fce980f860c3f2bb9bdcc58de6b9578bbc6b4a57bedefdc97211e736fb960380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.1

Release files / django_click-2.5.0-py3-none-any.whl

Download URL django_click-2.5.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bcb71d0bac47f67b91d9ee1972d881d72b5bf20cd2a45a57265cdfac49b88aa
BLAKE2b-256 checksum
How to use checksums
2743a8eedd594b0f1d5e736ad5afd48ff4431566d2760b79115af40d8b4e950a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.1

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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