AnyAI - One-liner AI for everyone. A unified gateway to AI capabilities.
Project description
AnyAI
One-liner AI for everyone
AnyAI is a unified gateway to AI capabilities. It works standalone with built-in rule-based functionality and supports optional extras for advanced AI through sub-packages.
Installation
Basic install (includes built-in text and image utilities):
pip install anyai
With optional extras:
# Install with computer vision support
pip install anyai[cv]
# Install with LLM support
pip install anyai[llm]
# Install with OCR support
pip install anyai[ocr]
# Install everything
pip install anyai[all]
Quick Start
import anyai
# See what's available
anyai.about()
# Check installed backends
anyai.available_backends()
Text Processing
from anyai import text
# Rule-based extractive summarization — scores sentences by position,
# keyword frequency, and length, then selects the top-scoring sentences
summary = text.summarize("Your long text goes here...")
# TF-IDF-like keyword extraction — ranks words by frequency relative
# to their expected frequency in general text
keywords = text.extract_keywords("Machine learning is a subset of artificial intelligence.")
# Lexicon-based sentiment analysis with negation handling and intensifiers
# Uses an AFINN-style word scoring dictionary
result = text.sentiment("This product is absolutely wonderful!")
print(result) # {'label': 'positive', 'score': 0.85}
Image Processing
from anyai import image
# Describe an image (returns metadata; with optional deps, returns AI description)
info = image.describe("photo.jpg")
print(info)
# {'path': 'photo.jpg', 'format': 'JPEG', 'width': 1920, 'height': 1080, ...}
Utilities
from anyai import utils
# Check if optional dependencies are available
utils.check_deps("cv")
utils.check_deps("llm")
Sub-Packages
| Package | Extra | Description |
|---|---|---|
| anycv | anyai[cv] |
Computer vision: detection, segmentation, tracking |
| anyocr | anyai[ocr] |
Optical character recognition |
| anyllm | anyai[llm] |
Large language model integration |
| anyml | anyai[ml] |
Classical machine learning utilities |
| anynlp | anyai[nlp] |
Natural language processing |
| anydeploy | anyai[deploy] |
Model deployment and serving |
| tableai | anyai[table] |
Table understanding and extraction |
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
- Website: nrl.ai
- GitHub: github.com/vietanhdev/anyai
- PyPI: pypi.org/project/anyai
- Author: Viet-Anh Nguyen
Project details
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 anyai-0.2.2.tar.gz.
File metadata
- Download URL: anyai-0.2.2.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03f41c2d22afc2f4302241dfc51524a55108fd14665ad1f73082aecc0ba7be3
|
|
| MD5 |
1bf67710473f9a89f651b56864e22e7c
|
|
| BLAKE2b-256 |
5edc663bb83f4f1e736ddc1de096189292ae41dca4eb49a1b445749731faa3cd
|
File details
Details for the file anyai-0.2.2-py3-none-any.whl.
File metadata
- Download URL: anyai-0.2.2-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fab8d8e20d8b455b93a0548afade564616a3084722826fbc81c07ca6b344e571
|
|
| MD5 |
834fe8c4fc3db25d9b6e17cc39bb3898
|
|
| BLAKE2b-256 |
be1a20ceea52cf5699873aa0538ba91b78b58ee04127bb3e1cfc303299ce8146
|