Repository navigation
feat: add Schema 1.6.0 network and location fields to Python SDK - #1
Merged
Merged
Conversation
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.
The SDK previously ignored the seven fields added in IP Intelligence Schema 1.6.0. Add optional frozen dataclass attributes and wire mappings for network.domain/range and location.continentCode/continent/postalCode/latitude/longitude, shared by sync and async clients. Missing fields and explicit null remain None; zero coordinates and string postal codes are preserved, along with existing positional constructors and public exports.
Document field semantics and usage, and set both package version sources to 0.2.0 (release date: 2026-11-17; independent of schema 1.6.0). Add synthetic fixtures, model edge cases, and one-request MockTransport checks with sync/async parity. Isolate the API key environment in tests so anonymous cases remain independent of host credentials.
Pin the test CI runner to Ubuntu 24.04: ubuntu-latest now resolves to 26.04, for which actions/setup-python has no Python 3.9 build. Preserve the complete Python 3.9–3.13 matrix and all checks. Transport, auth, retries, scoring, runtime dependencies, and the PyPI release workflow are unchanged.
Validation on local Python 3.9.1:
PR CI validates Python 3.9, 3.10, 3.11, 3.12, and 3.13. The owner has authorized merging this PR and publishing SDK 0.2.0 via the existing v0.2.0 tag-triggered PyPI workflow.