Skip to main content

Freshdesk Python connector

Install dex-connector-freshworks-freshdesk==0.2.0. The package implements searchTickets, getTicket, createTicket, updateTicket, and addNote with operation-specific Step factories, and the ticketChanged poll Trigger. It requires dex-connectors-sdk>=0.12.0, the release with the durable poll Trigger kit.

Bind a freshdesk project connection through new_project_connection, or use Client with a static credential provider in a local test. The connection needs the helpdesk domain and secret api_key described in the parent README. The optional maxResponseBytes setting bounds successful response bodies, and pollInterval (at least 10 seconds) sets the delay between ticketChanged polls; blank uses the manifest default. Credentials are resolved before every request.

ticketChanged Trigger

ticketChanged starts a Flow for each Freshdesk ticket created or updated after the binding first started. It polls List All Tickets, GET /api/v2/tickets with updated_since, order_by=updated_at, order_type=asc, and per_page=100, on dex_connectors.sdk.pollingtrigger at parity with the Go connector; the parent README describes the baseline, the one-minute overlap window, change kinds, paging, rate limits, and the rejected-cursor reseed. Each delivery is a TriggerEvent[TicketChangedEvent] whose ID is freshdesk-ticket-<id>-<updated_at Unix seconds>; change_kind is TICKET_CHANGE_CREATED or TICKET_CHANGE_UPDATED. Read the ticket with getTicket for its description, requester, and conversations, which the list omits.

The cursor token is the Go connector's JSON document byte for byte, and inbox payloads decode in either language, so Go and Python replicas can share one binding. tests/test_ticket_change_fetcher.py replays fetches the Go connector recorded and compares every request, cursor token, and event ID.

new_project_ticket_trigger_runner loads each saved binding's configuration (an unsaved binding delivers every change kind) and records every change in the binding's project Trigger inbox before its cursor commits. From examples/ticket_changed/triggers.py:

target = new_dex_flow_trigger_target(
    dex_client,
    flow,
    accepts_event=accepts_every_ticket_change,
    resolve_flow_id=resolve_ticket_change_flow_id,
    map_to_flow_input=map_to_ticket_change,
)
route = ProjectTicketChangedTriggerRoute(TICKET_CHANGED_TRIGGER_BINDING, target)
return new_project_ticket_trigger_runner(
    project, connection, ProjectTicketTriggerRunnerConfig([route], logger=logger)
)

The runner takes the connection from new_project_connection; the caller closes it after the runner stops. new_ticket_trigger_runner takes explicit TicketChangedTriggerRoute values and cursor stores; a route without a cursor keeps it in memory. new_ticket_changed_trigger is the equivalent of Go's generated NewTicketChangedTrigger: it keeps its cursor in memory, so it records a new baseline on every start. A Flow declares the binding for Dex Web with define_ticket_changed_trigger_binding; the binding's only configuration is the optional changeKinds list, saved under the binding in the project configuration.

Differences from Go: logging goes through a TriggerLogger passed in the runner configuration instead of the client's WithLogger option, the project runner takes an open connection instead of a connection name and options, and inbox payloads store object keys in sorted order instead of Go's struct order.

Examples and verification

The checked-in search example and ticket change example run through a Dex Worker. The 48 Go-recorded provider scenarios cover the five operations, including retries, uncertainty, and heartbeat checkpoints. They are replayed by uv run pytest tests/test_conformance.py. The search example's integration test uses a real local Dex stack with the generated mock; the ticket change example's integration tests poll a stateful ticket-list fake into a real Dex Worker and cover the baseline, one Flow per change across a restart, a 429 with Retry-After, and a rejected-cursor reseed. Live Freshdesk provider behavior, including the ticketChanged polling behavior the parent README lists, and Dex Web authorization have not been verified for this package.

Metadata

Release files for dex-connector-freshworks-freshdesk 0.2.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 dex-connector-freshworks-freshdesk 0.2.0
File Size Uploaded Provenance Actions
dex_connector_freshworks_freshdesk-0.2.0.tar.gz 127.9 kB Without provenance Details for dex_connector_freshworks_freshdesk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dex-connector-freshworks-freshdesk 0.2.0
File Interpreter ABI Platform Actions
dex_connector_freshworks_freshdesk-0.2.0-py3-none-any.whl Python 3 none any Details for dex_connector_freshworks_freshdesk-0.2.0-py3-none-any.whl

Total release size: 176.7 kB

Release files / dex_connector_freshworks_freshdesk-0.2.0.tar.gz

Download URL dex_connector_freshworks_freshdesk-0.2.0.tar.gz
Size 127.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0639dccf030ba9f6bc7212c6feac97d667cde3a59374a02e1d7e5a4b0229c4ad
BLAKE2b-256 checksum
How to use checksums
fd9f557e159a8792bf7ad4daef04793b24803ec4b483d30fbf360cb6b7019357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dex_connector_freshworks_freshdesk-0.2.0-py3-none-any.whl

Download URL dex_connector_freshworks_freshdesk-0.2.0-py3-none-any.whl
Size 48.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90b2f535d66b29c58beeb79682c6442f8a9937f4b148b84de286e32f31e9053e
BLAKE2b-256 checksum
How to use checksums
6e144102e98914ca27df3e01ca733b7dc6457c7b253960c5493b59ad94cdfe06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for dex-connector-freshworks-freshdesk 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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