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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hfortix_fortios_stubs-0.5.9.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.9.tar.gz
Algorithm Hash digest
SHA256 5f6c94b7f9ed0918b2bab579901814b30224820a0ce7e7a4e38d7792307d6555
MD5 54bc43a2565b5f563b030a68bf14bc07
BLAKE2b-256 9c546454824a382f701332aa213758aec222156aa7944cf30786f6b07a1ce253

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hfortix_fortios_stubs-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b4ac77b3ecd4c59a4217184b55071da477cd86f8dd6faf75d36d21376acaae
MD5 5c45998a3efe98d6db2f893863e40caf
BLAKE2b-256 37e6ed83bb351d15df941dae4a8dc42b5157dbfa880327957a57df407ee4c7e0

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