DEV Community

Cover image for Introducing Pythonaibrain 1.1.9 — The Offline AI Toolkit for Python Developers
Divyanshu Sinha
Divyanshu Sinha

Posted on

Introducing Pythonaibrain 1.1.9 — The Offline AI Toolkit for Python Developers

The plug-and-play Python AI toolkit for building offline intelligent assistants.

Today I'm releasing Pythonaibrain v1.1.9 — a project that has been nearly a year in the making.

The idea started from a problem I kept running into as a developer: every time I wanted to add AI capabilities to a project, I had to combine multiple libraries, learn different APIs, and spend hours wiring everything together. Speech recognition came from one package, NLP from another, computer vision from somewhere else, and maintaining all of them quickly became frustrating.

Pythonaibrain was created to simplify that experience.

Instead of juggling dozens of separate tools, Pythonaibrain provides a unified toolkit for speech processing, natural language processing, computer vision, OCR, document handling, memory systems, intelligent assistants, and local AI workflows through a consistent developer-friendly API.

Version 1.1.9 represents almost a year of development, testing, API improvements, documentation work, and stabilization across more than 50 integrated subsystems. The result is a toolkit designed to help developers build intelligent applications faster while maintaining support for local and offline-first AI workflows.

One package. Sixteen modules. A unified AI development experience for Python.

pip install pythonaibrain==1.1.9
Enter fullscreen mode Exit fullscreen mode

What Is Pythonaibrain?

Pythonaibrain is a versatile, plug-and-play Python package designed to help you build offline intelligent AI assistants and applications effortlessly. Whether you're a beginner or an experienced developer, you get a consistent, simple API across every capability — speech, vision, NLP, math, memory, document processing, and image generation.
The package ships under two namespaces:

  • pyaitk (Python AI Toolkit) — the core AI modules
  • PyAgent (ZENTRAA) — a full encrypted chat application built on top of pyaitk, with GUI and web support

Quick Start

from pyaitk.core import Brain, VectorizerMode

# Train and save
with Brain(vectorizer_mode=VectorizerMode.TFIDF) as brain:
    brain.train()
    brain.save()

# Load and chat
with Brain(vectorizer_mode=VectorizerMode.TFIDF) as brain:
    brain.load()
    print(brain.process_messages("Tell me a joke", grammar=True))
Enter fullscreen mode Exit fullscreen mode

Brain gives you intent classification, memory, NER, translation, language detection, frame classification, grammar correction, and TTS — all wired together. AdvanceBrain routes through a local quantized LLM for open-ended generation.
Three vectorizer modes:

Mode Backend Notes
BOW (default) Pure NumPy Binary Bag-of-Words, zero extra deps
TFIDF scikit-learn TF-IDF weighting
GENSIM Gensim Semantic vectors

Map intent tags to Python functions:

def open_calculator():
    import subprocess; subprocess.Popen("calc.exe")

with Brain(calculator=open_calculator) as brain:
    brain.load()
    brain.process_messages("open calculator")  # calls open_calculator() automatically
Enter fullscreen mode Exit fullscreen mode

Installation

Minimal

pip install pythonaibrain==1.1.9
Enter fullscreen mode Exit fullscreen mode

Pick your modules

pip install "pythonaibrain[tts,stt]==1.1.9"
pip install "pythonaibrain[core,ner,memory]==1.1.9"
pip install "pythonaibrain[eye]==1.1.9"
pip install "pythonaibrain[all]==1.1.9"
Enter fullscreen mode Exit fullscreen mode

Linux - system dependencies first

sudo apt install portaudio19-dev python3-pyaudio libzbar0
Enter fullscreen mode Exit fullscreen mode

Post-install

import pyaitk
pyaitk.InstallNLTKData() # downloads all required NLTK datasets
Enter fullscreen mode Exit fullscreen mode
python -m spacy download en_core_web_sum # for NER and AdvanceBrain
Enter fullscreen mode Exit fullscreen mode

Verify

pyaitk --version
pyaitk --modules
Enter fullscreen mode Exit fullscreen mode

LICENSE

Component License
Pythonaibrain LGPL-3.0-or-later
pyaitk.CLSE AGPL-3.0-or-later

For more:

Links

Start building your AI assistant today with Pythonaibrain.
— Divyanshu Sinha

Top comments (0)