Skip to main content

🚀 OrionAI Python - Your AI Coding Companion

PyPI version Python License: MIT Streamlit

OrionAI Python transforms the way you write code by letting you describe what you want in plain English. Whether you're analyzing data, building machine learning models, or creating visualizations, just tell OrionAI what you need and watch it generate and execute the code for you.

What makes OrionAI special?

🎯 Just describe what you want - No need to remember complex syntax or library details. Want to "analyze sales data and create a dashboard"? Just say it.

🧠 Multiple AI providers - Choose from Google Gemini, OpenAI, or Anthropic models based on your preferences and needs.

🎓 Learn while you code - Our Python tutor explains every concept with practical examples, making it perfect for beginners and experts alike.

🎨 Beautiful web interface - Test features, experiment with code, and learn interactively through our Streamlit interface.

🔧 Handles the boring stuff - Automatically installs packages, manages dependencies, and organizes your outputs so you can focus on the fun parts.

Quick Start

from orionai.python import AIPython

# Initialize your AI assistant
ai = AIPython()

# Just tell it what you want to do
ai.ask("Load the sales.csv file and show me the top 10 customers by revenue")

# Create visualizations with natural language
ai.ask("Make a bar chart showing monthly sales trends")

# Get help with any Python concept
ai.ask("Explain how list comprehensions work with examples")

Want to try the interactive interface? Just run:

from orionai.python import ui
ui()  # Opens a web interface at http://localhost:8501

Or use the powerful CLI for terminal-based coding:

orionai  # Launch interactive CLI with LLM chat and code execution

Installation

# Install OrionAI
pip install orionai

# Or install with development dependencies
pip install orionai[dev]

Set up your API key:

# For Google Gemini (recommended - it's free!)
export GOOGLE_API_KEY="your-api-key-here"

# Or for OpenAI
export OPENAI_API_KEY="your-api-key-here"

# Or for Anthropic
export ANTHROPIC_API_KEY="your-api-key-here"

What can OrionAI do?

📊 Data Analysis & Visualization

ai.ask("Load my sales data and create a dashboard showing key metrics")
ai.ask("Find correlation between customer age and purchase amount")
ai.ask("Generate a heatmap of sales by region and month")

🤖 Machine Learning Made Simple

ai.ask("Build a classifier to predict customer churn using my dataset")
ai.ask("Create a time series forecast for next quarter's sales")
ai.ask("Train a model to detect fraud in transactions")

🐍 Python Learning Assistant

from orionai.python import SimplePythonChat

chat = SimplePythonChat()
chat.ask("How do I work with dates in Python?")
chat.explain_code("lambda x: x**2 if x > 0 else 0")
chat.get_examples("decorators")

💬 Interactive Programming

from orionai.python import InteractiveCodeChat

code_chat = InteractiveCodeChat(session_name="my_project")
code_chat.chat("I need to analyze customer behavior patterns")
code_chat.chat_with_code("Load the dataset and show basic statistics")

🖥️ Command Line Interface (CLI)

OrionAI includes a powerful CLI for terminal-based development with LLM integration:

# Launch the interactive CLI
orionai

CLI Features:

  • 🤖 Multi-provider LLM chat - Google Gemini, OpenAI, Anthropic
  • 🔧 Live code execution - Run Python code with real-time output
  • 📊 Automatic plot saving - Matplotlib/Seaborn plots saved to session folders
  • 💾 Session management - Save and restore conversation history
  • ⚡ Instant startup - Optimized lazy loading for fast performance
  • 🛠️ Error recovery - LLM automatically fixes syntax errors

CLI Workflow Example:

$ orionai
🚀 OrionAI Interactive Chat
Select session or create new...

You: Generate random data and create a line plot
🤖 OrionAI: I'll create random data and visualize it for you.

💻 Generated Code:
import numpy as np
import matplotlib.pyplot as plt

# Generate random data
x = np.linspace(0, 10, 100)
y = np.random.randn(100).cumsum()

# Create plot
plt.figure(figsize=(10, 6))
plt.plot(x, y)
plt.title("Random Data Line Plot")
plt.show()

📊 Plot saved: ~/.orionai/sessions/abc123/images/plot_20250902_143022.png
⏱️ Execution time: 2.34s

You: Now add a trend line to that plot
🤖 OrionAI: I'll add a polynomial trend line to the existing data...

CLI Configuration:

# Configure LLM provider
orionai config

# View session statistics  
orionai stats

# List all sessions
orionai sessions

What can OrionAI do?


