Skip to main content

AnyAI - One-liner AI for everyone. A unified gateway to AI capabilities.

Project description

AnyAI

anyai logo

One-liner AI for everyone.

PyPI Python License

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

# Summarize a long document
summary = text.summarize("Your long text goes here...")

# Extract keywords
keywords = text.extract_keywords("Machine learning is a subset of artificial intelligence.")

# Analyze sentiment
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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Links

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

anyai-0.2.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anyai-0.2.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file anyai-0.2.0.tar.gz.

File metadata

  • Download URL: anyai-0.2.0.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for anyai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9a62e859f27c2f563f51e18597fabe5d9afe3d55cebc5a218af2e43b0423aba4
MD5 9ba4b8da00bfcedc5ce419d6f2809688
BLAKE2b-256 d709af65047ccd7c102c90043428240c997d7c2465316c2c858f478ed71ebe08

See more details on using hashes here.

File details

Details for the file anyai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: anyai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for anyai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 054852d85a33d62f97df615998424d2599d465ed8c0b6b3c4ab7110eee0dbd1e
MD5 4d401316894f1e20948a098c9a864a2e
BLAKE2b-256 8414fc456728b906343953be8b93e9736b44a98bbaa4e3f97da1ffb48070b5cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page