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.1.tar.gz (209.0 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.1-py3-none-any.whl (252.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: l2m-0.3.1.tar.gz
  • Upload date:
  • Size: 209.0 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.1.tar.gz
Algorithm Hash digest
SHA256 f9a1c7f714346a9998514ce31a0dc2f6e8f090c3690a3701ecd21a05400385e5
MD5 589471199fd660992fad67957dd05a1f
BLAKE2b-256 9c77db4828f451569894fe93e6ea59cf02fdb97f76ac8bd63c6adadaa41427c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for l2m-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: l2m-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 252.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3d44bab7a6e9e6ef7a3e22f4c89f6d1039607cc10fe72574f4ecd3637144e9
MD5 e69449513709d5f48bc338c3bcda2e1d
BLAKE2b-256 2c21f610434a959fa4cc8a8047f55ff72bb2f4488af667dbc19a8188c78eab28

See more details on using hashes here.

Provenance

The following attestation bundles were made for l2m-0.3.1-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