lucos-loganne-pythonclient 1.0.25__tar.gz → 1.0.27__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.
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/PKG-INFO +12 -2
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/README.md +11 -1
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/loganne.py +2 -1
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/lucos_loganne_pythonclient.egg-info/PKG-INFO +12 -2
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/pyproject.toml +1 -1
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/lucos_loganne_pythonclient.egg-info/SOURCES.txt +0 -0
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/lucos_loganne_pythonclient.egg-info/dependency_links.txt +0 -0
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/lucos_loganne_pythonclient.egg-info/requires.txt +0 -0
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/lucos_loganne_pythonclient.egg-info/top_level.txt +0 -0
- {lucos_loganne_pythonclient-1.0.25 → lucos_loganne_pythonclient-1.0.27}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lucos_loganne_pythonclient
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.27
|
|
4
4
|
Summary: A python client for sending events to lucos_loganne
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -19,12 +19,13 @@ The following environment variables must be set for the package to function:
|
|
|
19
19
|
## API
|
|
20
20
|
The package exposes a single function:
|
|
21
21
|
|
|
22
|
-
### `updateLoganne(type, humanReadable, url=None)`
|
|
22
|
+
### `updateLoganne(type, humanReadable, url=None, **extra_data)`
|
|
23
23
|
Sends an event to the Loganne service.
|
|
24
24
|
|
|
25
25
|
* **type** (str, required): The type of event being logged.
|
|
26
26
|
* **humanReadable** (str, required): A description of the event that is easy for humans to understand.
|
|
27
27
|
* **url** (str, optional): A link to a human-readable page regarding the item the event pertains to. Defaults to `None`.
|
|
28
|
+
* **\*\*extra_data** (optional): Any additional keyword arguments are forwarded as extra fields in the event payload. Useful for attaching structured data to events (e.g. multiple URIs, identifiers, or other context).
|
|
28
29
|
|
|
29
30
|
## Usage
|
|
30
31
|
```python
|
|
@@ -36,5 +37,14 @@ updateLoganne(
|
|
|
36
37
|
humanReadable="The Contact \"John Doe\" has been updated",
|
|
37
38
|
url="https://contacts.example.com/contact/123456"
|
|
38
39
|
)
|
|
40
|
+
|
|
41
|
+
# With extra structured data
|
|
42
|
+
updateLoganne(
|
|
43
|
+
type="entityMerged",
|
|
44
|
+
humanReadable="Contact \"Old Name\" merged into \"New Name\"",
|
|
45
|
+
url="https://contacts.example.com/contact/789",
|
|
46
|
+
sourceUri="https://contacts.example.com/contact/123",
|
|
47
|
+
targetUri="https://contacts.example.com/contact/789",
|
|
48
|
+
)
|
|
39
49
|
```
|
|
40
50
|
|
|
@@ -10,12 +10,13 @@ The following environment variables must be set for the package to function:
|
|
|
10
10
|
## API
|
|
11
11
|
The package exposes a single function:
|
|
12
12
|
|
|
13
|
-
### `updateLoganne(type, humanReadable, url=None)`
|
|
13
|
+
### `updateLoganne(type, humanReadable, url=None, **extra_data)`
|
|
14
14
|
Sends an event to the Loganne service.
|
|
15
15
|
|
|
16
16
|
* **type** (str, required): The type of event being logged.
|
|
17
17
|
* **humanReadable** (str, required): A description of the event that is easy for humans to understand.
|
|
18
18
|
* **url** (str, optional): A link to a human-readable page regarding the item the event pertains to. Defaults to `None`.
|
|
19
|
+
* **\*\*extra_data** (optional): Any additional keyword arguments are forwarded as extra fields in the event payload. Useful for attaching structured data to events (e.g. multiple URIs, identifiers, or other context).
|
|
19
20
|
|
|
20
21
|
## Usage
|
|
21
22
|
```python
|
|
@@ -27,5 +28,14 @@ updateLoganne(
|
|
|
27
28
|
humanReadable="The Contact \"John Doe\" has been updated",
|
|
28
29
|
url="https://contacts.example.com/contact/123456"
|
|
29
30
|
)
|
|
31
|
+
|
|
32
|
+
# With extra structured data
|
|
33
|
+
updateLoganne(
|
|
34
|
+
type="entityMerged",
|
|
35
|
+
humanReadable="Contact \"Old Name\" merged into \"New Name\"",
|
|
36
|
+
url="https://contacts.example.com/contact/789",
|
|
37
|
+
sourceUri="https://contacts.example.com/contact/123",
|
|
38
|
+
targetUri="https://contacts.example.com/contact/789",
|
|
39
|
+
)
|
|
30
40
|
```
|
|
31
41
|
|
|
@@ -16,7 +16,7 @@ session.headers.update({
|
|
|
16
16
|
"Content-Type": "application/json",
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
-
def updateLoganne(type: str, humanReadable: str, url: str = None):
|
|
19
|
+
def updateLoganne(type: str, humanReadable: str, url: str = None, **extra_data):
|
|
20
20
|
payload = {
|
|
21
21
|
"type": type,
|
|
22
22
|
"source": SYSTEM,
|
|
@@ -24,6 +24,7 @@ def updateLoganne(type: str, humanReadable: str, url: str = None):
|
|
|
24
24
|
}
|
|
25
25
|
if url:
|
|
26
26
|
payload["url"] = url
|
|
27
|
+
payload.update(extra_data)
|
|
27
28
|
try:
|
|
28
29
|
loganne_response = session.post(LOGANNE_ENDPOINT, json=payload)
|
|
29
30
|
loganne_response.raise_for_status()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lucos_loganne_pythonclient
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.27
|
|
4
4
|
Summary: A python client for sending events to lucos_loganne
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -19,12 +19,13 @@ The following environment variables must be set for the package to function:
|
|
|
19
19
|
## API
|
|
20
20
|
The package exposes a single function:
|
|
21
21
|
|
|
22
|
-
### `updateLoganne(type, humanReadable, url=None)`
|
|
22
|
+
### `updateLoganne(type, humanReadable, url=None, **extra_data)`
|
|
23
23
|
Sends an event to the Loganne service.
|
|
24
24
|
|
|
25
25
|
* **type** (str, required): The type of event being logged.
|
|
26
26
|
* **humanReadable** (str, required): A description of the event that is easy for humans to understand.
|
|
27
27
|
* **url** (str, optional): A link to a human-readable page regarding the item the event pertains to. Defaults to `None`.
|
|
28
|
+
* **\*\*extra_data** (optional): Any additional keyword arguments are forwarded as extra fields in the event payload. Useful for attaching structured data to events (e.g. multiple URIs, identifiers, or other context).
|
|
28
29
|
|
|
29
30
|
## Usage
|
|
30
31
|
```python
|
|
@@ -36,5 +37,14 @@ updateLoganne(
|
|
|
36
37
|
humanReadable="The Contact \"John Doe\" has been updated",
|
|
37
38
|
url="https://contacts.example.com/contact/123456"
|
|
38
39
|
)
|
|
40
|
+
|
|
41
|
+
# With extra structured data
|
|
42
|
+
updateLoganne(
|
|
43
|
+
type="entityMerged",
|
|
44
|
+
humanReadable="Contact \"Old Name\" merged into \"New Name\"",
|
|
45
|
+
url="https://contacts.example.com/contact/789",
|
|
46
|
+
sourceUri="https://contacts.example.com/contact/123",
|
|
47
|
+
targetUri="https://contacts.example.com/contact/789",
|
|
48
|
+
)
|
|
39
49
|
```
|
|
40
50
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|