nut2
This is an API overhaul of PyNUT, a Python library to allow communication with NUT (Network UPS Tools) servers.
Note: Updated package to remove telnetlib dependency and convert to PEP 517 build
Note: This is an unofficial project, and is in no way supported or endorsed by the Network UPS Tools developers.
Requirements
The module itself requires only Python 3.
Usage
Example:
from nut2 import PyNUTClient
client = PyNUTClient()
client.help()
client.list_ups()
client.list_vars("My_UPS")
Please note that this module has completely and intentionally broken backwards compatibility with PyNUT 1.X.
See inline documentation for more usage information.
Installation
Use pip:
pip install nut2-notl
PyNUT
The following information is copied from the original PyNUT README:
This directory contains various NUT Client related Python scripts, written by David Goncalves, and released under GPL v3.
“module”: this directory contains PyNUT.py, which is a Python abstraction class to access NUT server(s). You can use it in Python programs to access NUT’s upsd data server in a simple way, without having to know the NUT protocol.
To import it on Python programs you have to use the following (case sensitive) : ‘import PyNUT’
This module provides a ‘PyNUTClient’ class that can be used to connect and get data from an upsd data server.
To install the PyNUT module on Debian/Ubuntu, copy it to: /usr/share/python-support/python-pynut/
This directory also contains test_nutclient.py, which is a PyNUT test program. For this to be fully functional, you will need to adapt the login, password and upsname to fit your configuration.
Metadata
Release files for nut2-notl 2.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 |
|---|---|---|---|---|
| nut2_notl-2.1.3.tar.gz | 21.1 kB | Without provenance | Details for nut2_notl-2.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nut2_notl-2.1.3-py3-none-any.whl | Python 3 | none | any | Details for nut2_notl-2.1.3-py3-none-any.whl |
Total release size: 39.7 kB
Release files / nut2_notl-2.1.3.tar.gz
| Download URL | nut2_notl-2.1.3.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83eba9d127b9b4c66c89f95fb4ed11bc0339320bc1d454afe3ac9fcf472683c4
|
|
BLAKE2b-256 checksum How to use checksums |
e0adccff10eecd49562d53f55ac8209c52990f5bc3f7bbc9b2722cb7980566c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / nut2_notl-2.1.3-py3-none-any.whl
| Download URL | nut2_notl-2.1.3-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
349fccafb62a94b80fdee6e4a04da2bd0007b4fcf9688b97b209516d083ec847
|
|
BLAKE2b-256 checksum How to use checksums |
b0a115b65be4eddb63d001c8e4eebc015ea0d64a25a89d4847fc12c069e944fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for nut2-notl 2.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.