Python-Unifi-Client 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/PKG-INFO +1 -1
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client/client.py +1 -5
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/PKG-INFO +1 -1
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/setup.py +1 -1
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/README.md +0 -0
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client/__init__.py +0 -0
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/SOURCES.txt +0 -0
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/dependency_links.txt +0 -0
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/top_level.txt +0 -0
- {python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/setup.cfg +0 -0
|
@@ -10,10 +10,6 @@ import http.client as http_client
|
|
|
10
10
|
import logging
|
|
11
11
|
import base64
|
|
12
12
|
|
|
13
|
-
logging.basicConfig(level=logging.DEBUG)
|
|
14
|
-
logging.getLogger('requests.packages.urllib3').setLevel(logging.DEBUG)
|
|
15
|
-
http_client.HTTPConnection.debuglevel = 1
|
|
16
|
-
|
|
17
13
|
# Custom exceptions mirroring PHP equivalents
|
|
18
14
|
class CurlExtensionNotLoadedException(Exception):
|
|
19
15
|
def __init__(self):
|
|
@@ -1835,7 +1831,7 @@ class Client:
|
|
|
1835
1831
|
"""Generate a controller backup for the past N days."""
|
|
1836
1832
|
payload = {'cmd': 'backup', 'days': days}
|
|
1837
1833
|
result = self.fetch_results(f"/proxy/network/api/s/{self._site}/cmd/backup", payload=payload, prefix_path=False, boolean=False)
|
|
1838
|
-
print(f"RAW RESULT FROM FETCH_RESULTS(): {result}")
|
|
1834
|
+
print(f"RAW RESULT FROM FETCH_RESULTS(): {result}") if self.debug else None
|
|
1839
1835
|
return result
|
|
1840
1836
|
|
|
1841
1837
|
def download_backup(self, filepath: str):
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="python_unifi_client",
|
|
8
|
-
version="1.1.
|
|
8
|
+
version="1.1.3",
|
|
9
9
|
author="Michael Lapinski",
|
|
10
10
|
author_email="michaellapinski787@gmail.com",
|
|
11
11
|
descripton="A python version of a github Art-of-Wifi/Unifi-API-Client",
|
|
File without changes
|
|
File without changes
|
{python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_unifi_client-1.1.2 → python_unifi_client-1.1.3}/python_unifi_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|