Skip to content

feat: add Schema 1.6.0 network and location fields to Python SDK - #1

Merged
TeamQQ merged 3 commits into
mainfrom
feature/schema-1.6.0-completeness
Nov 17, 2026
Merged

TeamQQ merged 3 commits into
mainfrom
feature/schema-1.6.0-completeness

Conversation

@TeamQQ

@TeamQQ TeamQQ commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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:

  • PASS: ruff check ., ruff format --check ., mypy src (strict, Python 3.9 target)
  • PASS: pytest — 92 tests, including all existing regressions
  • PASS: python -m build — wheel and sdist
  • PASS: archive contents, updated model sources, version/metadata consistency, and isolated wheel import smoke test
  • PASS: git diff --check

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.

@TeamQQ
TeamQQ merged commit 1dd63ef into main Nov 17, 2026
5 checks passed
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.

2 participants