{"id":13542278,"url":"https://github.com/mitsuhiko/python-modernize","last_synced_at":"2025-04-02T09:33:27.770Z","repository":{"id":2388175,"uuid":"3354059","full_name":"mitsuhiko/python-modernize","owner":"mitsuhiko","description":"Modernizes Python code for eventual Python 3 migration. Build on top of 2to3","archived":true,"fork":false,"pushed_at":"2020-07-22T11:35:26.000Z","size":161,"stargazers_count":529,"open_issues_count":3,"forks_count":28,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-05-08T21:52:54.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitsuhiko.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-04T17:18:11.000Z","updated_at":"2024-03-25T11:06:28.000Z","dependencies_parsed_at":"2022-09-09T19:11:40.156Z","dependency_job_id":null,"html_url":"https://github.com/mitsuhiko/python-modernize","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fpython-modernize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fpython-modernize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fpython-modernize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fpython-modernize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuhiko","download_url":"https://codeload.github.com/mitsuhiko/python-modernize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246789298,"owners_count":20834268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:01:03.876Z","updated_at":"2025-04-02T09:33:27.204Z","avatar_url":"https://github.com/mitsuhiko.png","language":"Python","readme":"::\n\n    Python           _              _        \n       _ __  ___  __| |___ _ _ _ _ (_)______ \n      | '  \\/ _ \\/ _` / -_) '_| ' \\| |_ / -_)\n      |_|_|_\\___/\\__,_\\___|_| |_||_|_/__\\___|\n      \n**Maintainedship Abandoned**\n\nThis repository is not under active development.  The canonical location is\nat https://github.com/python-modernize/python-modernize\n\n----\n\nThis library is a very thin wrapper around ``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-modernize`` command works like `2to3\n\u003chttps://docs.python.org/3/library/2to3.html\u003e`_. Here's how you'd rewrite a\nsingle file::\n\n    python-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 \u003chttps://pypi.python.org/pypi/six\u003e`_, unless the\n``--no-six`` option is used. Version 1.8.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:** `python-modernize.rtfd.org\n\u003chttp://python-modernize.readthedocs.org/en/latest/\u003e`_.\n\nSee the ``LICENSE`` file for the license of ``python-modernize``.\nUsing this tool does not affect licensing of the modernized code.\n\n.. image:: https://readthedocs.org/projects/python-modernize/badge/?version=latest\n    :target: https://readthedocs.org/projects/python-modernize/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://travis-ci.org/python-modernize/python-modernize.svg?branch=master\n    :target: https://travis-ci.org/python-modernize/python-modernize\n\n.. image:: https://coveralls.io/repos/python-modernize/python-modernize/badge.png?branch=master\n    :target: https://coveralls.io/r/python-modernize/python-modernize?branch=master\n","funding_links":[],"categories":["Compatibility","Python","资源列表","Awesome Python"],"sub_categories":["兼容性","Compatibility"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Fpython-modernize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuhiko%2Fpython-modernize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Fpython-modernize/lists"}