# 🤖 DotAI - Natural Language Programming Language
[![Join our Discord](https://img.shields.io/badge/Discord-Join%20our%20server-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/agora-999382051935506503) [![Subscribe on YouTube](https://img.shields.io/badge/YouTube-Subscribe-red?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@kyegomez3242) [![Connect on LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kye-g-38759a207/) [![Follow on X.com](https://img.shields.io/badge/X.com-Follow-1DA1F2?style=for-the-badge&logo=x&logoColor=white)](https://x.com/kyegomezb)
[![PyPI version](https://badge.fury.io/py/dotai.svg)](https://badge.fury.io/py/dotai)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
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
```bash
pip3 install ai-lang
```
### Create Your First .ai File
Create a file `example.ai` with your requests:
```plaintext
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
```python
from ai_lang.ai_lang import process_ai_file_sync
from loguru import logger
import sys
try:
results = process_ai_file_sync("test.ai")
logger.info(f"Successfully processed {len(results)} requests")
except Exception as e:
logger.exception(f"Failed to process file: {e}")
sys.exit(1)
```
## 📖 Usage Examples
### 1. Generate and Execute Python Code
```plaintext
# 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
```plaintext
# 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
```plaintext
# 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.
```bash
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](LICENSE) file for details.
## 🔗 Links
- [Documentation](https://dotai.readthedocs.io/)
- [PyPI Package](https://pypi.org/project/dotai/)
- [Issue Tracker](https://github.com/yourusername/dotai/issues)
## 💡 Examples Repository
Check out our [examples repository](https://github.com/The-Swarm-Corporation/.ai) for more use cases and implementation patterns.
## ⚠️ Note
DotAI requires an OpenAI API key to function. Set your API key as an environment variable:
```bash
export OPENAI_API_KEY='your-api-key-here'
```
Or use a `.env` file in your project directory:
```plaintext
OPENAI_API_KEY=your-api-key-here
```
---
Made with ❤️ by the DotAI Team
Raw data
{
"_id": null,
"home_page": "https://github.com/The-Swarm-Corporation/.ai",
"name": "ai-lang",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "artificial intelligence, deep learning, natural language processing, prompt engineering",
"author": "Kye Gomez",
"author_email": "kye@apac.ai",
"download_url": "https://files.pythonhosted.org/packages/5b/60/bb7a550b44fdef867487491bd65aacc84debd7e2e5a15e9f9901c2b9e548/ai_lang-0.0.4.tar.gz",
"platform": null,
"description": "\n# \ud83e\udd16 DotAI - Natural Language Programming Language\n\n[![Join our Discord](https://img.shields.io/badge/Discord-Join%20our%20server-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/agora-999382051935506503) [![Subscribe on YouTube](https://img.shields.io/badge/YouTube-Subscribe-red?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@kyegomez3242) [![Connect on LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kye-g-38759a207/) [![Follow on X.com](https://img.shields.io/badge/X.com-Follow-1DA1F2?style=for-the-badge&logo=x&logoColor=white)](https://x.com/kyegomezb)\n\n\n[![PyPI version](https://badge.fury.io/py/dotai.svg)](https://badge.fury.io/py/dotai)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)\n\nDotAI 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.\n\n## \u2728 Features\n\n- \ud83d\udcdd Write code in natural language\n- \ud83d\udd04 Automatic code generation and execution\n- \ud83d\udcca Multi-threaded task processing\n- \ud83d\udee0 Enterprise-grade error handling\n- \ud83d\udccb Supports multiple output formats\n- \ud83d\udcdc Comprehensive logging system\n\n## \ud83d\ude80 Quick Start\n\n### Installation\n\n```bash\npip3 install ai-lang\n```\n\n### Create Your First .ai File\n\nCreate a file `example.ai` with your requests:\n\n```plaintext\nCreate a Python function that generates the Fibonacci sequence up to n=10 and prints it.\n\nCreate a text file containing a haiku about programming.\n\nCreate a JSON file with data about three planets including their name, distance from sun, and mass.\n```\n\n### Run Your .ai File\n\n```python\n\nfrom ai_lang.ai_lang import process_ai_file_sync\nfrom loguru import logger\nimport sys\n\ntry:\n results = process_ai_file_sync(\"test.ai\")\n logger.info(f\"Successfully processed {len(results)} requests\")\nexcept Exception as e:\n logger.exception(f\"Failed to process file: {e}\")\n sys.exit(1)\n\n\n```\n\n## \ud83d\udcd6 Usage Examples\n\n### 1. Generate and Execute Python Code\n\n```plaintext\n# script.ai\nCreate a Python script that:\n1. Generates 100 random numbers\n2. Calculates their mean and standard deviation\n3. Creates a histogram visualization\nExecute the script and show the results.\n```\n\n### 2. Create Content Files\n\n```plaintext\n# content.ai\nWrite a technical blog post about the future of AI in software development.\nSave it as a markdown file with proper formatting.\n```\n\n### 3. Data Processing\n\n```plaintext\n# data.ai\nCreate a Python script that reads a CSV file, performs data cleaning,\nand outputs summary statistics. Include error handling for missing values.\nExecute the script with sample data.\n```\n\n## \ud83d\udee0 Advanced Features\n\n- **Multi-threading**: Process multiple requests in parallel\n- **Smart Task Analysis**: Automatic detection of task type and requirements\n- **Execution Management**: Safe execution environment for generated code\n- **Comprehensive Logging**: Detailed logs for debugging and monitoring\n\n## \ud83e\udd1d Contributing\n\nContributions 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.\n\n```bash\ngit clone https://github.com/The-Swarm-Corporation/.ai.git\ncd .ai\npip install -e \".[dev]\"\n```\n\n## \ud83d\udcdd License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## \ud83d\udd17 Links\n\n- [Documentation](https://dotai.readthedocs.io/)\n- [PyPI Package](https://pypi.org/project/dotai/)\n- [Issue Tracker](https://github.com/yourusername/dotai/issues)\n\n## \ud83d\udca1 Examples Repository\n\nCheck out our [examples repository](https://github.com/The-Swarm-Corporation/.ai) for more use cases and implementation patterns.\n\n## \u26a0\ufe0f Note\n\nDotAI requires an OpenAI API key to function. Set your API key as an environment variable:\n\n```bash\nexport OPENAI_API_KEY='your-api-key-here'\n```\n\nOr use a `.env` file in your project directory:\n\n```plaintext\nOPENAI_API_KEY=your-api-key-here\n```\n\n---\nMade with \u2764\ufe0f by the DotAI Team",
"bugtrack_url": null,
"license": "MIT",
"summary": "DotAI - Natural Language Programming Language",
"version": "0.0.4",
"project_urls": {
"Documentation": "https://github.com/The-Swarm-Corporation/.ai",
"Homepage": "https://github.com/The-Swarm-Corporation/.ai",
"Repository": "https://github.com/The-Swarm-Corporation/.ai"
},
"split_keywords": [
"artificial intelligence",
" deep learning",
" natural language processing",
" prompt engineering"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "757ffeb51d5a517fcc764a7fe039dba5a8be0d497e2c5637013355c16963da52",
"md5": "74c3a638cdc5d9baca14b27d10e23d67",
"sha256": "5efe6adab355d9560607f04871c13f75512dae7d1eeb907a89c7f9663e5cebb4"
},
"downloads": -1,
"filename": "ai_lang-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "74c3a638cdc5d9baca14b27d10e23d67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 8903,
"upload_time": "2024-11-14T00:02:21",
"upload_time_iso_8601": "2024-11-14T00:02:21.722837Z",
"url": "https://files.pythonhosted.org/packages/75/7f/feb51d5a517fcc764a7fe039dba5a8be0d497e2c5637013355c16963da52/ai_lang-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5b60bb7a550b44fdef867487491bd65aacc84debd7e2e5a15e9f9901c2b9e548",
"md5": "911cb099486535bfa2566d3a5475e188",
"sha256": "30c49b85f693e5e30f1e1d0eb5cdeafaf397ce06d36faa1095220496728579d9"
},
"downloads": -1,
"filename": "ai_lang-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "911cb099486535bfa2566d3a5475e188",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 7891,
"upload_time": "2024-11-14T00:02:22",
"upload_time_iso_8601": "2024-11-14T00:02:22.580036Z",
"url": "https://files.pythonhosted.org/packages/5b/60/bb7a550b44fdef867487491bd65aacc84debd7e2e5a15e9f9901c2b9e548/ai_lang-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-14 00:02:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "The-Swarm-Corporation",
"github_project": ".ai",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "ai-lang"
}