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.6.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.6-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hfortix_fortios_stubs-0.5.6.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.6.tar.gz
Algorithm Hash digest
SHA256 31e457145a71bd86adcfe68f1d6489c0a8d0306dfd31947f824ea41fa1020be4
MD5 faad3338dfc51505d808c91d05cb4e89
BLAKE2b-256 5ad23127cda14adf2a33a4fc63a41abd2b67153b95db4f73f766fd98c44350b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hfortix_fortios_stubs-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 01a47dfdd82c456fa22897bd48bcf8a5962dd14021508c04f498c7c640816c16
MD5 b4a580d53d7a6d62a4e22c53f3ac4305
BLAKE2b-256 6807531544428237e627c3c8fec626a696cb0aa861d2fc5d951bc18ac4633860

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