Skip to main content

NannoKit.ai

Official ai extension for SuperNanno — Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

NannoKit.ai provides clean, high-level APIs for common user interactions, inspired by modern desktop application patterns.

Designed to integrate seamlessly into SuperNanno and work standalone in any Textual app.


✨ Features

  • Automatic resolution of the running Textual App (no manual passing required in most cases)
  • Full keyboard and mouse support
  • Consistent behavior: Escape to cancel
  • Internal composition between components
  • Full test coverage with Textual Pilot
  • Installable as a standalone package or as part of the SuperNanno ecosystem
  • Modern and clean API design

📦 Installation

pip install nannokit-ai

To also install with SuperNanno (when available):

pip install "nannokit-ai[supernanno]"

🚀 Quick Start

from nannokit.ai import example_class_1, example_class_2
from pathlib import Path

# Example usage
example_class_1.show(
    # parameters here
    callback=lambda result: print("Result:", result),
)

# Another example
example_class_2.show(
    title="Example Title",
    callback=lambda value: print("Value:", value),
)

Integration with SuperNanno

In your main App class, attach the manager once (recommended):

from textual.app import App
from nannokit.ai.core import manager_class

class SuperNannoApp(App):
    def on_mount(self) -> None:
        manager_class.attach(self)
        # ... rest of your app

After this setup, you can call any ai component from anywhere in your application.


📖 API

Main Components

  • main_class_1.show(...) — Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • main_class_2.show(...) — Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  • main_class_3.show(...) — Ut enim ad minim veniam, quis nostrud exercitation.

All components accept common parameters such as title, initial_value, callback, and show_hidden.

section_name

section_example

Package Structure

nannokit/ai/
├── core/              # Shared manager, base classes and utilities
├── module_1/        # module_1_description
├── module_2/        # module_2_description
├── module_3/        # module_3_description
└── styles/            # TCSS stylesheets

Development

# Install in editable mode with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

Changelog

See CHANGELOG.md for recent changes (architecture refactor, bug fixes, new features, end-to-end tests, etc.).


License

BSD 3-Clause License — see the LICENSE file for details.


Part of the SuperNanno ecosystem.

Built to make Textual application development even more powerful and enjoyable.

Author: Heitor Bardemaker A. Bisneto (@BisnetoDev)

Release files for nannokit-ai 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nannokit-ai 0.0.0
File Size Uploaded
nannokit_ai-0.0.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nannokit-ai 0.0.0
File Interpreter ABI Platform
nannokit_ai-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / nannokit_ai-0.0.0.tar.gz

Download URL nannokit_ai-0.0.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b2a56c2e312ca77d80a09ada603c3aada559f2c16f394d7c504d68054ab92e2b
BLAKE2b-256 checksum
How to use checksums
3ae832ddc7889247abeaf65c352ab5e53a9d56a09d3f63522e7b650e7f9b0114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.0

Release files / nannokit_ai-0.0.0-py3-none-any.whl

Download URL nannokit_ai-0.0.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b8b3da1a6c9c3093b7adbfb89da2afc9205d96cb6c2756b7746c3ed7483af93
BLAKE2b-256 checksum
How to use checksums
0e0a26e6327bbb3fa7f070b4684da304935c4be7a3aa8bd495e616238529bc51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page