Skip to content

Softoft-Orga/otobo-znuny-python-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

121 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTOBO and Znuny Python SDKs

This repository ships two customer-facing Python SDKs plus a shared GenericInterface core:

Package Import Client class
OTOBO SDK pip install otobo then from otobo import OTOBOClient OTOBOClient
Znuny SDK pip install znuny then from znuny import ZnunyClient ZnunyClient
Compatibility (deprecated) pip install otobo-znuny then from otobo_znuny.clients.otobo_client import OTOBOZnunyClient OTOBOZnunyClient

Shared REST logic lives in otrs_gi_core. OTOBO and Znuny differ mainly in CLI console paths and setup defaults.

Documentation

Built with MkDocs Material:

uv run --group docs mkdocs serve

Quick start — OTOBO

pip install otobo
from otobo import OTOBOClient, BasicAuth, ClientConfig, TicketCreate, TicketOperation

config = ClientConfig(
    base_url="https://your-otobo-server",
    webservice_name="MyWebservice",
    operation_url_map={
        TicketOperation.CREATE: "ticket-create",
        TicketOperation.GET: "ticket-get",
        TicketOperation.SEARCH: "ticket-search",
        TicketOperation.UPDATE: "ticket-update",
    },
)

client = OTOBOClient(config)
client.login(BasicAuth(user_login="agent", password="secret"))

Quick start — Znuny

pip install znuny
from znuny import ZnunyClient, BasicAuth, ClientConfig, TicketOperation

client = ZnunyClient(
    ClientConfig(
        base_url="https://your-znuny-server",
        webservice_name="MyWebservice",
        operation_url_map={
            TicketOperation.CREATE: "ticket-create",
            TicketOperation.GET: "ticket-get",
            TicketOperation.SEARCH: "ticket-search",
            TicketOperation.UPDATE: "ticket-update",
        },
    )
)

CLI tools

otobo-cli setup-system
znuny-cli setup-system

The legacy combined CLI remains available via python -m otobo_znuny.cli.app.

Features

  • Async HTTP via httpx.AsyncClient
  • Pydantic v2 models for requests and responses
  • Ticket CRUD: create, search, get, update
  • search_and_get helper
  • Webservice YAML builder and interactive setup wizard

License

MIT © Softoft, Tobias A. Bueck

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages