glances_api 0.3.4__tar.gz → 0.3.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: glances-api
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Python API for interacting with Glances
5
5
  Home-page: https://github.com/home-assistant-ecosystem/python-glances-api
6
6
  License: MIT
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3
18
18
  Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Topic :: Utilities
21
- Requires-Dist: httpx (>=0.20,<1)
21
+ Requires-Dist: httpx (>=0.22,<1)
22
22
  Project-URL: Repository, https://github.com/home-assistant-ecosystem/python-glances-api/releases
23
23
  Description-Content-Type: text/x-rst
24
24
 
@@ -54,7 +54,7 @@ class Glances(object):
54
54
  response = await client.get(
55
55
  str(url), auth=(self.username, self.password)
56
56
  )
57
- except httpx.ConnectError:
57
+ except (httpx.ConnectError, httpx.TimeoutException):
58
58
  raise exceptions.GlancesApiConnectionError(f"Connection to {url} failed")
59
59
 
60
60
  if response.status_code == httpx.codes.UNAUTHORIZED:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "glances_api"
3
- version = "0.3.4"
3
+ version = "0.3.5"
4
4
  description = "Python API for interacting with Glances"
5
5
  authors = ["Fabian Affolter <fabian@affolter-engineering.ch>"]
6
6
  homepage = "https://github.com/home-assistant-ecosystem/python-glances-api"
@@ -19,10 +19,10 @@ classifiers = [
19
19
 
20
20
  [tool.poetry.dependencies]
21
21
  python = "^3.8"
22
- httpx = ">=0.20,<1"
22
+ httpx = ">=0.22,<1"
23
23
 
24
24
  [tool.poetry.dev-dependencies]
25
- black = "^21.12b0"
25
+ black = "^22.3.0"
26
26
  pytest = "^6.2.5"
27
27
  pytest-httpx = ">0.15,<1"
28
28
  pytest-asyncio = "^0.16.0"
@@ -8,11 +8,11 @@ package_data = \
8
8
  {'': ['*']}
9
9
 
10
10
  install_requires = \
11
- ['httpx>=0.20,<1']
11
+ ['httpx>=0.22,<1']
12
12
 
13
13
  setup_kwargs = {
14
14
  'name': 'glances-api',
15
- 'version': '0.3.4',
15
+ 'version': '0.3.5',
16
16
  'description': 'Python API for interacting with Glances',
17
17
  'long_description': 'python-glances-api\n==================\n\nA Python client for interacting with `Glances <https://nicolargo.github.io/glances/>`_.\n\nThis module is not official, developed, supported or endorsed by Glances.\n\nInstallation\n------------\n\nThe module is available from the `Python Package Index <https://pypi.python.org/pypi>`_.\n\n.. code:: bash\n\n $ pip3 install glances_api\n\nOr on a Fedora-based system or on a CentOS/RHEL machine with has EPEL enabled.\n\n.. code:: bash\n\n $ sudo dnf -y install python3-glances-api\n\n\nFor Nix or NixOS is `pre-packed module <https://search.nixos.org/packages?channel=unstable&query=glances-api>`_\navailable. The lastest release is usually present in the ``unstable`` channel.\n\n.. code:: bash\n\n $ nix-env -iA nixos.python3Packages.glances-api\n\nUsage\n-----\n\nThe file ``example.py`` contains an example about how to use this module.\n\nLicense\n-------\n\n``python-glances-api`` is licensed under MIT, for more details check LICENSE.\n',
18
18
  'author': 'Fabian Affolter',
File without changes
File without changes