Metadata-Version: 2.1
Name: esetconnect
Version: 0.1.1
Summary: 
Author: Donny Maasland
Author-email: donny@unauthorizedaccess.nl
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.23.1,<0.24.0)
Requires-Dist: pydantic (>=1.10.2,<2.0.0)
Description-Content-Type: text/markdown

# ESET Connect

## API Docs
http://epcpublicapi-test.westeurope.cloudapp.azure.com/swagger/

## Quickstart

### Install
```bash
pip install esetconnect
```

### Get detections
```python
from esetconnect import EsetConnect

USERNAME = "username"
PASSWORD = "password"

with EsetConnect(USERNAME, PASSWORD) as ec:
    for detection in ec.get_detections().detections:
        print(detection.json())
```

```json
{
   "category":"DETECTION_CATEGORY_UNSPECIFIED",
   "context":{
      "circumstances":"Event occurred on a modified file.",
      "device_uuid":"83c7522f-f4a7-4a80-a055-8e1329201129",
      "process":{
         "path":"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
      },
      "user_name":"DESKTOP-7DAP322\\username"
   },
   "display_name":"Eicar",
   "network_communication":null,
   "object_hash_sha1":"3395856CE81F2B7382DEE72602F798B642F14140",
   "object_name":"file:///C:/Users/username/AppData/Local/Temp/2f7545df-d894-4768-8741-944d7ef059f6.tmp",
   "object_type_name":"File",
   "object_url":"",
   "occur_time":"2022-12-07T09:26:13",
   "responses":{
      "description":null,
      "device_restart_required":null,
      "display_name":null,
      "protection_name":null
   },
   "severity_level":"SEVERITY_LEVEL_MEDIUM",
   "type_name":"nil",
   "uuid":"ec879237-d1c3-3742-ecab-05fed9ea9a58"
}
```

