Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Abstract

Abstract is a bold attempt to bridge two worlds: the accelerating pace of innovation and the enduring value of human creativity in software development. Its core mission is to keep humans in command of what we do best—designing elegant, intentional software systems—without being shackled to any specific programming language or tech stack.

Rather than acting as a generic AI assistant that mimics human work, Abstract preserves the essence of software craftsmanship. It welcomes innovation, but not at the cost of thoughtfulness. It respects efficiency, but not as an obsession. It’s about writing software with intent, clarity, and ownership—where abstraction is not just a coding technique but a philosophy.

At its heart, Abstract is a natural language compiler. You describe your architecture, logic, or components in natural language, and Abstract compiles them into your target language. The cleaner your abstractions, the more portable and robust your code becomes.

Abstract enforces the SOLID principles by modeling your software’s dependency graph. This approach encourages cleaner boundaries, eliminates circular dependencies, and reduces the likelihood of hallucinated or unintended AI outputs. It shortens model context windows, increasing clarity and precision in code generation.

Abstract is model-agnostic, IDE-independent, and aims to be completely open, free, and interoperable with any ecosystem.

Usage Examples

🔧 Features

  • Inversion of Control: Define what should be built in natural language and where it goes. Let Abstract handle the translation to the target codebase.

  • Natural Language Compilation: Write software specs in plain language and compile them to multiple supported stacks.

  • Dependency Graph-Based Compilation: Models your codebase as a graph to enforce clean module boundaries and reduce complexity.

  • Prompt Optimization via Dependency Graph: Uses the graph to build precise prompts, reducing context length and improving output quality.

  • Enforces Good Practices:

    • Encourages absence of circular dependencies

    • Promotes clean abstractions and modular architecture

    • Single Responsibility Principle by design

  • Language Agnostic: Target multiple languages seamlessly.

  • Model Agnostic: Compatible with any LLM provider (OpenAI, Anthropic, local models, etc.).

  • IDE Independent: Integrate with any development environment of your choice.

  • Global Context Management: Keep track of architecture-level concerns across the codebase.

  • Global Instructions: Maintain architectural or project-wide goals and constraints.

  • Auto Code Review & Suggested Next Steps (Optional): Get continuous feedback and guidance from the compiler.

  • Compilation Cache: Speeds up recompilation by storing intermediate artifacts.

  • Supported Model Providers:

    • OpenAI
  • Supported Stacks:

    • React (TypeScript & JavaScript)

    • React Native (TypeScript & JavaScript)

    • Angular (TypeScript)

    • Vue (TypeScript & JavaScript)

    • Node (TypeScript & JavaScript)

    • Python

    • C#

    • Rust

    • Golang

    • Java

    • Kotlin

    • iOS (Swift)

    • HTML

🚧 Development Roadmap

  • Full CLI Interface

  • Support for new project bootstrapping based on stack

  • Integration with existing codebases

  • Support Model Providers APIs:

    • Ollama

    • Anthropic

    • others

  • Extend support and examples for:

    • Angular (TypeScript)

    • Vue (TypeScript & JavaScript)

    • Node (TypeScript & JavaScript)

    • C#

    • Rust

    • Golang

    • Java

    • Kotlin

    • iOS (Swift)

🛠️ Installation

 pip install abstract-compiler

🚀 Usage

It is highly recommended to explore the provided examples before starting. (https://github.com/ramiroviszan/abstract-examples)

Setup

  1. Add and customize the following configuration files in the root of your project:

    • ab.config – Project structure and stack settings
    • instructions.config – Global development and architectural guidelines
    • ab.debug – Add this file if you want Code reviews & Next steps suggestions outputed to 'ab.md'.
  2. Create a .env file in the project root containing your LLM API key:

    MODEL_API_KEY=your-model-api-key
    
  3. Create .ab files to define your modules in natural language.

  4. At the top of your .ab files, import any dependencies or shared components you want to reference.

Compile

To translate your .ab files into code:

abstract [--verbose] [--root path/to/root/folder/]

Optional flags:

  • --verbose: Show detailed output of the compilation process
  • --root: Set a custom root directory for compilation

🛠️ Development Installation

Follow these steps to set up Abstract development environment locally:

  1. Clone the repository:

    git clone https://github.com/ramiroviszan/abstract.git
    cd abstract
    
  2. Install Python 3.12 or higher.

  3. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  4. Install dependencies:

    pip install -r requirements.txt
    
  5. Setup CLI

    pip install -e .
    

Metadata

Release files for abstract-compiler 0.0.1b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for abstract-compiler 0.0.1b1
File Interpreter ABI Platform
abstract_compiler-0.0.1b1-py3-none-any.whl Python 3 none any Details

Release files / abstract_compiler-0.0.1b1-py3-none-any.whl

Download URL abstract_compiler-0.0.1b1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de754b269e92e15373c492dec056c0f79f8d1f48b64a80fea1bac31ce7ddc4bd
BLAKE2b-256 checksum
How to use checksums
78da65bb0d3e7a004d840de4347ece60f588a3a5996fb74fcf91c7019889c6f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for abstract-compiler 0.0.1b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page