awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
adamchainz avatar

adamchainz/django-upgrade

0
View on GitHub↗
1,214 stars·81 forks·Python·MIT·16 viewsdjango-upgrade.readthedocs.io/en/latest↗

Django Upgrade

Django-upgrade is a command-line tool that automatically modernizes legacy Python and Django codebases by rewriting outdated syntax patterns into current idioms. It operates as a static analysis linter and source code transformation engine, parsing files to identify deprecated constructs and replacing them in place while preserving project integrity.

The software uses a rule-based transformation architecture driven by abstract syntax tree parsing to execute modular refactoring tasks. Developers can configure target version settings to ensure the tooling only applies updates appropriate for their minimum framework requirements, handling codebase maintenance and dependency refactoring across large software projects.

Features

  • Automated Code Refactoring - Automates code refactoring by transforming legacy Python and Django constructs into modern equivalents.
  • Automated Codebase Maintenance - Automates repetitive refactoring tasks across large software projects to maintain code standards.
  • Pattern-Based Replacements - Matches specific outdated patterns against source code and applies pattern-based replacements to update them.
  • Project Modernizers - Upgrades older Django project codebases to newer syntax and idioms automatically during framework updates.
  • Upgraders - Automatically modernizes legacy Django code patterns to newer idioms and resolves framework deprecations.
  • Target Version Configuration - Allows developers to specify target version settings to ensure code upgrades match their minimum framework requirements.
  • Static Analysis Engines - Inspects Python source files without execution to identify deprecated constructs across the codebase.
  • Python Refactoring Libraries - Refactors Python source files to adopt newer language features and library idioms.
  • Syntax Tree Transformers - Parses Python code into a syntax tree to perform structured transformations and rewrite outdated syntax.
  • Static Code Analysis - Operates as a static analysis linter and fixer that detects deprecated syntax and rewrites it in place.
  • Python Code Modernizers - Provides a CLI tool that automatically modernizes Django Python code to match newer framework versions.

Star history

Star history chart for adamchainz/django-upgradeStar history chart for adamchainz/django-upgrade

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Django Upgrade

These projects share indexed features with Django Upgrade. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • dsherret/ts-morphdsherret avatar

    dsherret/ts-morph

    6,110View on GitHub↗

    ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It provides a programmatic interface for analyzing, modifying, and generating TypeScript source code, serving as a tool for automated code refactoring and source code generation. The library simplifies the process of navigating and inspecting project structures by offering an object-oriented abstraction over the underlying compiler API. It allows for the programmatic transformation of existing codebases to automate structural updates and bulk code migrations. Its capabilities cover sta

    TypeScript
    View on GitHub↗6,110
  • openrewrite/rewriteopenrewrite avatar

    openrewrite/rewrite

    3,312View on GitHub↗

    OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework

    Javaabstract-syntax-treeastcode-search
    View on GitHub↗3,312
  • benjamn/recastbenjamn avatar

    benjamn/recast

    5,246View on GitHub↗

    Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into abstract syntax trees that can be modified and then printed back into source code. The project focuses on formatting-preserving transformations, storing original whitespace and indentation metadata within syntax tree nodes to reconstruct code without losing its original layout. It also generates character-level source maps to maintain precise correspondences between original input and transformed output. The toolkit includes utilities for syntax tree manipulation using a visito

    TypeScript
    View on GitHub↗5,246
  • rectorphp/rectorrectorphp avatar

    rectorphp/rector

    10,199View on GitHub↗

    Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize syntax using predefined rules. It functions as a static analysis engine that inspects code structures and types to identify refactoring targets without executing the code. The project provides a framework for defining custom transformation logic to automate project-specific changes. It distinguishes itself by offering specialized capabilities for migrating legacy or custom frameworks to modern alternatives and converting docblock annotations into native language attributes. The s

    PHPastautomated-upgradesinstant-upgrades
    View on GitHub↗10,199
Compare all 30 related projects→

Frequently asked questions

What does adamchainz/django-upgrade do?

Django-upgrade is a command-line tool that automatically modernizes legacy Python and Django codebases by rewriting outdated syntax patterns into current idioms. It operates as a static analysis linter and source code transformation engine, parsing files to identify deprecated constructs and replacing them in place while preserving project integrity.

What are the main features of adamchainz/django-upgrade?

The main features of adamchainz/django-upgrade are: Automated Code Refactoring, Automated Codebase Maintenance, Pattern-Based Replacements, Project Modernizers, Upgraders, Target Version Configuration, Static Analysis Engines, Python Refactoring Libraries.

Which projects share features with adamchainz/django-upgrade?

Projects with overlapping indexed features include: dsherret/ts-morph — ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… rectorphp/rector — Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into… rust-lang/rust-clippy — This project is a static analysis linter, code quality tool, and language auditor for Rust. It functions as an… ast-grep/ast-grep — ast-grep is a command-line utility and static analysis engine designed for searching, linting, and refactoring source…

Curated searches featuring Django Upgrade

Hand-picked collections where Django Upgrade appears.
  • Project migration tools