modernize


Namemodernize JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/PyCQA/modernize
SummaryA hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
upload_time2020-09-27 13:29:43
maintainerPyCQA
docs_urlNone
authorArmin Ronacher
requires_python~=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ::

    Python           _              _        
       _ __  ___  __| |___ _ _ _ _ (_)______ 
      | '  \/ _ \/ _` / -_) '_| ' \| |_ / -_)
      |_|_|_\___/\__,_\___|_| |_||_|_/__\___|

This library is a very thin wrapper around `fissix
<https://github.com/jreese/fissix>`_, a fork of lib2to3, to utilize it
to make Python 2 code more modern with the intention of eventually
porting it over to Python 3.

The ``python -m modernize`` command works like
``python -m fissix``, see `fissix <https://github.com/jreese/fissix>`_.
Here's how you'd rewrite a
single file::

    python -m modernize -w example.py

It does not guarantee, but it attempts to spit out a codebase compatible
with Python 2.6+ or Python 3. The code that it generates has a runtime
dependency on `six <https://pypi.python.org/pypi/six>`_, unless the
``--no-six`` option is used. Version 1.9.0 or later of ``six`` is
recommended. Some of the fixers output code that is not compatible with
Python 2.5 or lower.

**Documentation:** `modernize.readthedocs.io
<https://modernize.readthedocs.io/>`_.

See the ``LICENSE`` file for the license of ``modernize``.
Using this tool does not affect licensing of the modernized code.

.. image:: https://readthedocs.org/projects/modernize/badge/
    :target: https://readthedocs.org/projects/modernize/?badge=latest
    :alt: Documentation Status

.. image:: https://api.travis-ci.org/pycqa/modernize.svg?branch=master
    :target: https://travis-ci.org/pycqa/modernize

.. image:: https://coveralls.io/repos/pycqa/modernize/badge.png?branch=master
    :target: https://coveralls.io/r/pycqa/modernize?branch=master



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PyCQA/modernize",
    "name": "modernize",
    "maintainer": "PyCQA",
    "docs_url": null,
    "requires_python": "~=3.6",
    "maintainer_email": "code-quality@python.org",
    "keywords": "",
    "author": "Armin Ronacher",
    "author_email": "armin.ronacher@active-4.com",
    "download_url": "https://files.pythonhosted.org/packages/e5/97/b7bb97eda53d8784b01dee37aa84dbb2212d89a465a913cd53284568c921/modernize-0.8.0.tar.gz",
    "platform": "",
    "description": "::\n\n    Python           _              _        \n       _ __  ___  __| |___ _ _ _ _ (_)______ \n      | '  \\/ _ \\/ _` / -_) '_| ' \\| |_ / -_)\n      |_|_|_\\___/\\__,_\\___|_| |_||_|_/__\\___|\n\nThis library is a very thin wrapper around `fissix\n<https://github.com/jreese/fissix>`_, a fork of lib2to3, to utilize it\nto make Python 2 code more modern with the intention of eventually\nporting it over to Python 3.\n\nThe ``python -m modernize`` command works like\n``python -m fissix``, see `fissix <https://github.com/jreese/fissix>`_.\nHere's how you'd rewrite a\nsingle file::\n\n    python -m modernize -w example.py\n\nIt does not guarantee, but it attempts to spit out a codebase compatible\nwith Python 2.6+ or Python 3. The code that it generates has a runtime\ndependency on `six <https://pypi.python.org/pypi/six>`_, unless the\n``--no-six`` option is used. Version 1.9.0 or later of ``six`` is\nrecommended. Some of the fixers output code that is not compatible with\nPython 2.5 or lower.\n\n**Documentation:** `modernize.readthedocs.io\n<https://modernize.readthedocs.io/>`_.\n\nSee the ``LICENSE`` file for the license of ``modernize``.\nUsing this tool does not affect licensing of the modernized code.\n\n.. image:: https://readthedocs.org/projects/modernize/badge/\n    :target: https://readthedocs.org/projects/modernize/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://api.travis-ci.org/pycqa/modernize.svg?branch=master\n    :target: https://travis-ci.org/pycqa/modernize\n\n.. image:: https://coveralls.io/repos/pycqa/modernize/badge.png?branch=master\n    :target: https://coveralls.io/r/pycqa/modernize?branch=master\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.",
    "version": "0.8.0",
    "project_urls": {
        "Homepage": "https://github.com/PyCQA/modernize"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "736dc381a4b811a3c529626268276512d1b5abef601e45bc04f0e797284b49bc",
                "md5": "5812e6ff3a16d7f5ccbafde3951ab51b",
                "sha256": "b51f930ac9d726903f2c7f9038146d6061a14509140d6e4498827b19b5610120"
            },
            "downloads": -1,
            "filename": "modernize-0.8.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5812e6ff3a16d7f5ccbafde3951ab51b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "~=3.6",
            "size": 27243,
            "upload_time": "2020-09-27T13:29:42",
            "upload_time_iso_8601": "2020-09-27T13:29:42.592089Z",
            "url": "https://files.pythonhosted.org/packages/73/6d/c381a4b811a3c529626268276512d1b5abef601e45bc04f0e797284b49bc/modernize-0.8.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e597b7bb97eda53d8784b01dee37aa84dbb2212d89a465a913cd53284568c921",
                "md5": "7417f49ee1dcbba42deb4fc386974652",
                "sha256": "1672b4bb19a060a53dd0518cc8f70fc83591c7246e532223459f85d338c60f55"
            },
            "downloads": -1,
            "filename": "modernize-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7417f49ee1dcbba42deb4fc386974652",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.6",
            "size": 21304,
            "upload_time": "2020-09-27T13:29:43",
            "upload_time_iso_8601": "2020-09-27T13:29:43.442119Z",
            "url": "https://files.pythonhosted.org/packages/e5/97/b7bb97eda53d8784b01dee37aa84dbb2212d89a465a913cd53284568c921/modernize-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-27 13:29:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyCQA",
    "github_project": "modernize",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "modernize"
}
        
Elapsed time: 0.23834s