Netscaler Module
Netscaler module for python 3.x
Requirements
Python 3+
Installation
$ pip install netscaler_module
Quickstart
Import the netscaler_module library to use the functions
from netscaler_module import NitroClass
....
Create a DATABASE variable and append the dicts response from nitro class.
Below an example.
DATABASE = list()
if __name__ == '__main__':
global DATABASE
ns_pool = [
{
'ip': '192.168.2.100',
'hostname': 'ns1',
'backup_name': 'ns1',
},
{
'ip': '192.168.2.101',
'hostname': 'ns2',
'backup_name': 'ns2',
}
]
password = {
'username': 'nsroot',
'password': 'XXXXXXX'
}
backup = {
'backup_folder': 'repo',
'backup_level': 'full',
}
for ns_item in ns_pool:
kwargs = ns_item | password | backup
ns = NitroClass(**kwargs)
ns.login()
if ns.master:
data = ns.get_lbvservers_binding_partitions()
DATABASE.extend(data)
ns.create_backup()
ns.download_backup()
ns.delete_backup()
ns.logout()
print(DATABASE)
Metadata
Release files for netscaler-module 1.3
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 |
|---|---|---|---|---|
| netscaler_module-1.3.tar.gz | 6.3 kB | Without provenance | Details for netscaler_module-1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netscaler_module-1.3-py3-none-any.whl | Python 3 | none | any | Details for netscaler_module-1.3-py3-none-any.whl |
Total release size: 12.7 kB
Release files / netscaler_module-1.3.tar.gz
| Download URL | netscaler_module-1.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76ced91c9df5c866331d1205c6d97e459a84fb9d72e47dce0661f3650595be59
|
|
BLAKE2b-256 checksum How to use checksums |
ae9d43218f71107133abfe8e6a9718f8ef37e58a9475e57a5ba5f699f690fd37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2
|
Release files / netscaler_module-1.3-py3-none-any.whl
| Download URL | netscaler_module-1.3-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf8b15dc5b1e047831f62fd2de834c4b71310d15717ae838736b0ecb66cf5a7c
|
|
BLAKE2b-256 checksum How to use checksums |
20042dd5eab78cdad8d3d98634456a9cdbd9032506afbdd53fe627e0a2bfd4c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2
|
Security for netscaler-module 1.3
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.