Metadata-Version: 2.1
Name: django-codemod
Version: 0.2.0
Summary: Codemod to help upgrading to newer versions of Django
Home-page: https://github.com/browniebroke/django-codemod
Author: Bruno Alla
Author-email: alla.brunoo@gmail.com
License: MIT license
Keywords: django,codemod
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Requires-Dist: libcst

==============
Django Codemod
==============


.. image:: https://img.shields.io/pypi/v/django-codemod.svg
        :target: https://pypi.python.org/pypi/django-codemod

.. image:: https://img.shields.io/travis/browniebroke/django-codemod.svg
        :target: https://travis-ci.com/browniebroke/django-codemod

.. image:: https://readthedocs.org/projects/django-codemod/badge/?version=latest
        :target: https://django-codemod.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status
.. image:: https://pyup.io/repos/github/browniebroke/django-codemod/shield.svg
     :target: https://pyup.io/repos/github/browniebroke/django-codemod/
     :alt: Updates

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 <https://libcst.readthedocs.io/en/latest/index.html>`_
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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


