Skip to main content

Collections of libCST codemodders to upgrade Django

Project description

Django Codemod

image image Test Documentation Status Updates

All Contributors

Collections of libCST codemodder to help upgrades to newer versions of Django.

Features

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.

Currently implemented codemodders are listed below and grouped by the version of Django where deprecations are removed.

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

Example of use

For example, to fix deprecations removed in Django 4.0:

python3 -m libcst.tool codemod django_codemod.Django40Command .

Will go through all the files under your local directory . and apply the code modifications to update imports and function calls.

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

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Bruno Alla

💻 🐛 📖

Adam Johnson

📖

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.6.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

django_codemod-0.6.0-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for django-codemod-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d5951f21dbf12daeecfe20d0557c2970e291e637cb525a0f22b03e1c1c54eb05
MD5 1b9c3c92dff2310d1e0c4bc1afac65a9
BLAKE2b-256 e68fcefe17c3cb84d5bbbce7377b86ca9c9c41aa347bd7306ae4c1b5a9c77d43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_codemod-0.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.0 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/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for django_codemod-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d78988938b072d32d9c95a92b5657f8263276eefa3d3cff6a5cc8e353b82fbf4
MD5 6294f9d107929d009d18955c8b1398b6
BLAKE2b-256 601a460cb853dd5fc05a3b075c4dd94fcd13555cdd513fc26cdc45b60235948e

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