Skip to main content

A Python3 abstraction class to access NUT servers for uninterruptible power supplies (UPS).

Project description

PyPI version Supported Python versions PyPI downloads Code style: Black

(DEPRECATED) pynut3

(aka python-nut3)

This is a Python3 library to allow communication with NUT (Network UPS Tools) Uninterruptible Power Supply servers following RFC-9271

Note: This is an unofficial project, and is in no way supported or endorsed by the Network UPS Tools developers.

Requirements

Development of this package is done in Python 3.11. The package is considered forwards compatible probably upto Python 3.12 and possibly also beyond. Backwards compatibility is not guaranteed on versions prior to 3.9; if it works on Python 3.8 or before consider yourself lucky. Python versions that are end-of-life are not supported.

Installation

On Linux systems pynut3 requires telnet to be installed. If it is not available on your system you'll need to install it first.

sudo apt install telnet

On macOS telnet is not needed; nc will be used automatically. Then install using:

python -m pip install pynut3

This software was not tested on systems other than Linux (Debian) and macOS. If you have access to another OS, feel free to contribute improvements for support.

Usage

See demo/upsdemo.py for a usage example.

Please note that this module has completely and intentionally broken backwards compatibility with (previous) versions of pynut3.

Acknowledgements

Based on various NUT Client related Python scripts, written by David Goncalves as PyNUT, and released under GPL v3. Later overhauled by rshipp with Python3 modifications by hordurk, george2 and mezz64. Others will have contributed along the way. I was not able to reliably find their names.

Further updates are by me (Mausy5043) and based/inspired on prior work from timurlenk07, StSAV012, rshipp & Rojer-X86.

License

The GPL v3 license continues to apply. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynut3-2.2.1.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

pynut3-2.2.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file pynut3-2.2.1.tar.gz.

File metadata

  • Download URL: pynut3-2.2.1.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pynut3-2.2.1.tar.gz
Algorithm Hash digest
SHA256 7669a2ad6c06ebf4315e5a94cab61c6cccf8e6aa30ef360fa08eacbc144ddf40
MD5 5c7e26685c16a8a382ba00a7b3127f73
BLAKE2b-256 32bf222cd2d9690f66d6f4c8b170d5f74724cad632102e57b132c70593ba0fd5

See more details on using hashes here.

File details

Details for the file pynut3-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: pynut3-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pynut3-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4be6b1021c08543ebc79abc13f5cfc227e2e38151369873fed1c3f6eda409f0c
MD5 79651c6899e8039ba551be5134117d7f
BLAKE2b-256 952bb8748365aa6158fa58cffba76d758f7b4cc488cc1ca55baadbddaee2360b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page