lucos-schedule-tracker-pythonclient 1.0.0__tar.gz → 1.0.2__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.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: lucos_schedule_tracker_pythonclient
3
+ Version: 1.0.2
4
+ Summary: Python library for sending updates to lucos_schedule_tracker
5
+ Classifier: Programming Language :: Python :: 3
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: requests>=2.28
9
+
10
+ # lucos_schedule_tracker_pythonclient
11
+
12
+ Python library for sending updates to [lucos_schedule_tracker](https://github.com/lucas42/lucos_schedule_tracker).
13
+
14
+ ## Configuration
15
+
16
+ The following environment variables must be set for the library to function:
17
+
18
+ * **`SYSTEM`**: A unique identifier for the system or job being tracked. This is used as the `User-Agent` header and as the default `system` name in reports.
19
+ * **`SCHEDULE_TRACKER_ENDPOINT`**: The full URL of the `lucos_schedule_tracker` instance's report endpoint (e.g., `https://schedule-tracker.example.com/report-status`).
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ from schedule_tracker import updateScheduleTracker
25
+
26
+ # Report a successful run
27
+ updateScheduleTracker(success=True)
28
+
29
+ # Report a failure with a message
30
+ updateScheduleTracker(success=False, message="Database connection failed")
31
+ ```
32
+
33
+ ## API Reference
34
+
35
+ ### `updateScheduleTracker(success: bool, system: str = SYSTEM, message: str = None, frequency: int = 86400)`
36
+
37
+ Sends a status update to the schedule tracker.
38
+
39
+ * **`success`** (*bool*, required): Whether the job completed successfully.
40
+ * **`system`** (*str*, optional): The identifier for the system. Defaults to the value of the `SYSTEM` environment variable.
41
+ * **`message`** (*str*, optional): A human-readable message, typically used to provide details on failure.
42
+ * **`frequency`** (*int*, optional): How often the job is expected to run, in seconds. Defaults to `86400` (24 hours).
@@ -0,0 +1,33 @@
1
+ # lucos_schedule_tracker_pythonclient
2
+
3
+ Python library for sending updates to [lucos_schedule_tracker](https://github.com/lucas42/lucos_schedule_tracker).
4
+
5
+ ## Configuration
6
+
7
+ The following environment variables must be set for the library to function:
8
+
9
+ * **`SYSTEM`**: A unique identifier for the system or job being tracked. This is used as the `User-Agent` header and as the default `system` name in reports.
10
+ * **`SCHEDULE_TRACKER_ENDPOINT`**: The full URL of the `lucos_schedule_tracker` instance's report endpoint (e.g., `https://schedule-tracker.example.com/report-status`).
11
+
12
+ ## Usage
13
+
14
+ ```python
15
+ from schedule_tracker import updateScheduleTracker
16
+
17
+ # Report a successful run
18
+ updateScheduleTracker(success=True)
19
+
20
+ # Report a failure with a message
21
+ updateScheduleTracker(success=False, message="Database connection failed")
22
+ ```
23
+
24
+ ## API Reference
25
+
26
+ ### `updateScheduleTracker(success: bool, system: str = SYSTEM, message: str = None, frequency: int = 86400)`
27
+
28
+ Sends a status update to the schedule tracker.
29
+
30
+ * **`success`** (*bool*, required): Whether the job completed successfully.
31
+ * **`system`** (*str*, optional): The identifier for the system. Defaults to the value of the `SYSTEM` environment variable.
32
+ * **`message`** (*str*, optional): A human-readable message, typically used to provide details on failure.
33
+ * **`frequency`** (*int*, optional): How often the job is expected to run, in seconds. Defaults to `86400` (24 hours).
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: lucos_schedule_tracker_pythonclient
3
+ Version: 1.0.2
4
+ Summary: Python library for sending updates to lucos_schedule_tracker
5
+ Classifier: Programming Language :: Python :: 3
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: requests>=2.28
9
+
10
+ # lucos_schedule_tracker_pythonclient
11
+
12
+ Python library for sending updates to [lucos_schedule_tracker](https://github.com/lucas42/lucos_schedule_tracker).
13
+
14
+ ## Configuration
15
+
16
+ The following environment variables must be set for the library to function:
17
+
18
+ * **`SYSTEM`**: A unique identifier for the system or job being tracked. This is used as the `User-Agent` header and as the default `system` name in reports.
19
+ * **`SCHEDULE_TRACKER_ENDPOINT`**: The full URL of the `lucos_schedule_tracker` instance's report endpoint (e.g., `https://schedule-tracker.example.com/report-status`).
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ from schedule_tracker import updateScheduleTracker
25
+
26
+ # Report a successful run
27
+ updateScheduleTracker(success=True)
28
+
29
+ # Report a failure with a message
30
+ updateScheduleTracker(success=False, message="Database connection failed")
31
+ ```
32
+
33
+ ## API Reference
34
+
35
+ ### `updateScheduleTracker(success: bool, system: str = SYSTEM, message: str = None, frequency: int = 86400)`
36
+
37
+ Sends a status update to the schedule tracker.
38
+
39
+ * **`success`** (*bool*, required): Whether the job completed successfully.
40
+ * **`system`** (*str*, optional): The identifier for the system. Defaults to the value of the `SYSTEM` environment variable.
41
+ * **`message`** (*str*, optional): A human-readable message, typically used to provide details on failure.
42
+ * **`frequency`** (*int*, optional): How often the job is expected to run, in seconds. Defaults to `86400` (24 hours).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lucos_schedule_tracker_pythonclient"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  description = "Python library for sending updates to lucos_schedule_tracker"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: lucos_schedule_tracker_pythonclient
3
- Version: 1.0.0
4
- Summary: Python library for sending updates to lucos_schedule_tracker
5
- Classifier: Programming Language :: Python :: 3
6
- Requires-Python: >=3.8
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: requests>=2.28
9
-
10
- # lucos_schedule_tracker_pythonclient
11
- Python library for sending updates to lucos_schedule_tracker
@@ -1,2 +0,0 @@
1
- # lucos_schedule_tracker_pythonclient
2
- Python library for sending updates to lucos_schedule_tracker
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: lucos_schedule_tracker_pythonclient
3
- Version: 1.0.0
4
- Summary: Python library for sending updates to lucos_schedule_tracker
5
- Classifier: Programming Language :: Python :: 3
6
- Requires-Python: >=3.8
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: requests>=2.28
9
-
10
- # lucos_schedule_tracker_pythonclient
11
- Python library for sending updates to lucos_schedule_tracker