Skip to main content

Type-safe Python SDK for FortiGate firewall automation and FortiOS REST API - 1,348+ endpoints with async support and complete type safety

Project description

HFortix - Fortinet Python SDK

PyPI version Python 3.10+ License: MIT

Meta-package for the HFortix ecosystem - Convenient installation for Fortinet automation in Python.

📦 Package Structure

This is a meta-package that provides convenient installation patterns. The actual functionality is in these packages:

Package Repository Description
hfortix-core hfortix-core Core HTTP client and shared utilities
hfortix-fortios hfortix-fortios FortiOS/FortiGate API client (1,300+ endpoints)

🚀 Installation Options

Everything (Recommended)

pip install hfortix[all]

Installs all current and future Fortinet product packages.

FortiOS/FortiGate Only

pip install hfortix[fortios]

Installs hfortix-core + hfortix-fortios.

Core Only

pip install hfortix

Installs only hfortix-core - the shared foundation.

Individual Packages

# Install specific packages directly
pip install hfortix-fortios  # Automatically includes hfortix-core
pip install hfortix-core     # Just the core utilities

💡 Quick Start

from hfortix_fortios import FortiOS

# Connect to FortiGate
fgt = FortiOS(
    host="192.168.1.99",
    token="your-api-token"
)

# Get firewall policies
policies = fgt.api.v2.cmdb.firewall.policy.get()

for policy in policies:
    print(f"Policy {policy.policyid}: {policy.name}")

📚 Documentation

Package Documentation Link
hfortix-fortios FortiOS Documentation
hfortix-core Core API Reference

✨ Features

Comprehensive Coverage

  • 1,300+ FortiOS API endpoints (CMDB, Monitor, Log, Service)
  • Full type hints and IDE autocomplete
  • Auto-generated from official FortiOS schemas

Developer Experience

  • Pythonic API design
  • Extensive inline documentation
  • Type-safe request/response models

Production Ready

  • Transaction support
  • Error handling and retries
  • Async/await support
  • Rate limiting

📋 Requirements

  • Python 3.10 or higher
  • FortiOS 7.0+ (for FortiGate devices)

📄 License

MIT License - see LICENSE for details.

🔗 Related Projects

💬 Support


Author: Herman W. Jacobsen | LinkedIn | GitHub

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hfortix-0.5.159.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hfortix-0.5.159-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file hfortix-0.5.159.tar.gz.

File metadata

  • Download URL: hfortix-0.5.159.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hfortix-0.5.159.tar.gz
Algorithm Hash digest
SHA256 8c00eccfd0a3161b9bf533f17353d998fcc34511f52387a99645e2c1cfa296c6
MD5 bf948a579a69a0b524916b86436fe170
BLAKE2b-256 6be77068390d790f532dd2d5ccf3d4362e68450ee0ff92f5deda5fb9d8b98dc2

See more details on using hashes here.

File details

Details for the file hfortix-0.5.159-py3-none-any.whl.

File metadata

  • Download URL: hfortix-0.5.159-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hfortix-0.5.159-py3-none-any.whl
Algorithm Hash digest
SHA256 f14404fa1c2db09ac60ea17e94dfaa13a1885e263453884f1361d9afc7b4a400
MD5 55bc6148256bfe20cacbcd9dd799de02
BLAKE2b-256 7909760546d81703baf3d9be6e8b2217107d9ff824583ef81df272fda8870e74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page