Skip to main content

🤖 DotAI - Natural Language Programming Language

Join our Discord Subscribe on YouTube Connect on LinkedIn Follow on X.com

PyPI version License: MIT Python 3.8+

DotAI is a revolutionary natural language programming framework that allows you to write code and create content using plain English. Simply describe what you want to create, and DotAI will generate, save, and execute the appropriate files.

✨ Features

  • 📝 Write code in natural language
  • 🔄 Automatic code generation and execution
  • 📊 Multi-threaded task processing
  • 🛠 Enterprise-grade error handling
  • 📋 Supports multiple output formats
  • 📜 Comprehensive logging system

🚀 Quick Start

Installation

pip3 install ai-lang

Create Your First .ai File

Create a file example.ai with your requests:

Create a Python function that generates the Fibonacci sequence up to n=10 and prints it.

Create a text file containing a haiku about programming.

Create a JSON file with data about three planets including their name, distance from sun, and mass.

Run Your .ai File

ai-lang run example.ai

CLI Commands

Usage: ai-lang [OPTIONS] COMMAND [ARGS]...

  DotAI - Natural Language Programming Language CLI

Options:
  --help  Show this message and exit.

Commands:
  init     Initialize a new .ai file with example content
  run      Execute a .ai file and generate the requested files/code
  version  Show the installed version

📖 Usage Examples

1. Generate and Execute Python Code

# script.ai
Create a Python script that:
1. Generates 100 random numbers
2. Calculates their mean and standard deviation
3. Creates a histogram visualization
Execute the script and show the results.

2. Create Content Files

# content.ai
Write a technical blog post about the future of AI in software development.
Save it as a markdown file with proper formatting.

3. Data Processing

# data.ai
Create a Python script that reads a CSV file, performs data cleaning,
and outputs summary statistics. Include error handling for missing values.
Execute the script with sample data.

🛠 Advanced Features

  • Multi-threading: Process multiple requests in parallel
  • Smart Task Analysis: Automatic detection of task type and requirements
  • Execution Management: Safe execution environment for generated code
  • Comprehensive Logging: Detailed logs for debugging and monitoring

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

git clone https://github.com/The-Swarm-Corporation/.ai.git
cd .ai
pip install -e ".[dev]"

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

💡 Examples Repository

Check out our examples repository for more use cases and implementation patterns.

⚠️ Note

DotAI requires an OpenAI API key to function. Set your API key as an environment variable:

export OPENAI_API_KEY='your-api-key-here'

Or use a .env file in your project directory:

OPENAI_API_KEY=your-api-key-here

Todo

  • Add support for more LLMs (Function calling, and local models, you should have a config option to choose which one to use in the cli)
  • Add support for more file types (images, audio, video, etc, integrate with createnow.xyz)
  • Add support for more output formats (pdf, docx, etc)
  • Add support for more input types (image, audio, video, etc)
  • Add support for more task types (data analysis, data processing, data cleaning, etc)

Made with ❤️ by the DotAI Team

Metadata

Release files for ai-lang 0.0.6

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

Source distribution (sdist)

Source distribution for ai-lang 0.0.6
File Size Uploaded Provenance Actions
ai_lang-0.0.6.tar.gz 8.1 kB Without provenance Details for ai_lang-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-lang 0.0.6
File Interpreter ABI Platform Actions
ai_lang-0.0.6-py3-none-any.whl Python 3 none any Details for ai_lang-0.0.6-py3-none-any.whl

Total release size: 17.1 kB

Release files / ai_lang-0.0.6.tar.gz

Download URL ai_lang-0.0.6.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aef90870db134f743960128d2c6df589a995599b2a56fed7f433f512bbc32097
BLAKE2b-256 checksum
How to use checksums
5b4da91cb505aabec1fb88e4dc2990bb68f4209c574c86f279af4ea52c72a8bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.8 Darwin/23.3.0

Release files / ai_lang-0.0.6-py3-none-any.whl

Download URL ai_lang-0.0.6-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fbdb2fb6046df5dee024d13b22fa3f22984d4b2f51d39ad52f64375386d9b81
BLAKE2b-256 checksum
How to use checksums
13284e33aea658e6cd304c37f036bd40434755d089d29e02c0e1eed763859d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.8 Darwin/23.3.0

Security for ai-lang 0.0.6

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.

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