nefila
Nefila is an elegant and simple Fortinet Security Fabric library for Python.
Python 3.7.4 (default, Sep 7 2019, 18:27:02)
>>> import nefila
>>> device = nefila.FortiGate('192.0.2.1')
>>> device.open()
>>> device.status
{'version': 'v6.2.2', 'serial': 'FG81EP4Q17002000', 'forticare': 'registered', 'hostname': 'FW01', 'model': 'FortiGate-81E-POE', 'uptime': 22625}
Features
- Environment variables based authentication
- Standard methods across all supported devices
Supported Devices
- FortiOS v6.2
- FortiAnalyzer v6.2
- FortiManager v6.2
- FortiTester v4.0
- FortiSwitch v6.0
Requirements and Installation
Nefila requires Python 3.7. You can install nefila using pip:
pip install nefila
Credentials
You can pass device credentials during requests or you can load them automatically using the following methods:
- Setup your device credentials at ~/.nefila/credentials in the following format:
[DEFAULT]
username = <your username>
password = <your password>
- You can also have device specific credentials:
[192.0.2.1]
username = <your username>
password = <your password>
- Alternatively you can also use an access token:
[DEFAULT]
token = <your access token>
- Environment Variables
export NEFILA_HOSTNAME=10.10.10.10
export NEFILA_USERNAME=admin
export NEFILA_PASSWORD=password
License
This library is distributed under the GNU General Public License v3.0.
Metadata
Release files for nefila 0.0.5
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 |
|---|---|---|---|---|
| nefila-0.0.5.tar.gz | 27.3 kB | Without provenance | Details for nefila-0.0.5.tar.gz |
Release files / nefila-0.0.5.tar.gz
| Download URL | nefila-0.0.5.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a65572e75cc3b0d03eae1df9e22017f05abc8e1dda5d586e02089340a893adbe
|
|
BLAKE2b-256 checksum How to use checksums |
d1b90cf3aae559f6018efd9f03a7e3724a657e2a07696996142994367fbeaf77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.13
|
Security for nefila 0.0.5
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.