feat: rewrite for version 3.0#10
Merged
Merged
Conversation
- Replace setup.cfg with pyproject.toml using hatchling build backend - Switch from requests to httpx + pydantic v2 dependencies - Add uv.lock for deterministic dependency resolution - Add pytest + ruff dev dependencies with configurations - Update .gitignore for .ruff_cache/ - Bump LICENSE year to 2026
…c v2 - Replace OnspringApiSdk package with onspring_api_sdk package - Add sync (OnspringClient) and async (AsyncOnspringClient) clients - Migrate from requests to httpx for HTTP transport - Migrate from raw dataclasses to Pydantic v2 models with alias support - Add shared response handler module (_responses.py) to reduce duplication - Add typed exceptions (OnspringError, OnspringAuthenticationError, etc.) - Preserve full API coverage for apps, fields, files, lists, records, and reports
- 268 unit tests covering all sync and async client methods - 196 integration tests against a real sandbox API - Mock-based tests using respx for sync and async HTTP mocking - Paging, error handling, and edge case coverage (400/401/403/404/500/418) - Integration test utilities and test data files - .env.example with sandbox environment variables
- pull_request.yml: lint (ruff) + test on PRs to master - publish.yml: build and publish to PyPI on pushes to master (uses Trusted Publishing via PyPI publisher)
- Rewrite all code examples for snake_case/Pydantic v2 API - Add AsyncOnspringClient documentation with async/await examples - Add error handling documentation with raise_for_status() examples - Update property names (statusCode -> status_code, etc.) - Update import paths (OnspringApiSdk -> onspring_api_sdk) - Update constructor parameter names (baseUrl -> url, apiKey -> key) - Add httpx as the underlying HTTP library
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.
closes #9
closes #5
closes #4