Repository navigation
feat: add initial SendDock Python SDK (v0.2.0) - #1
Merged
Merged
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
src/senddock/client.py,src/senddock/webhook.py,src/senddock/models.py, andsrc/senddock/errors.py, this PR adds the initial Python 3.9+ SDK mirroring@senddock/sdkv0.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 officialSendDockSDK format, while preserving upstreamLICENSE.pyproject.toml: Pointed package metadata and[project.urls](Homepage,Documentation,Repository,Issues) toSendDock/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: Addedtest_async_client_retries_httpx_transport_errors_and_propagates_non_network_bugs(36offline unit + local HTTP loopback tests passing across Python 3.9–3.13,ruff check src testsclean).Closes SendDock/senddock#102