Skip to main content

Type stubs for hfortix-fortios - FortiOS SDK

Project description

hfortix-fortios-stubs

Type stubs for the hfortix-fortios package - providing comprehensive type hints for FortiOS API interactions.

What are type stubs?

Type stubs (.pyi files) provide type information for Python code, enabling:

  • Better IDE autocomplete and IntelliSense - Get accurate suggestions while coding
  • Static type checking - Catch errors before runtime with tools like mypy, pyright, and pylance
  • Enhanced documentation - See parameter types and return values directly in your IDE
  • Improved code quality - Write safer, more maintainable code with type safety

Installation

Automatic Installation (Recommended)

This package is automatically installed when you install hfortix-fortios:

pip install hfortix-fortios

Manual Installation

If you need to install the stubs separately:

pip install hfortix-fortios-stubs

Usage

No additional setup required. Once installed, your IDE and type checkers will automatically discover and use these stubs.

Example

from hfortix_fortios import FortiOSClient

# Your IDE will now provide accurate type hints and autocomplete
client = FortiOSClient(host="192.168.1.1", api_key="your-api-key")

# Full type safety for all API operations
policy = client.cmdb.firewall.policy.get(policyid=1)

Compatibility

This package must match the version of hfortix-fortios you're using:

  • hfortix-fortios-stubs==0.5.4hfortix-fortios==0.5.4

What's Included

Type stubs for all FortiOS API endpoints:

  • CMDB (Configuration Management Database) - 886+ endpoints
  • Monitor - 295+ endpoints
  • Service - Service-related endpoints
  • Log - 38+ logging endpoints

Each endpoint includes complete type information for:

  • Request parameters
  • Response models
  • Query filters
  • Pydantic models with validation

Benefits

For IDEs

  • PyCharm, VSCode, and other editors get full IntelliSense support
  • Instant parameter hints and documentation
  • Jump-to-definition for all API methods

For Type Checkers

  • mypy, pyright, and pylance can verify your code
  • Catch type errors before runtime
  • Ensure API calls use correct parameters

For Developers

  • Faster development with accurate autocomplete
  • Fewer bugs through static type checking
  • Better code documentation and maintainability

Requirements

  • Python 3.10 or higher
  • Compatible with hfortix-fortios version 0.5.4

License

MIT License - Free to use in open source and commercial projects

Links

Contributing

Issues and pull requests are welcome! Please see the main repository for contribution guidelines.

Project details


Download files

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

Source Distribution

hfortix_fortios_stubs-0.5.7.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

hfortix_fortios_stubs-0.5.7-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file hfortix_fortios_stubs-0.5.7.tar.gz.

File metadata

  • Download URL: hfortix_fortios_stubs-0.5.7.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hfortix_fortios_stubs-0.5.7.tar.gz
Algorithm Hash digest
SHA256 c5975712d3e9c02533349248b316f1221dd1b0380cb1de88ce819d513453e3ab
MD5 c7f094c5fefea3942d4f0d078cad166f
BLAKE2b-256 b87aae90ca4ca3b4ea6fc336a1478dbeb9e99d75a4de9fa732dee0256c7d2f0f

See more details on using hashes here.

File details

Details for the file hfortix_fortios_stubs-0.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for hfortix_fortios_stubs-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2dfdb71359a23d4393bf7c0b883a683a972172da90536bf08c1b099614e01346
MD5 96d33fd70c3d9f5db72d230f3a58e4a0
BLAKE2b-256 6af4b50b34fc85229ef254788512c274254956f9f3d7334308e1cfbe3f269050

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