feat: configuration loading and netbox api client

config.yaml next to the script (or $NETBOX_INVENTORY_CONFIG) with environment
variable overrides, requests session with token auth, paginated list fetching
and readable error reporting.
This commit is contained in:
2026-08-25 13:09:09 +02:00
parent 44e7dd50b5
commit 7912dacf95
4 changed files with 231 additions and 0 deletions

12
ruff.toml Normal file
View File

@@ -0,0 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2026 Bryan Joshua Pedini
line-length = 100
target-version = "py310"
[lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[lint.pydocstyle]
convention = "google"