Skip to main content

A tool for analyzing code compatibility issues when upgrading technology stacks

Project description

Stack Upgrade Analyzer

A tool for analyzing code compatibility issues when upgrading technology stacks.

PyPI version Python Versions License

Features

  • Multi-Stack Support: Analyze code compatibility for various technology stacks (Node.js, Java, Python, etc.)
  • Breaking Changes Documentation: Fetch comprehensive breaking changes documentation between versions
  • Codebase Analysis: Analyze your codebase for compatibility issues using AWS Bedrock
  • Detailed Reports: Generate detailed reports of compatibility issues with recommendations

Installation

pip install stack-upgrade-analyzer

Requirements

  • Python 3.7+
  • AWS CLI configured with access to Bedrock
  • Perplexity API key (for fetching breaking changes documentation)

Configuration

Before using the tool, configure your API keys:

stack-upgrade-analyzer config

This will prompt you to enter your Perplexity API key and AWS configuration.

Usage

Fetch Breaking Changes

# Fetch breaking changes between Node.js versions
stack-upgrade-analyzer get-changes-cmd --stack node --current-version 14.0 --upgrade-version 16.0

# Fetch breaking changes between Java versions
stack-upgrade-analyzer get-changes-cmd --stack java --current-version 11 --upgrade-version 17

Analyze Codebase

# Analyze a Node.js codebase
stack-upgrade-analyzer analyze-changes-cmd --changes-file changes/node/14.0_16.0_changes.md --dir /path/to/your/project --stack node

# Analyze a Java codebase
stack-upgrade-analyzer analyze-changes-cmd --changes-file changes/java/11_17_changes.md --dir /path/to/your/project --stack java

Supported Stacks

  • Node.js
  • Java
  • Python
  • Ruby
  • C#
  • PHP

How It Works

  1. Fetch Breaking Changes: The tool uses the Perplexity API to fetch comprehensive breaking changes documentation between versions.
  2. Analyze Codebase: The tool analyzes your codebase for compatibility issues using AWS Bedrock.
  3. Generate Report: The tool generates a detailed report of compatibility issues with recommendations.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stack_upgrade_analyzer-1.1.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stack_upgrade_analyzer-1.1.1-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file stack_upgrade_analyzer-1.1.1.tar.gz.

File metadata

  • Download URL: stack_upgrade_analyzer-1.1.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for stack_upgrade_analyzer-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5d6789ade8d9178fe52140214cae8c11580fb553811e221cbd092f8f6e4d8757
MD5 4f2f1dc23540c11880e5740f0263a5e1
BLAKE2b-256 fd905e7d4adc49705968020d6546b90970f3a89957c0bcde6b15099b5138df03

See more details on using hashes here.

File details

Details for the file stack_upgrade_analyzer-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stack_upgrade_analyzer-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e14cf08e411b835a4e64f4a063b9e491dad961e5afade9dcac8ff332d6e98e14
MD5 e75156bba6e68cb92a7c5d4e5680d9d7
BLAKE2b-256 58f40a8dbc1658f04e76dcd8e3e8f4cf6c0fc6525ca1f1b5f8a802f5de1502c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page