Skip to content

feat: add initial SendDock Python SDK (v0.2.0) - #1

Merged
JuansesDev merged 1 commit into
SendDock:mainfrom
khoap1220-hue:feat/initial-python-sdk
Nov 30, 2026
Merged

JuansesDev merged 1 commit into
SendDock:mainfrom
khoap1220-hue:feat/initial-python-sdk

Conversation

@khoap1220-hue

Copy link
Copy Markdown

In src/senddock/client.py, src/senddock/webhook.py, src/senddock/models.py, and src/senddock/errors.py, this PR adds the initial Python 3.9+ SDK mirroring @senddock/sdk v0.2.0 and the Go project-scoped API/webhook handlers (SendDock/senddock#102), incorporating all three review adjustments:

  • README.md: Removed proof-of-concept and external promotional sections so the documentation matches the official SendDock SDK format, while preserving upstream LICENSE.
  • pyproject.toml: Pointed package metadata and [project.urls] (Homepage, Documentation, Repository, Issues) to SendDock/senddock-python.
  • src/senddock/client.py (AsyncSendDock._request): Narrowed transport exception handling via _async_network_exception_types() to (httpx.HTTPError, TimeoutError, socket.timeout, urllib.error.URLError, http.client.HTTPException, OSError) so non-network bugs (TypeError, ValueError, etc.) propagate directly instead of being caught as network retries.
  • tests/test_senddock.py: Added test_async_client_retries_httpx_transport_errors_and_propagates_non_network_bugs (36 offline unit + local HTTP loopback tests passing across Python 3.9–3.13, ruff check src tests clean).

Closes SendDock/senddock#102

@JuansesDev
JuansesDev merged commit f379928 into SendDock:main Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Official Python SDK (senddock on PyPI)

2 participants