Skip to main content

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

Project description

AnyAI

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.1.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.1-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anyai-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5a429e113641b8a1fe7e5e14f620831df3ba71d5a64b7b512a3e09831fefcf85
MD5 25a0fa50a5b32cde179ffd0eb584a260
BLAKE2b-256 5917873b6a66d6d7de005dd63686430fc9ee95fa754641126ee685ac490817c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anyai-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54d0674ed19e26b8cbb0c9e62788891c0355145291a6885e15c67753d38c37ce
MD5 c8c828bbd14bc7dd5ae4cc8583dd65ff
BLAKE2b-256 da46b90200c0b06fde10efe018a9cfdf2cfbc9f0431f989bc71fdaade7de585d

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