Public modules and key entry points.
Enums / Dataclasses
Transport—SSH,SSH2,TELNETAuthMethod—PASSWORD,KEY,KEY_PASSWORDConnectionParamseffective_port: intproperty
Class
DeviceConnectionconnect(): Nonedisconnect(): Nonesend(command: str, expect_string: str | None = None): strsend_config(commands: list[str]): str
Dataclass
Device—hostname,host,vendor, auth fields, tags/metadata
Class
Inventoryadd(device: Device): Noneget(hostname: str): Device | Nonefilter(group?: str, vendor?: str, role?: str, site?: str, tag?: tuple): list[Device]from_file(path: str | Path): Inventoryto_ansible(): dictto_ansible_yaml(): strto_ansible_json(): strto_file(path: str | Path, format: str = "yaml"): None
Re-exports (from netops.core)
DeviceConnection,Device,Inventory
Classes
ReportGenerator—build_report(),generate_html(),generate_pdf()ReportMailer— SMTP email sender for reportsReportScheduler— cron-style scheduled report generation
Functions
generate_report(...)— convenience wrapper to build + renderdefault_output_filename(prefix: str | None = None): straggregate_dashboard(results: dict): dictformat_table(rows: list[dict], columns: list[str]): strrender_html(report_data: dict): str
These are vendor-specific helpers for health checks and output parsing. Import from their modules:
netops.check.*— validation checks (health, bgp, vlan, interfaces, vendor-specific)netops.parsers.*— CLI output parsers (cisco, juniper, arista, paloalto, nokia, brocade, bgp, vlan)netops.templates.*— command templates per vendor
Modules:
diff— config diff engineplan— change approval workflowpush— safe config push with confirm timerrollback— rollback automation
generator— produce Ansible remediation playbooks from check failures
dynamic_inventory— Ansible-compatible dynamic inventory script
- Device discovery utilities (see module docstring for usage)