Skip to main content

Legacy2Modern: COBOL to Python modernization

Project description

Legacy2Modern (L2M)

GitHub Repo stars Follow us on X Join us on Discord Contributing Guide

Legacy2Modern (L2M) is an open-source, AI coding agent that helps you modernize legacy codebases into modern programming languages within your terminal.

Features

  • Modern TUI: Clean, Codex-style terminal interface with brand-colored UI elements
  • Multi-Provider Support: Works with OpenAI, Anthropic, DeepSeek, Gemini, and 100+ other LLM providers via LiteLLM
  • Interactive Chat: Natural conversation with your codebase - ask questions, request changes, and get AI assistance
  • File Management: Add files to context, drop them when done, view what's in your chat session
  • Git Integration: Automatic commits, undo support, and repository-aware context
  • Streaming Responses: Real-time AI responses with markdown rendering
  • Session History: Persistent conversation history across sessions

Quick Start

Prerequisites

  • Python 3.10+
  • BYOK for your preferred LLM provider (OpenAI, Anthropic, etc.)

Installation

curl -fsSL https://astrio.app/l2m/install | bash

or

pip install l2m

Set Up API Keys

To set up your API key, create a .env file at the root of your project and add your provider key(s):

# Example for OpenAI:
OPENAI_API_KEY=sk-...

# Example for Anthropic:
ANTHROPIC_API_KEY=sk-ant-...

# Example for DeepSeek:
DEEPSEEK_API_KEY=...

# Add other providers as needed

You can quickly start by copying the example environment file:

cp .env.example .env

Usage

# Start the interactive CLI
l2m

Documentation

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Security

For security vulnerabilities, please email naingoolwin.astrio@gmail.com instead of using the issue tracker. See SECURITY.md for details.

Contributing

We welcome all contributions — from fixing typos to adding new language support! See CONTRIBUTING.md for setup instructions, coding guidelines, and how to submit PRs.

Contributors

contributors

Community & Support

Contact Us

For partnership inquiries or professional use cases:

📧 naingoolwin.astrio@gmail.com

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

l2m-0.3.0.tar.gz (211.3 kB view details)

Uploaded Source

Built Distribution

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

l2m-0.3.0-py3-none-any.whl (255.4 kB view details)

Uploaded Python 3

File details

Details for the file l2m-0.3.0.tar.gz.

File metadata

  • Download URL: l2m-0.3.0.tar.gz
  • Upload date:
  • Size: 211.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for l2m-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f697a7bec4a8e85036c03c7c8c8bdceb8e7b9119293805eee90e414158630ed4
MD5 22b9696433e39b7d28cd10edae821786
BLAKE2b-256 7c5a8d97e7fa5b7a5f1f1f84936cc993e93dca33499a9ffb9cb67bda2562d0e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for l2m-0.3.0.tar.gz:

Publisher: pypi-publish.yml on astrio-ai/l2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file l2m-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: l2m-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 255.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for l2m-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e0c53c299760bcb8fedb5524fb2aa1850f9fc1e83ff7f9f56483fd5d4da51b0
MD5 56d6bf2663826361b4a229d71bc9b4a0
BLAKE2b-256 63ee2c4e193e88d7294b2769bcb9f554d105db42498a6814cf1d76e0c59e2bb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for l2m-0.3.0-py3-none-any.whl:

Publisher: pypi-publish.yml on astrio-ai/l2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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