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-fortiosversion 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hfortix_fortios_stubs-0.5.9.tar.gz | 1.0 MB | Without provenance | Details for hfortix_fortios_stubs-0.5.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hfortix_fortios_stubs-0.5.9-py3-none-any.whl | Python 3 | none | any | Details for hfortix_fortios_stubs-0.5.9-py3-none-any.whl |
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
|
Security for hfortix-fortios-stubs 0.5.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.