Skip to content

Welcome to PyFortinet#

This project is a Python library for Fortinet products' REST API. Currently, only Fortimanager is supported, but extensions for various products are planned. Current state is rather a Proof of Concept.

Features#

  • FMG API
  • Low level API access via passing dict to various calls (add, get, set, update, exec)
  • Automatic login (Currently, only user/password authentication is supported)
  • Automatic locking in workspace mode (Currently, only ADOM locking is supported)
  • High level API using all kind of objects (see some examples below)
    • Only couple of objects are supported yet (being POC project), but extension is planned for most used functions!
    • Task handling with waiting and callback function (to support progress bar, logging, etc.)
  • Async code is supported

Planned features

  • FMG API
  • Extended authentication capabilities (token, SAML)
  • Extended locking capabilities to support object and package level locking and fallback feature to ADOM locking
  • Proxy FortiOS API calls using objects of FortiOS API
  • FortiOS API
  • Similar capabilities to FMG API