HakObserverpy 2.2.1__tar.gz → 2.3.0__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.
@@ -10,7 +10,7 @@ from datetime import datetime
10
10
 
11
11
  def StatusLogginfo(DeviceID, Step, Comment,Status):
12
12
 
13
- url = f"https://api.hakware.com/HakObserver/callLog/{DeviceID}/{Step}/{Comment}/{Status}"
13
+ url = f"https://za.api.hakware.com/HakObserver/callLog/{DeviceID}/{Step}/{Comment}/{Status}"
14
14
 
15
15
  session = HTMLSession()
16
16
 
@@ -69,7 +69,7 @@ def get_installed_applications(HWDeviceID):
69
69
 
70
70
  #Replace special characters in app_name
71
71
 
72
- url = f"https://api.hakware.com/HakObserver/DeviceApps/{HWDeviceID}/{app_name}/{app_version}"
72
+ url = f"https://za.api.hakware.com/HakObserver/DeviceApps/{HWDeviceID}/{app_name}/{app_version}"
73
73
 
74
74
  #Make a GET request to the URL
75
75
  session = HTMLSession()
@@ -130,7 +130,7 @@ def get_system_usage(HWDeviceID,ObserverVersion):
130
130
 
131
131
  from requests_html import HTMLSession
132
132
 
133
- url = f"https://api.hakware.com/HakObserver/Device/{HWDeviceID}/{ObserverVersion}/{device_name}/{processor}/{device_id}/{system_type}/{os_version}/{total_memory_gb}/{total_cpus}/{total_cores}"
133
+ url = f"https://za.api.hakware.com/HakObserver/Device/{HWDeviceID}/{ObserverVersion}/{device_name}/{processor}/{device_id}/{system_type}/{os_version}/{total_memory_gb}/{total_cpus}/{total_cores}"
134
134
 
135
135
 
136
136
 
@@ -173,7 +173,7 @@ def get_users(DeviceID):
173
173
  PasswordAge = age // (24 * 3600)
174
174
 
175
175
  #InserUsers(DeviceID, User, PasswordAge, Comment)
176
- url = f"https://api.hakware.com/HakObserver/InsertUsers/{DeviceID}/{User}/{PasswordAge}/{Comment}"
176
+ url = f"https://za.api.hakware.com/HakObserver/InsertUsers/{DeviceID}/{User}/{PasswordAge}/{Comment}"
177
177
 
178
178
  #Make a GET request to the URL
179
179
  session = HTMLSession()
@@ -207,7 +207,7 @@ def monitor_disk_space(DeviceID):
207
207
  Total = usage.total
208
208
 
209
209
 
210
- url = f"https://api.hakware.com/HakObserver/InsertDisks/{DeviceID}/{Disk}/{fstype}/{Usage}/{Used}/{Free}/{Total}"
210
+ url = f"https://za.api.hakware.com/HakObserver/InsertDisks/{DeviceID}/{Disk}/{fstype}/{Usage}/{Used}/{Free}/{Total}"
211
211
 
212
212
  #Make a GET request to the URL
213
213
  session = HTMLSession()
@@ -237,7 +237,7 @@ def list_Device_Usage(DeviceID):
237
237
  CPUPercentage = proc.info['cpu_percent']
238
238
  MemoryMB =proc.info['memory_info'].rss / (1024 * 1024)
239
239
 
240
- url = f"https://api.hakware.com/HakObserver/DeviceUsage/{DeviceID}/{pid}/{Name}/{CPUPercentage}/{MemoryMB}"
240
+ url = f"https://za.api.hakware.com/HakObserver/DeviceUsage/{DeviceID}/{pid}/{Name}/{CPUPercentage}/{MemoryMB}"
241
241
  #Make a GET request to the URL
242
242
  session = HTMLSession()
243
243
 
@@ -273,7 +273,7 @@ def list_services(DeviceID):
273
273
  Status = svc['status']
274
274
 
275
275
  #Services(DeviceID,pid,Name,display_name,binpath,username,start_type,description,Status )
276
- url = f"https://api.hakware.com/HakObserver/InsertServices/{DeviceID}/{pid}/{Name}/{display_name}/{binpath}/{username}/{start_type}/{description}/{Status}"
276
+ url = f"https://za.api.hakware.com/HakObserver/InsertServices/{DeviceID}/{pid}/{Name}/{display_name}/{binpath}/{username}/{start_type}/{description}/{Status}"
277
277
 
278
278
  session = HTMLSession()
279
279
 
@@ -307,7 +307,7 @@ def system_usage(DeviceID):
307
307
  cpu_percentage = psutil.cpu_percent(interval=1)
308
308
  memory_mb = memory.percent
309
309
  disk = disk_usage.percent
310
- url = f"https://api.hakware.com/HakObserver/InsertSystemUsage/{DeviceID}/{cpu_percentage}/{memory_mb}/{disk}"
310
+ url = f"https://za.api.hakware.com/HakObserver/InsertSystemUsage/{DeviceID}/{cpu_percentage}/{memory_mb}/{disk}"
311
311
  session = HTMLSession()
312
312
 
313
313
  response = session.get(url, verify=False)
@@ -522,7 +522,7 @@ def get_Security_events(DeviceID, server='localhost', log_type='Security'):
522
522
  EventData= event.StringInserts[0]
