Production-ready AI SDK for Security Scanning, Resume Intelligence, Voice Intelligence, REST APIs, CLI, and Multi-Provider LLM Integration.
Project description
ai_verse
ai_verse is an open-source, production-ready AI SDK, Command Line Interface (CLI), enterprise REST API server, and containerized microservice platform for Python.
Features
- Multi-Provider Engine: Supports OpenRouter, OpenAI, Anthropic, Google Gemini, xAI Grok, Local Ollama, and Azure OpenAI.
- Automatic Fallback Chain: Transparent failover across backup providers if primary models experience downtime.
- AI Security Scanners: Integrated scanners for SMS Smishing, WhatsApp Scams, Phishing Emails, Websites, Payment Receipts, QR Codes, and Android APK Malware.
- Document & Vision Intelligence: 4-stage PDF/OCR extraction pipeline (PyMuPDF -> pdfplumber -> pypdf -> pytesseract) for ATS Resume Analysis and Receipt Processing.
- Voice Intelligence: Real speech-to-text audio transcription powered by
faster-whisper. - Enterprise REST API Server: Async FastAPI server (
/api/v1) with OpenAPI/Swagger documentation (/docs) and file upload endpoints. - Rich CLI Tool: Command-line application
ai-versepowered by Typer and Rich. - Plugin Framework: Dynamic plugin loader, manager, and lifecycle hooks (
before_request,after_request,before_scan,after_scan). - Caching System: High-performance in-memory (
MemoryCache) and persistent disk (DiskCache) caching with TTL support. - Production Containerization: Multi-stage Docker image running under non-root user
appuser(UID 10001) with healthchecks.
Architecture
┌───────────────────────────────┐
│ AI Facade (AI()) │
└──────────────┬────────────────┘
│
┌───────────────────────┼───────────────────────┐
▼ ▼ ▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Security Scans │ │ Doc & Vision │ │Voice Intelligence│
└──────────────────┘ └──────────────────┘ └──────────────────┘
│ │ │
└───────────────────────┼───────────────────────┘
▼
┌───────────────────────┐
│ Provider Factory │
└───────────┬───────────┘
│
┌───────────┬───────────┼───────────┬───────────┐
▼ ▼ ▼ ▼ ▼
┌─────────────┐┌─────────┐┌──────────┐┌─────────┐┌───────────┐
│ OpenRouter ││ OpenAI ││Anthropic ││ Gemini ││ Ollama │
└─────────────┘└─────────┘└──────────┘└─────────┘└───────────┘
Installation & Clone
git clone https://github.com/i-amshifa-06/ai_verse.git
cd ai_verse
pip install ai_verse
For extra features:
# Install with audio processing support (faster-whisper)
pip install ai_verse[audio]
# Install with document OCR support (pytesseract & pdfplumber)
pip install ai_verse[ocr]
Environment Setup
Copy .env.example to .env or set your API key:
export OPENROUTER_API_KEY="sk-or-v1-your_openrouter_api_key_here"
For other providers:
OPENAI_API_KEY: OpenAI API KeyANTHROPIC_API_KEY: Anthropic Claude API KeyGOOGLE_API_KEY: Google Gemini API KeyXAI_API_KEY: xAI Grok API KeyOLLAMA_BASE_URL: Local Ollama endpoint (defaulthttp://localhost:11434)
Quick Start Examples
1. Python SDK
from ai_verse import AI
# Initialize AI facade with OpenAI (or default OpenRouter)
ai = AI(provider="openai")
# Chat Completion
response = ai.chat("Explain zero trust network architecture in 2 sentences.")
print(response.data["text"])
# SMS Smishing Scan
sms_res = ai.scan_sms("URGENT: Your account is locked. Verify at http://bit.ly/fake")
print(f"Risk Score: {sms_res.data['risk_score']}/100 | Risk Level: {sms_res.data['risk_level']}")
# Resume Analysis
resume_res = ai.analyze_resume("resume.pdf", job_description="AppSec Engineer")
print(f"ATS Score: {resume_res.data['ats_score']}%")
2. Command Line Interface (CLI)
ai-verse chat "Explain quantum computing in simple terms."
ai-verse scan sms "Verify account at http://bit.ly/fake"
ai-verse resume analyze resume.pdf --job-description "AppSec Engineer"
ai-verse doctor
3. FastAPI REST API Server
uvicorn ai_verse.api.main:app --host 0.0.0.0 --port 8000 --reload
Visit http://localhost:8000/docs for Swagger UI.
4. Production Docker
docker build -f docker/Dockerfile -t ai-verse:latest .
docker run -d --name ai-verse-server \
-p 8000:8000 \
-e OPENROUTER_API_KEY="your_api_key_here" \
ai-verse:latest
Showcase & Frontend Integrations
Complete cross-platform showcase examples available under examples/showcase/:
- React / Next.js:
examples/showcase/nextjs_route_snippet.ts - Flutter:
examples/showcase/flutter_client.dart - Electron:
examples/showcase/electron_preload.js - Node.js:
examples/showcase/nodejs_client.js
Documentation
Full documentation is available at https://i-amshifa-06.github.io/ai_verse or under docs/:
Contributing
We welcome community contributions! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md.
License
ai_verse is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_verse-1.0.1.tar.gz.
File metadata
- Download URL: ai_verse-1.0.1.tar.gz
- Upload date:
- Size: 86.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dba85b26cd838c7f5ca192a9e5fb02f260de55aa08edc3afe134f07732d3e28
|
|
| MD5 |
d32e3d3f81f11534cd2718a8ce5ab249
|
|
| BLAKE2b-256 |
3a405cf8a308044990ed8e880986fd2807d56153ea5b710228fc7e7fb3108b76
|
File details
Details for the file ai_verse-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ai_verse-1.0.1-py3-none-any.whl
- Upload date:
- Size: 99.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde288778d5842f511b056a0089b1d55c611176294e714cd05e62da2004abc1c
|
|
| MD5 |
27ddb2eaf3920a89a9c73fee1b06cf4b
|
|
| BLAKE2b-256 |
058b2bfbdf35f55b3029d8d6f87a7f7b66e8d275f5ca316b0818ec4324a420bc
|