Skip to main content

Freshdesk Python connector

Install dex-connector-freshworks-freshdesk==0.2.1. 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 65 Go-recorded provider scenarios cover the five operations, including retries, resends below the send cap, uncertainty at the cap, read-back of an accepted or checkpointed ticket or conversation ID, and single-dispatch fence 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.1

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.1
File Size Uploaded Provenance Actions
dex_connector_freshworks_freshdesk-0.2.1.tar.gz 136.1 kB Without provenance Details for dex_connector_freshworks_freshdesk-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 190.1 kB

Release files / dex_connector_freshworks_freshdesk-0.2.1.tar.gz

Download URL dex_connector_freshworks_freshdesk-0.2.1.tar.gz
Size 136.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b5a960a32a9906201da951edcf8f9787cb2ffd37b9e54f2d07d97bca30d73aef
BLAKE2b-256 checksum
How to use checksums
f421d49a2e0fdc27f8d696a9f0b7c35eb8125a694fec3a3fa5e8177abf2a3b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1-py3-none-any.whl

Download URL dex_connector_freshworks_freshdesk-0.2.1-py3-none-any.whl
Size 53.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
019a37cba5a325108d17ac61241c5e1acb7f2095fd92d38e395c38349d9589a9
BLAKE2b-256 checksum
How to use checksums
55de6189c3f49870af48a9590cdf6c6a657eb230bc6fdbbc63e229365238e365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1

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