dev #5

Merged
gitark merged 8 commits from dev into main 2026-07-23 13:11:55 +03:00
Owner
  • Fix dump_json for ModelView
  • Add type hints and docstrings for contacts
- Fix dump_json for ModelView - Add type hints and docstrings for contacts
gitark added 8 commits 2026-07-23 13:00:42 +03:00
Oxidized API client with TTP-based, multi-vendor config parsing into
Pydantic models.
- Core API: OxiAPI, Node, NodeView, NodeConfig, ModelView
- HTTP layer with retries/timeout and OxiAPIError (NodeNotFound -> 404)
- Vendor parsers: Keenetic, MikroTik, Qtech, Huawei, Eltex, H3C, Quasar
- Shared utils: VLAN range expansion, UTF-8 decoding
- Test suite: golden fixtures per vendor + unit/network/view tests
- Tooling: Ruff lint/format config, CI for GitHub and Gitea
- Docs: README + extending-models and templates guides
Dev
Dev v0.1.2
Bump version from 0.1.1 to 0.1.2
- Enhanced the `vlans`, `interfaces`, and `system` properties with type hints for better clarity and type checking.
- Added detailed docstrings to each property, describing the return types and structure of the associated configurations.
Refactor dump_json method to use model_dump_json
All checks were successful
CI / lint (pull_request) Successful in 1m0s
CI / test (3.10) (pull_request) Successful in 27s
CI / test (3.11) (pull_request) Successful in 35s
CI / test (3.12) (pull_request) Successful in 36s
CI / test (3.13) (pull_request) Successful in 37s
CI / ci-success (pull_request) Successful in 2s
ae1e69d5fd
- Fix the `dump_json` method in the `ModelView` class to call `model_dump_json` instead of `model_dump`, ensuring consistency in JSON serialization.
- Added a new test case in `TestListModelView` to verify the functionality of `dump_json` and check for correct IP address serialization.
gitark merged commit 32e99dacf7 into main 2026-07-23 13:11:55 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Netbox/oxipy#5