pihole6api 0.1.6__tar.gz → 0.1.7__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.
Files changed (24) hide show
  1. {pihole6api-0.1.6/src/pihole6api.egg-info → pihole6api-0.1.7}/PKG-INFO +1 -1
  2. {pihole6api-0.1.6 → pihole6api-0.1.7}/pyproject.toml +1 -1
  3. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/client_management.py +6 -0
  4. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/list_management.py +2 -2
  5. {pihole6api-0.1.6 → pihole6api-0.1.7/src/pihole6api.egg-info}/PKG-INFO +1 -1
  6. {pihole6api-0.1.6 → pihole6api-0.1.7}/LICENSE +0 -0
  7. {pihole6api-0.1.6 → pihole6api-0.1.7}/README.md +0 -0
  8. {pihole6api-0.1.6 → pihole6api-0.1.7}/setup.cfg +0 -0
  9. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/__init__.py +0 -0
  10. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/actions.py +0 -0
  11. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/client.py +0 -0
  12. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/config.py +0 -0
  13. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/conn.py +0 -0
  14. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/dhcp.py +0 -0
  15. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/dns_control.py +0 -0
  16. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/domain_management.py +0 -0
  17. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/ftl_info.py +0 -0
  18. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/group_management.py +0 -0
  19. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/metrics.py +0 -0
  20. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api/network_info.py +0 -0
  21. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api.egg-info/SOURCES.txt +0 -0
  22. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api.egg-info/dependency_links.txt +0 -0
  23. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api.egg-info/requires.txt +0 -0
  24. {pihole6api-0.1.6 → pihole6api-0.1.7}/src/pihole6api.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pihole6api
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Python API Client for Pi-hole 6
5
5
  Author-email: Shane Barbetta <shane@barbetta.me>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pihole6api"
7
- version = "0.1.6"
7
+ version = "0.1.7"
8
8
  description = "Python API Client for Pi-hole 6"
9
9
  authors = [{name = "Shane Barbetta", email = "shane@barbetta.me"}]
10
10
  license = {text = "MIT"}
@@ -47,6 +47,12 @@ class PiHole6ClientManagement:
47
47
  :param client: Client identifier (IP, MAC, hostname, or interface).
48
48
  """
49
49
  return self.connection.get(f"clients/{client}")
50
+
51
+ def get_clients(self):
52
+ """
53
+ Retrieve information about all clients.
54
+ """
55
+ return self.connection.get(f"clients")
50
56
 
51
57
  def update_client(self, client, comment=None, groups=None):
52
58
  """
@@ -36,8 +36,8 @@ class PiHole6ListManagement:
36
36
  """
37
37
  Delete multiple lists.
38
38
 
39
- :param lists: List of dictionaries with keys "address" and "type".
40
- Example: [{"address": "https://example.com/blocklist.txt", "type": "block"}]
39
+ :param lists: List of dictionaries with keys "item" and "type".
40
+ Example: [{"item": "https://example.com/blocklist.txt", "type": "block"}]
41
41
  """
42
42
  if not isinstance(lists, list):
43
43
  raise ValueError("lists must be a list of dictionaries.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pihole6api
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Python API Client for Pi-hole 6
5
5
  Author-email: Shane Barbetta <shane@barbetta.me>
6
6
  License: MIT
File without changes
File without changes
File without changes