Skip to main content

Base package with core implementations for Open Ticket AI - ticket system automation and AI integration

Project description

otai-base

Base package with core implementations for Open Ticket AI - ticket system automation and AI integration.

Overview

otai-base provides foundational abstractions and utilities for building Open Ticket AI plugins. It includes:

  • Core data models using Pydantic v2 for type-safe ticket system operations
  • Plugin interfaces for extending Open Ticket AI with custom ticket system integrations
  • Template rendering with Jinja2 for dynamic content generation
  • Unified ticket abstractions for working across multiple ticket systems

Installation

pip install otai-base

For development:

pip install otai-base[dev]

Usage

Creating a Plugin

from otai_base.base_plugin import BasePlugin

class MyTicketSystemPlugin(BasePlugin):
    name = "my-ticket-system"

    # Implement plugin interface methods

Using Core Models

from otai_base.models import UnifiedTicket, UnifiedEntity

ticket = UnifiedTicket(
    subject="Example Ticket",
    body="Ticket description",
    queue=UnifiedEntity(name="Support"),
    priority=UnifiedEntity(name="High"),
)

Features

  • 🎯 Type-safe - Full type hints and Pydantic validation
  • 🔌 Extensible - Plugin system for custom integrations
  • 🎨 Template support - Jinja2 integration for dynamic content
  • 🔄 Unified interface - Work with multiple ticket systems using a single API
  • 🐍 Modern Python - Requires Python 3.13+

Documentation

Full documentation is available at open-ticket-ai.com.

Requirements

  • Python 3.13 or higher
  • Pydantic 2.11.7+
  • Jinja2 3.1.0+

Contributing

Contributions are welcome! Please see the main repository for contribution guidelines.

License

LGPL-2.1-only - See LICENSE for details.

Related Packages

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

otai_base-1.5.14.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

otai_base-1.5.14-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file otai_base-1.5.14.tar.gz.

File metadata

  • Download URL: otai_base-1.5.14.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for otai_base-1.5.14.tar.gz
Algorithm Hash digest
SHA256 effb08bc9e76c3d38e4484f5fee8c29b1a7aa673017859329c7fa111f65be64f
MD5 ddbdb7978198c81fcaeb52566e6e6086
BLAKE2b-256 eb3aed9216f90719e0d23865a22721d4bc3fb06d04211aa3bb4d0599e1e4daa3

See more details on using hashes here.

File details

Details for the file otai_base-1.5.14-py3-none-any.whl.

File metadata

  • Download URL: otai_base-1.5.14-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for otai_base-1.5.14-py3-none-any.whl
Algorithm Hash digest
SHA256 9fef8c46e657747001ee14d1064d5aa526b24f02496ce7d1695e9db2424c9b2f
MD5 21fe75e064745e26485f0fefaaf1ef28
BLAKE2b-256 7ce82204073a1fd3a4485df16162cde5547c5e49201bb32e1929243cfc2a82ad

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