### 🌐 Web & API Operations
```python
ai.ask("Scrape product prices from this e-commerce site")
ai.ask("Call this REST API and analyze the response")
ai.ask("Download and process data from multiple URLs")

🔒 Security & Encryption

ai.ask("Generate secure passwords and hash them")
ai.ask("Encrypt this sensitive data file")
ai.ask("Validate and sanitize user inputs")

Features by Category

📈 Data Science (15+ features)
  • Pandas operations and analysis
  • Statistical computations with NumPy
  • Data visualization with matplotlib/seaborn
  • CSV/JSON data processing
  • Missing data handling
  • Feature engineering
  • Data cleaning and transformation
🤖 Machine Learning (10+ features)
  • Scikit-learn model building
  • Model evaluation and metrics
  • Feature selection and engineering
  • Cross-validation and hyperparameter tuning
  • Classification and regression
  • Clustering analysis
  • Performance visualization
🌐 Web & Network (8+ features)
  • HTTP requests and API calls
  • Web scraping and data extraction
  • JSON/XML processing
  • URL validation and parsing
  • Rate limiting and retry logic
  • Authentication handling
  • Response processing
💻 System & Performance (7+ features)
  • Memory usage monitoring
  • Performance profiling
  • Process management
  • Environment variables
  • File system operations
  • Resource optimization
  • Timing and benchmarking
🔐 Security & Encryption (5+ features)
  • Password generation and validation
  • Data encryption/decryption
  • Input sanitization
  • Secure file handling
  • Authentication helpers
📁 File Operations (5+ features)
  • File reading/writing
  • Directory management
  • Archive creation/extraction
  • Format conversions
  • Batch file processing

Interactive Web Interface

Launch the Streamlit interface to explore all features:

from orionai.python import ui
ui()

The web interface includes:

  • 🔧 LLM Configuration - Switch between providers and models
  • 🤖 AI Assistant - General Python tasks and code generation
  • 🐍 Python Learning - Interactive Python tutor
  • 💬 Code Chat - Conversational programming with memory
  • 🧪 Feature Tests - Try out specific capabilities
  • 📚 Examples - Ready-to-run code samples
  • 📖 Documentation - Built-in guides and API reference

Configuration Options

from orionai.python import AIPython

# Basic usage (uses Google Gemini by default)
ai = AIPython()

# Specify provider and model
ai = AIPython(
    provider="openai",
    model="gpt-4",
    api_key="your-key",
    verbose=True,
    auto_install=True
)

# Advanced configuration
ai = AIPython(
    provider="anthropic",
    model="claude-3-sonnet-20240229",
    max_retries=5,
    workspace_dir="./my_outputs",
    save_outputs=True,
    ask_permission=False
)

Examples & Use Cases

Real-World Scenarios

📊 Business Analytics

ai.ask("Analyze our Q3 sales data and identify trends, top products, and underperforming regions")

🔍 Research & Analysis

ai.ask("Process this survey data, calculate significance tests, and create publication-ready charts")

🚀 Rapid Prototyping

ai.ask("Build a simple web scraper for job postings and save results to a database")

📚 Learning & Teaching

chat.ask("Show me different ways to handle errors in Python with real examples")

Why Choose OrionAI?

✅ Zero Learning Curve - Start coding with natural language immediately
✅ Production Ready - Robust error handling and enterprise features
✅ Educational - Learn Python concepts while getting work done
✅ Flexible - Works with your existing code and workflows
✅ Secure - No code execution without your permission
✅ Open Source - Transparent, community-driven development

Getting Help

License

OrionAI is released under the MIT License. See LICENSE for details.

What's Next?

We're actively working on:

  • 🚀 More LLM provider integrations
  • 📱 Mobile-responsive UI improvements
  • 🔌 Plugin system for custom extensions
  • 🌍 Multi-language support
  • ⚡ Performance optimizations
  • 🧠 Advanced AI reasoning capabilities

Ready to revolutionize your Python coding experience? Install OrionAI today and start building with the power of AI!

pip install orionai

Metadata

Release files for orionai 1.0.0

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

Source distribution (sdist)

Source distribution for orionai 1.0.0
File Size Uploaded Provenance
orionai-1.0.0.tar.gz 126.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for orionai 1.0.0
File Interpreter ABI Platform
orionai-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 223.6 kB

Release files / orionai-1.0.0.tar.gz

Download URL orionai-1.0.0.tar.gz
Size 126.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cede906c5e8be86a3777bafaba1b2c15fe080abb4b2c7c8f3b36967259ae2ed2
BLAKE2b-256 checksum
How to use checksums
af6a0a648df894b9302b2fadb56ca58d7cffdc4a81b0be0d03c0e18e341f39a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / orionai-1.0.0-py3-none-any.whl

Download URL orionai-1.0.0-py3-none-any.whl
Size 96.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e62329b3dbfd8fb25edae4c9dc62e0d59bac387453305a756c159f83c82ee50f
BLAKE2b-256 checksum
How to use checksums
1af33394afe625b2a0c02297751b317e680b260d6a24ba52ac9e1d77ec917139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for orionai 1.0.0

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

1.0.0 This release

2 release files No provenance

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