Skip to main content

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

Release files for otai-base 1.5.14

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

Source distribution (sdist)

Source distribution for otai-base 1.5.14
File Size Uploaded
otai_base-1.5.14.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for otai-base 1.5.14
File Interpreter ABI Platform
otai_base-1.5.14-py3-none-any.whl Python 3 none any Details

Total release size:35.2 kB

Release files / otai_base-1.5.14.tar.gz

Download URL otai_base-1.5.14.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
effb08bc9e76c3d38e4484f5fee8c29b1a7aa673017859329c7fa111f65be64f
BLAKE2b-256 checksum
How to use checksums
eb3aed9216f90719e0d23865a22721d4bc3fb06d04211aa3bb4d0599e1e4daa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.8

Release files / otai_base-1.5.14-py3-none-any.whl

Download URL otai_base-1.5.14-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fef8c46e657747001ee14d1064d5aa526b24f02496ce7d1695e9db2424c9b2f
BLAKE2b-256 checksum
How to use checksums
7ce82204073a1fd3a4485df16162cde5547c5e49201bb32e1929243cfc2a82ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

1.5.14 This release

2 release files

1.5.13

2 release files

1.5.11

2 release files

1.5.10

2 release files

1.5.9

2 release files

1.5.8

2 release files

1.5.7

2 release files

1.5.6

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.19

2 release files

1.4.17

2 release files

1.4.16

2 release files

1.4.15

2 release files

1.4.14

2 release files

1.4.13

2 release files

1.4.12

2 release files

1.4.11

2 release files

1.4.10

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.2.5

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