an object-oriented REST API client for zammad
Project description
zammadoo
An object-oriented REST API client for the Zammad helpdesk sytem.
Find the full documentation under https://zammadoo.readthedocs.io.
Real life examples
from zammadoo import Client
client = Client("https://myhost.com/api/v1/", http_auth=("<username>", "<mysecret>"))
# or use an API token created via https://myhost.com/#profile/token_access
client = Client("https://myhost.com/api/v1/", http_token="<token>")
# I have a new ticket with id 17967 and need to download the attachment file
path = client.tickets(17967).articles[0].attachments[0].download()
print(f"The downloaded file is {path}")
# I need to append a new ticket article with attached files
client.ticket(17967).create_article("Server down again. See logfiles.", files=["kern.log", "syslog"])
# I want to close all tickets with the tag "deprecated" and remove the tag
for ticket in client.tickets.search("tags:deprecated"):
ticket.update(state="closed")
ticket.remove_tags("deprecated")
Design principles
This library provides a fluent workflow. Since the resources are wrapped in its own type, your IDE can show you many of the available properties and methods. Furthermore you can ensure type safety with Python’s static type checkers like mypy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for zammadoo-0.3.0.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6aa132c36d368fa72a766d2b7e973fec94e09716758b9b49ca6eeabdab16924 |
|
MD5 | af5a0a2160f82df5c5e1fd40f8d1fc28 |
|
BLAKE2b-256 | 3875f514845984852660a0e94510d229885f1bed4fe88ebb45311b2a36a28099 |