Skip to main content

Collections of libCST codemodders to upgrade Django

Project description

Django Codemod

PyPI Build Status Test Documentation Status Updates

All Contributors

A tool to help upgrade Django projects to newer version of the framework by automatically fixing deprecations.

Installation

Install this via pip (or your favourite installer):

pip install django-codemod

Usage

To fix deprecations removed in Django 4.0:

djcodemod --removed-in 4.0 .

This will go through all the files under your local directory, under . and apply code modifications to help upgrading to Django 4.0.

Check out the documentation for more detail on usage and the full list of codemodders.

How it works

This is based on libCST and implements codemods for it. This is currently very limited but the aim is to add more for helping with upcoming deprecations.

Codemodders are grouped by the version of Django where a function or feature is removed.

Not finding what you need? I'm open to contributions, please send me a pull request.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Bruno Alla

💻 🐛 📖

Adam Johnson

📖

Nikita Sobolev

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

django-codemod-0.7.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

django_codemod-0.7.0-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-codemod-0.7.0.tar.gz.

File metadata

  • Download URL: django-codemod-0.7.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for django-codemod-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5e2c6c3e1ac85e94d0d01cb01f428c6571d5d99bf00a171079367c1601d62d65
MD5 7ad8648e3bd45c0f8855305198009d24
BLAKE2b-256 ac4631808169f31583a90385a576a27bcc3ec05775540f1c4c70573c334ea37f

See more details on using hashes here.

File details

Details for the file django_codemod-0.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_codemod-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for django_codemod-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 118d7ecfb80dc1ffc214649ca5825b2b5d94bbbbc94e8d43c3c8117d0efe0252
MD5 4b7d3314e09a0d5e70bcf350fcb2c00f
BLAKE2b-256 aff44840ed952e9bfa974be8b3698ade4801e2c6d26573c59949cc46ca7241ae

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