Skip to main content

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.4 → hfortix-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.

Metadata

Release files for hfortix-fortios-stubs 0.5.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hfortix-fortios-stubs 0.5.9
File Size Uploaded
hfortix_fortios_stubs-0.5.9.tar.gz 1.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for hfortix-fortios-stubs 0.5.9
File Interpreter ABI Platform
hfortix_fortios_stubs-0.5.9-py3-none-any.whl Python 3 none any Details

Total release size: 3.7 MB

Release files / hfortix_fortios_stubs-0.5.9.tar.gz

Download URL hfortix_fortios_stubs-0.5.9.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
5f6c94b7f9ed0918b2bab579901814b30224820a0ce7e7a4e38d7792307d6555
BLAKE2b-256 checksum
How to use checksums
9c546454824a382f701332aa213758aec222156aa7944cf30786f6b07a1ce253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hfortix_fortios_stubs-0.5.9-py3-none-any.whl

Download URL hfortix_fortios_stubs-0.5.9-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b0b4ac77b3ecd4c59a4217184b55071da477cd86f8dd6faf75d36d21376acaae
BLAKE2b-256 checksum
How to use checksums
37e6ed83bb351d15df941dae4a8dc42b5157dbfa880327957a57df407ee4c7e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.5.9 This release

2 release files

0.5.7

2 release files

0.5.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page