MFNA Python Client library
Project description
PyMFNA
PyMFNA is a Python client wrapper for connecting to and performing actions against MFNA appliances.
Install
Python3 Install from pip3::
pip3 install pymnfa
Or you can run build this locally::
git clone https://github.com/andy-shady-org/pymfna.git
cd pymnfa
pip install -r requirements.txt
python setup.py install
How to Use
Example Usage
This package makes connections to MFNA appliances for provisioning and obtaining data. All MFNA API calls can be regenerated on demand from an initial WSDL file as show below. This will generate a full client class. This class can then be installed and used in the following way. Note that an example WSDL file has been included, however this should be replaced by the WSDL file supplied by your MFNA appliance.
git clone https://github.com/andy-shady-org/pymfna.git
cd pymnfa/pymnfa
python mnfa.py -v -o mnfaclient.py ../wsdl/api.wsdl.soappy
cd ..
python setup.py install
In the above step, the class MFNAClient was created within the 'mnfaclient.py' file as specified by the '-o' flag for output. The class, after the package containing the new class file has been installed, can be easily imported and used.
from mnfaclient import MFNAClient
mfna = MFNAClient('<MFNA Host>', '<username>', '<password>')
mfna.login()
result = mfna.list_device(host='<your host in MFNA>')
Building Sphinx Documentation
Sphinx can be used to generate technical documentation for this project.
How to build Sphinx documentation::
git clone https://github.com/andy-shady-org/pymfna.git
pip install sphinx_rtd_theme
cd pymnfa/docs
make html
Documentation will be built into the docs/build/html folder
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymfna-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pymfna-1.0.0-py3-none-any.whl
- Upload date:
- Size: 69.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
952f12c18cc23128542e7f7f5274311300f8362a73c4ea3d7dc6b854f34b52db
|
|
| MD5 |
79cca6c7bb27709233d9956e9cb1f06d
|
|
| BLAKE2b-256 |
bcbb4ac94895366adf828775fe4178bb2a24864909b7c0d1780467bdd5f504cf
|