Codemod to help upgrading to newer versions of Django
Project description
Codemod to help upgrading to newer versions of Django.
Free software: MIT license
Documentation: https://django-codemod.readthedocs.io.
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:
django_codemod.commands.django_40.ForceTextToForceStrCommand: migrate deprecated force_str() function to force_str().
django_codemod.commands.django_40.SmartTextToForceStrCommand: migrate deprecated smart_str() function to smart_str().
django_codemod.commands.django_40.UGetTextToGetTextCommand: migrate deprecated ugettext() function to gettext().
django_codemod.commands.django_40.UGetTextLazyToGetTextLazyCommand: migrate deprecated ugettext_lazy() function to gettext_lazy().
django_codemod.commands.django_40.UGetTextNoopToGetTextNoopCommand: migrate deprecated ugettext_noop() function to gettext_noop().
django_codemod.commands.django_40.UNGetTextToNGetTextCommand: migrate deprecated ungettext() function to ngettext().
django_codemod.commands.django_40.UNGetTextLazyToNGetTextLazyCommand: migrate deprecated ungettext_lazy() function to ngettext_lazy().
Not finding what you need? I’m open to contributions, please send me a pull request.
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
Built Distribution
Hashes for django_codemod-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7530f133c38ba0bda2276ed9f0304000e7de30710fbdbaf38d1d980dd8b130c8 |
|
MD5 | d4c8186a5173dc8253749175f4d6058d |
|
BLAKE2b-256 | 02c2036e92c101294543105df8504ba087b39cbc2976360583e769035a1236f2 |