{"id":18864814,"url":"https://github.com/rshipp/python-nut2","last_synced_at":"2025-04-14T13:21:28.374Z","repository":{"id":17618325,"uuid":"20422483","full_name":"rshipp/python-nut2","owner":"rshipp","description":"Communicate with Network UPS Tools servers from Python.","archived":false,"fork":false,"pushed_at":"2022-05-16T19:21:57.000Z","size":54,"stargazers_count":42,"open_issues_count":4,"forks_count":23,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T09:58:07.382Z","etag":null,"topics":["library","network-ups-tools","nut","python","ups"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rshipp.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-02T22:52:58.000Z","updated_at":"2025-03-19T14:10:45.000Z","dependencies_parsed_at":"2022-08-30T21:30:25.644Z","dependency_job_id":null,"html_url":"https://github.com/rshipp/python-nut2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshipp%2Fpython-nut2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshipp%2Fpython-nut2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshipp%2Fpython-nut2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshipp%2Fpython-nut2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rshipp","download_url":"https://codeload.github.com/rshipp/python-nut2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","network-ups-tools","nut","python","ups"],"created_at":"2024-11-08T04:44:09.266Z","updated_at":"2025-04-14T13:21:28.329Z","avatar_url":"https://github.com/rshipp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"nut2\n====\n\n.. image:: https://travis-ci.org/rshipp/python-nut2.svg?branch=master\n   :target: https://travis-ci.org/rshipp/python-nut2\n   :alt: Build Status\n.. image:: https://coveralls.io/repos/rshipp/python-nut2/badge.png?branch=master\n   :target: https://coveralls.io/r/rshipp/python-nut2?branch=master\n   :alt: Test Coverage\n.. image:: https://api.codacy.com/project/badge/Grade/741acf61ed264ba3aac7dcf33c55a40f\n   :target: https://www.codacy.com/app/rshipp/python-nut2\n   :alt: Code Health\n.. image:: http://img.shields.io/pypi/v/nut2.svg\n   :target: https://pypi.python.org/pypi/nut2\n   :alt: PyPi Version\n\nThis is an API overhaul of PyNUT_, a Python library to allow communication with NUT\n(`Network UPS Tools`_) servers.\n\n**Note**: This is an unofficial project, and is in no way supported or\nendorsed by the `Network UPS Tools developers`_.\n\nRequirements\n------------\n\nThe module itself requires only Python (2.7 or 3.5+).\nIf you wish to run the tests, do ``pip install -r requirements-testing.txt``.\n\nUsage\n-----\n\nExample::\n\n    from nut2 import PyNUTClient\n    client = PyNUTClient()\n    client.help()\n    client.list_ups()\n    client.list_vars(\"My_UPS\")\n\nPlease note that this module has completely and intentionally broken\nbackwards compatibility with PyNUT 1.X.\n\nSee inline documentation for more usage information.\n\nInstallation\n------------\n\nJust use pip::\n\n    pip install nut2\n\nPyNUT\n-----\n\nThe following information is copied from the original PyNUT README:\n\n    This directory contains various NUT Client related Python scripts, written by\n    David Goncalves, and released under GPL v3.\n\n    * \"module\": this directory contains PyNUT.py, which is a Python abstraction\n      class to access NUT server(s). You can use it in Python programs to access NUT's\n      upsd data server in a simple way, without having to know the NUT protocol.\n\n    To import it on Python programs you have to use the following (case sensitive) :\n    'import PyNUT'\n\n    This module provides a 'PyNUTClient' class that can be used to connect and get\n    data from an upsd data server.\n\n    To install the PyNUT module on Debian/Ubuntu, copy it to:\n    /usr/share/python-support/python-pynut/\n\n    This directory also contains test_nutclient.py, which is a PyNUT test program.\n    For this to be fully functional, you will need to adapt the login, password and\n    upsname to fit your configuration.\n\n\n.. _PyNUT: https://github.com/networkupstools/nut/tree/master/scripts/python\n.. _Network UPS Tools: http://www.networkupstools.org/\n.. _Network UPS Tools developers: https://github.com/networkupstools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frshipp%2Fpython-nut2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frshipp%2Fpython-nut2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frshipp%2Fpython-nut2/lists"}