readyview 0.0.2__tar.gz → 0.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: readyview
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: ReadyLinks ReadyView API library.
5
5
  Project-URL: Homepage, https://gitlab.com/readylinks
6
6
  Project-URL: Issues, https://gitlab.com/readylinks
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "readyview"
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  authors = [
9
9
  { name="ReadyLinks Developers", email="developers@ready-links.com" },
10
10
  ]
@@ -1,5 +1,5 @@
1
- import rest_session
2
- from switch import Switch
1
+ from . import rest_session
2
+ from .switch import Switch
3
3
  import os
4
4
 
5
5
  class Dashboard:
@@ -0,0 +1,10 @@
1
+ import readyview
2
+
3
+ dash = readyview.Dashboard("PijBDVbmF3S7nc6bUePE","rv-prod-AlH6Sx7wlKS78aDFSXtwYKnUteVhu7bU3QDf6exH")
4
+ switches = dash.switch.get_switches()
5
+
6
+ for switch in switches:
7
+ dev = dash.switch.get_device(switch['id'])
8
+ if dev['status'] == "Online":
9
+ print(f"calling {dev['mac_address']}")
10
+ print(dash.switch.get_ports(dev['mac_address']))
File without changes
File without changes