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.

L2M CLI

Features

  • Modern TUI: Clean 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.2.tar.gz (211.9 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.2-py3-none-any.whl (259.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: l2m-0.3.2.tar.gz
  • Upload date:
  • Size: 211.9 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.2.tar.gz
Algorithm Hash digest
SHA256 2fa56060cb66828117b81d8699b8d0935b77d4665b3edcfbf8462b098d5b5ff5
MD5 8c77c782009de877d4e5181e7d14bd79
BLAKE2b-256 698ab7a784e050ab0a336a3166f03e8affd12a3417b22fe642f57118ce869a56

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: l2m-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 259.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5aa58f92464b4d8bdb0d11b5922cbb0ed1e252d1e673162c73a36df23d52a17
MD5 fc6157427284a00bad99418163f34c3f
BLAKE2b-256 697d2cd258a76bf481f3166a7a79de2be81df88af268033bdd0c2246b13f004b

See more details on using hashes here.

Provenance

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