523
523
 
524
524
  #InsertEvents(DeviceID,RecordNumber, log_type,EventID ,EventDescription,Source,EventTime,strEventTypeID, EventTypeDescription,EventCategoryID ,category_text,EventData)
525
- url = f"https://api.hakware.com/HakObserver/InsertEvents/{DeviceID}/{RecordNumber}/{log_type}/{EventID}/{EventDescription}/{Source}/{EventTime}/{strEventTypeID}/{EventTypeDescription}/{EventCategoryID}/{category_text}/{EventData}"
525
+ url = f"https://za.api.hakware.com/HakObserver/InsertEvents/{DeviceID}/{RecordNumber}/{log_type}/{EventID}/{EventDescription}/{Source}/{EventTime}/{strEventTypeID}/{EventTypeDescription}/{EventCategoryID}/{category_text}/{EventData}"
526
526
 
527
527
  session = HTMLSession()
528
528
 
@@ -607,7 +607,7 @@ def get_System_events(DeviceID,server='localhost', log_type='System'):
607
607
  EventData= "User : " + event.StringInserts[0]
608
608
 
609
609
  #InsertEvents(DeviceID,RecordNumber, log_type,EventID ,EventDescription,Source,EventTime,strEventTypeID, EventTypeDescription,EventCategoryID ,category_text,EventData)
610
- url = f"https://api.hakware.com/HakObserver/InsertEvents/{DeviceID}/{RecordNumber}/{log_type}/{EventID}/{EventDescription}/{Source}/{EventTime}/{strEventTypeID}/{EventTypeDescription}/{EventCategoryID}/{category_text}/{EventData}"
610
+ url = f"https://za.api.hakware.com/HakObserver/InsertEvents/{DeviceID}/{RecordNumber}/{log_type}/{EventID}/{EventDescription}/{Source}/{EventTime}/{strEventTypeID}/{EventTypeDescription}/{EventCategoryID}/{category_text}/{EventData}"
611
611
 
612
612
  session = HTMLSession()
613
613
 
@@ -657,7 +657,7 @@ def get_iis_sites(HWDeviceID):
657
657
  print("Bindings :")
658
658
 
659
659
  #Insert_IIS(HWDeviceID,name, state,str(path).replace("\"","**"))
660
- url = f"https://api.hakware.com/HakObserver/InsertIIS/{HWDeviceID}/{name}/{state}/{strPath}"
660
+ url = f"https://za.api.hakware.com/HakObserver/InsertIIS/{HWDeviceID}/{name}/{state}/{strPath}"
661
661
 
662
662
  session = HTMLSession()
663
663
 
@@ -688,7 +688,7 @@ def get_iis_sites(HWDeviceID):
688
688
  print(f" Cert Store : {cert_store}")
689
689
  print()
690
690
  #Insert_IIS_Bindings(DeviceID,name,protocol, binding_info,ssl_flags,cert_hash,cert_store)
691
- url = f"https://api.hakware.com/HakObserver/InsertIISBindings/{HWDeviceID}/{name}/{protocol}/{binding_info}/{ssl_flags}/{cert_hash}/{cert_store}"
691
+ url = f"https://za.api.hakware.com/HakObserver/InsertIISBindings/{HWDeviceID}/{name}/{protocol}/{binding_info}/{ssl_flags}/{cert_hash}/{cert_store}"
692
692
  session = HTMLSession()
693
693
 
694
694
  response = session.get(url, verify=False)
@@ -2,7 +2,7 @@
2
2
  from .HakObserverpy import InitiateCollecection # Import the function from the correct module
3
3
 
4
4
  # Optional: Define a version number for the package
5
- __version__ = "2.2.1"
5
+ __version__ = "2.3.0"
6
6
 
7
7
  # Optional: Define the package's public interface
8
8
  __all__ = ["InitiateCollecection"]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: HakObserverpy
3
- Version: 2.2.1
3
+ Version: 2.3.0
4
4
  Summary: A package connect endpoints to the Hakware Application
5
5
  Author: Jacob O'Brien
6
6
  Classifier: Programming Language :: Python :: 3
@@ -13,6 +13,13 @@ Requires-Dist: psutil
13
13
  Requires-Dist: lxml[html_clean]
14
14
  Requires-Dist: requests_html
15
15
  Requires-Dist: pywin32
16
+ Dynamic: author
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
16
23
 
17
24
  # Hakware-py
18
25
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: HakObserverpy
3
- Version: 2.2.1
3
+ Version: 2.3.0
4
4
  Summary: A package connect endpoints to the Hakware Application
5
5
  Author: Jacob O'Brien
6
6
  Classifier: Programming Language :: Python :: 3
@@ -13,6 +13,13 @@ Requires-Dist: psutil
13
13
  Requires-Dist: lxml[html_clean]
14
14
  Requires-Dist: requests_html
15
15
  Requires-Dist: pywin32
16
+ Dynamic: author
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
16
23
 
17
24
  # Hakware-py
18
25
 
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name='HakObserverpy',
6
- version='2.2.1',
6
+ version='2.3.0',
7
7
  description='A package connect endpoints to the Hakware Application',
8
8
  long_description=open('README.md').read(),
9
9
  long_description_content_type='text/markdown',
File without changes
File without changes