gumlet 0.2.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.
- gumlet-0.2.0/.claude/skills/gumlet-python-sdk/SKILL.md +117 -0
- gumlet-0.2.0/.github/workflows/release-please.yml +101 -0
- gumlet-0.2.0/.github/workflows/release-title-edit.yml +143 -0
- gumlet-0.2.0/.github/workflows/sdk-ci.yml +27 -0
- gumlet-0.2.0/.github/workflows/sdk-release.yml +34 -0
- gumlet-0.2.0/.gitignore +10 -0
- gumlet-0.2.0/.release-please-manifest.json +3 -0
- gumlet-0.2.0/CHANGELOG.md +8 -0
- gumlet-0.2.0/LICENSE +201 -0
- gumlet-0.2.0/PKG-INFO +243 -0
- gumlet-0.2.0/README.md +224 -0
- gumlet-0.2.0/SECURITY.md +19 -0
- gumlet-0.2.0/SKILL.md +117 -0
- gumlet-0.2.0/VERSIONING.md +86 -0
- gumlet-0.2.0/api.md +1648 -0
- gumlet-0.2.0/pyproject.toml +31 -0
- gumlet-0.2.0/release-please-config.json +46 -0
- gumlet-0.2.0/scalar-sdk.manifest.json +8477 -0
- gumlet-0.2.0/src/gumlet/__init__.py +88 -0
- gumlet-0.2.0/src/gumlet/_base_client.py +2236 -0
- gumlet-0.2.0/src/gumlet/_client.py +1256 -0
- gumlet-0.2.0/src/gumlet/_compat.py +226 -0
- gumlet-0.2.0/src/gumlet/_constants.py +14 -0
- gumlet-0.2.0/src/gumlet/_event_handler.py +85 -0
- gumlet-0.2.0/src/gumlet/_exceptions.py +126 -0
- gumlet-0.2.0/src/gumlet/_files.py +173 -0
- gumlet-0.2.0/src/gumlet/_models.py +962 -0
- gumlet-0.2.0/src/gumlet/_qs.py +149 -0
- gumlet-0.2.0/src/gumlet/_resource.py +43 -0
- gumlet-0.2.0/src/gumlet/_response.py +840 -0
- gumlet-0.2.0/src/gumlet/_send_queue.py +90 -0
- gumlet-0.2.0/src/gumlet/_streaming.py +350 -0
- gumlet-0.2.0/src/gumlet/_types.py +274 -0
- gumlet-0.2.0/src/gumlet/_utils/__init__.py +64 -0
- gumlet-0.2.0/src/gumlet/_utils/_compat.py +45 -0
- gumlet-0.2.0/src/gumlet/_utils/_datetime_parse.py +136 -0
- gumlet-0.2.0/src/gumlet/_utils/_json.py +35 -0
- gumlet-0.2.0/src/gumlet/_utils/_logs.py +25 -0
- gumlet-0.2.0/src/gumlet/_utils/_path.py +127 -0
- gumlet-0.2.0/src/gumlet/_utils/_proxy.py +65 -0
- gumlet-0.2.0/src/gumlet/_utils/_reflection.py +42 -0
- gumlet-0.2.0/src/gumlet/_utils/_resources_proxy.py +24 -0
- gumlet-0.2.0/src/gumlet/_utils/_streams.py +12 -0
- gumlet-0.2.0/src/gumlet/_utils/_sync.py +58 -0
- gumlet-0.2.0/src/gumlet/_utils/_transform.py +457 -0
- gumlet-0.2.0/src/gumlet/_utils/_typing.py +156 -0
- gumlet-0.2.0/src/gumlet/_utils/_utils.py +433 -0
- gumlet-0.2.0/src/gumlet/_version.py +4 -0
- gumlet-0.2.0/src/gumlet/py.typed +0 -0
- gumlet-0.2.0/src/gumlet/resources/__init__.py +299 -0
- gumlet-0.2.0/src/gumlet/resources/audio_upload.py +289 -0
- gumlet-0.2.0/src/gumlet/resources/audit_logs.py +291 -0
- gumlet-0.2.0/src/gumlet/resources/billing.py +464 -0
- gumlet-0.2.0/src/gumlet/resources/channel_viewers.py +545 -0
- gumlet-0.2.0/src/gumlet/resources/folders.py +842 -0
- gumlet-0.2.0/src/gumlet/resources/image_sources.py +1077 -0
- gumlet-0.2.0/src/gumlet/resources/image_usage_analytics.py +228 -0
- gumlet-0.2.0/src/gumlet/resources/live_stream_assets.py +1025 -0
- gumlet-0.2.0/src/gumlet/resources/live_stream_workspaces.py +462 -0
- gumlet-0.2.0/src/gumlet/resources/multipart_upload.py +284 -0
- gumlet-0.2.0/src/gumlet/resources/organization_data.py +145 -0
- gumlet-0.2.0/src/gumlet/resources/recycle_bin.py +273 -0
- gumlet-0.2.0/src/gumlet/resources/subtitle_upload.py +287 -0
- gumlet-0.2.0/src/gumlet/resources/user_data.py +145 -0
- gumlet-0.2.0/src/gumlet/resources/video_analytics.py +469 -0
- gumlet-0.2.0/src/gumlet/resources/video_assets.py +2145 -0
- gumlet-0.2.0/src/gumlet/resources/video_playlists.py +1143 -0
- gumlet-0.2.0/src/gumlet/resources/video_profiles.py +796 -0
- gumlet-0.2.0/src/gumlet/resources/video_usage_analytics.py +367 -0
- gumlet-0.2.0/src/gumlet/resources/video_workspaces.py +864 -0
- gumlet-0.2.0/src/gumlet/resources/webhooks.py +595 -0
- gumlet-0.2.0/src/gumlet/types/__init__.py +190 -0
- gumlet-0.2.0/src/gumlet/types/audio_upload_complete_params.py +20 -0
- gumlet-0.2.0/src/gumlet/types/audio_upload_complete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/audio_upload_upload_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/audio_upload_upload_response.py +22 -0
- gumlet-0.2.0/src/gumlet/types/audit_log_fetch_params.py +77 -0
- gumlet-0.2.0/src/gumlet/types/audit_log_fetch_response.py +61 -0
- gumlet-0.2.0/src/gumlet/types/billing_fetch_details_response.py +28 -0
- gumlet-0.2.0/src/gumlet/types/billing_fetch_upcoming_invoice_response.py +55 -0
- gumlet-0.2.0/src/gumlet/types/billing_list_invoices_response.py +38 -0
- gumlet-0.2.0/src/gumlet/types/billing_update_details_params.py +30 -0
- gumlet-0.2.0/src/gumlet/types/billing_update_details_response.py +28 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_delete_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_delete_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_invite_csv_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_invite_csv_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_invite_params.py +21 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_invite_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_list_subscribers_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/channel_viewer_list_subscribers_response.py +43 -0
- gumlet-0.2.0/src/gumlet/types/folder_create_params.py +16 -0
- gumlet-0.2.0/src/gumlet/types/folder_create_response.py +31 -0
- gumlet-0.2.0/src/gumlet/types/folder_delete_assets_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/folder_delete_assets_response.py +15 -0
- gumlet-0.2.0/src/gumlet/types/folder_delete_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/folder_list_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/folder_list_response.py +35 -0
- gumlet-0.2.0/src/gumlet/types/folder_retrieve_response.py +31 -0
- gumlet-0.2.0/src/gumlet/types/folder_update_params.py +33 -0
- gumlet-0.2.0/src/gumlet/types/folder_update_response.py +45 -0
- gumlet-0.2.0/src/gumlet/types/image_source_create_params.py +180 -0
- gumlet-0.2.0/src/gumlet/types/image_source_create_response.py +49 -0
- gumlet-0.2.0/src/gumlet/types/image_source_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/image_source_list_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/image_source_list_response.py +252 -0
- gumlet-0.2.0/src/gumlet/types/image_source_purge_cache_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/image_source_purge_cache_response.py +9 -0
- gumlet-0.2.0/src/gumlet/types/image_source_purge_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/image_source_purge_response.py +9 -0
- gumlet-0.2.0/src/gumlet/types/image_source_retrieve_response.py +419 -0
- gumlet-0.2.0/src/gumlet/types/image_source_update_params.py +398 -0
- gumlet-0.2.0/src/gumlet/types/image_source_update_response.py +408 -0
- gumlet-0.2.0/src/gumlet/types/image_usage_analytic_retrieve_params.py +56 -0
- gumlet-0.2.0/src/gumlet/types/image_usage_analytic_retrieve_response.py +191 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_complete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_create_params.py +29 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_create_response.py +55 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_filter_params.py +18 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_filter_response.py +69 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_retrieve_status_response.py +55 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_status_history_response.py +37 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_update_params.py +21 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_update_response.py +55 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_upload_params.py +16 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_asset_upload_response.py +23 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_create_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_create_response.py +25 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_list_response.py +32 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_update_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/live_stream_workspace_update_response.py +25 -0
- gumlet-0.2.0/src/gumlet/types/multipart_upload_complete_params.py +22 -0
- gumlet-0.2.0/src/gumlet/types/multipart_upload_complete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/multipart_upload_retrieve_part_url_response.py +15 -0
- gumlet-0.2.0/src/gumlet/types/organization_data_fetch_org_response.py +84 -0
- gumlet-0.2.0/src/gumlet/types/recycle_bin_list_params.py +18 -0
- gumlet-0.2.0/src/gumlet/types/recycle_bin_list_response.py +45 -0
- gumlet-0.2.0/src/gumlet/types/recycle_bin_recover_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/subtitle_upload_complete_params.py +20 -0
- gumlet-0.2.0/src/gumlet/types/subtitle_upload_complete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/subtitle_upload_upload_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/subtitle_upload_upload_response.py +22 -0
- gumlet-0.2.0/src/gumlet/types/user_data_fetch_response.py +42 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_aggregated_data_params.py +99 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_aggregated_data_response.py +23 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_breakdown_data_params.py +138 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_breakdown_data_response.py +33 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_chart_data_params.py +119 -0
- gumlet-0.2.0/src/gumlet/types/video_analytic_chart_data_response.py +47 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_analytics_params.py +47 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_analytics_response.py +163 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_create_params.py +270 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_create_response.py +103 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_create_update_chapter_params.py +22 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_create_update_chapter_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_delete_many_params.py +16 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_delete_many_response.py +10 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_list_deprecated_params.py +41 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_list_deprecated_response.py +108 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_list_params.py +61 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_list_response.py +140 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_retrieve_details_response.py +224 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_tag_many_params.py +22 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_tag_many_response.py +10 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_thumbnail_select_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_thumbnail_select_response.py +16 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_thumbnail_upload_response.py +16 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_update_params.py +64 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_update_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_upload_params.py +267 -0
- gumlet-0.2.0/src/gumlet/types/video_asset_upload_response.py +97 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_create_asset_params.py +19 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_create_asset_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_create_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_create_response.py +59 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_delete_asset_params.py +13 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_delete_asset_response.py +11 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_list_all_params.py +12 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_list_all_response.py +23 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_list_assets_params.py +21 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_list_assets_response.py +31 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_reorder_asset_params.py +31 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_reorder_asset_response.py +13 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_update_params.py +60 -0
- gumlet-0.2.0/src/gumlet/types/video_playlist_update_response.py +59 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_create_params.py +200 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_create_response.py +35 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_list_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_list_response.py +45 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_retrieve_response.py +39 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_update_params.py +215 -0
- gumlet-0.2.0/src/gumlet/types/video_profile_update_response.py +39 -0
- gumlet-0.2.0/src/gumlet/types/video_usage_analytic_retrieve_params.py +58 -0
- gumlet-0.2.0/src/gumlet/types/video_usage_analytic_retrieve_response.py +109 -0
- gumlet-0.2.0/src/gumlet/types/video_usage_analytic_top_assets_params.py +24 -0
- gumlet-0.2.0/src/gumlet/types/video_usage_analytic_top_assets_response.py +21 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_create_params.py +205 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_create_response.py +121 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_list_params.py +15 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_list_response.py +162 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_retrieve_response.py +234 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_update_params.py +280 -0
- gumlet-0.2.0/src/gumlet/types/video_workspace_update_response.py +150 -0
- gumlet-0.2.0/src/gumlet/types/webhook_create_params.py +22 -0
- gumlet-0.2.0/src/gumlet/types/webhook_create_response.py +23 -0
- gumlet-0.2.0/src/gumlet/types/webhook_delete_response.py +7 -0
- gumlet-0.2.0/src/gumlet/types/webhook_history_response.py +31 -0
- gumlet-0.2.0/src/gumlet/types/webhook_list_response.py +30 -0
- gumlet-0.2.0/src/gumlet/types/webhook_update_params.py +21 -0
- gumlet-0.2.0/src/gumlet/types/webhook_update_response.py +23 -0
- gumlet-0.2.0/tests/smoke-test.py +2194 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gumlet-python-sdk
|
|
3
|
+
description: "Python SDK for Gumlet API. Use when writing Python code that calls Gumlet API with the gumlet package: installing it, constructing and authenticating the client, and calling API operations."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Gumlet Python SDK
|
|
7
|
+
|
|
8
|
+
Generated Python client for Gumlet API, published as `gumlet`. Use the generated client instead of hand-writing HTTP requests.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
pip install gumlet
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Client setup and authentication
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
from gumlet import Gumlet
|
|
22
|
+
|
|
23
|
+
client = Gumlet(
|
|
24
|
+
api_key=os.environ.get("API_KEY"),
|
|
25
|
+
)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Provide credentials using the options below. Environment variables are read automatically when the target runtime supports them:
|
|
29
|
+
|
|
30
|
+
- `api_key` (env: `API_KEY`) — Credential for the API_KEY scheme.
|
|
31
|
+
|
|
32
|
+
## Calling operations
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
import os
|
|
36
|
+
|
|
37
|
+
from gumlet import Gumlet
|
|
38
|
+
|
|
39
|
+
client = Gumlet(
|
|
40
|
+
api_key=os.environ.get("API_KEY"),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
video_asset = client.video_assets.create(
|
|
44
|
+
input="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8",
|
|
45
|
+
collection_id="646df1c9173a4a2fcac180b4",
|
|
46
|
+
profile_id="646df1c9173a4a2fcac180b7",
|
|
47
|
+
format="ABR",
|
|
48
|
+
tag=["ball"],
|
|
49
|
+
description="some description",
|
|
50
|
+
metadata={"headermeta": "metavalue"},
|
|
51
|
+
call_to_actions=[
|
|
52
|
+
{
|
|
53
|
+
"start_time": 1,
|
|
54
|
+
"end_time": 90,
|
|
55
|
+
"text": "some test",
|
|
56
|
+
"url": "https://some-url.com",
|
|
57
|
+
"position_from_top": 11,
|
|
58
|
+
"position_from_right": 23,
|
|
59
|
+
"border_radius": "11",
|
|
60
|
+
"font_color": "#000001",
|
|
61
|
+
"background_color": "#ffffff",
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
playlist_id="6597acd5ed6f26a9c5ca9633",
|
|
65
|
+
folder="697375fbfa2d1037283140e4",
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
print(video_asset)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Method names, parameter shapes, and response types are generated from the API description — do not guess them. Look up the exact call signature in [api.md](../../../api.md) before writing a call.
|
|
72
|
+
|
|
73
|
+
## Error handling
|
|
74
|
+
|
|
75
|
+
Non-success responses throw generated API errors. Error objects expose status, headers, response body, and request metadata where the target runtime supports it.
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from gumlet import APIStatusError
|
|
79
|
+
|
|
80
|
+
try:
|
|
81
|
+
video_asset = client.video_assets.create(
|
|
82
|
+
input="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8",
|
|
83
|
+
collection_id="646df1c9173a4a2fcac180b4",
|
|
84
|
+
profile_id="646df1c9173a4a2fcac180b7",
|
|
85
|
+
format="ABR",
|
|
86
|
+
tag=["ball"],
|
|
87
|
+
description="some description",
|
|
88
|
+
metadata={"headermeta": "metavalue"},
|
|
89
|
+
call_to_actions=[
|
|
90
|
+
{
|
|
91
|
+
"start_time": 1,
|
|
92
|
+
"end_time": 90,
|
|
93
|
+
"text": "some test",
|
|
94
|
+
"url": "https://some-url.com",
|
|
95
|
+
"position_from_top": 11,
|
|
96
|
+
"position_from_right": 23,
|
|
97
|
+
"border_radius": "11",
|
|
98
|
+
"font_color": "#000001",
|
|
99
|
+
"background_color": "#ffffff",
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
playlist_id="6597acd5ed6f26a9c5ca9633",
|
|
103
|
+
folder="697375fbfa2d1037283140e4",
|
|
104
|
+
)
|
|
105
|
+
except APIStatusError as err:
|
|
106
|
+
print(err.status_code, err.message)
|
|
107
|
+
raise
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Requirements
|
|
111
|
+
|
|
112
|
+
- Python 3.8 or newer
|
|
113
|
+
|
|
114
|
+
## Reference files
|
|
115
|
+
|
|
116
|
+
- [README.md](../../../README.md) — full feature tour: client options, retries and timeouts, logging.
|
|
117
|
+
- [api.md](../../../api.md) — complete catalogue of every operation with request and response types.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
name: Release Please
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# A release is cut when a human merges the platform-managed release PR into
|
|
5
|
+
# main (the PR's base, so its diff shows the full pending release).
|
|
6
|
+
# Every other push here runs release-please as well — commits written straight to
|
|
7
|
+
# this branch included — and cuts nothing, there being no release commit at the tip.
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
# The Scalar platform pushes these workflow files straight to main to keep them
|
|
12
|
+
# current between releases; that is bookkeeping, never a release. Running anyway is worse
|
|
13
|
+
# than pointless on a branch that has not been handed a .release-please-manifest.json yet —
|
|
14
|
+
# release-please fails the run outright when it cannot read one. A release commit always
|
|
15
|
+
# rewrites the manifest and the changelog, so this filter can never swallow one.
|
|
16
|
+
paths-ignore:
|
|
17
|
+
- '.github/workflows/**'
|
|
18
|
+
# Manual fallback only; nothing in the automated chain depends on dispatch.
|
|
19
|
+
workflow_dispatch:
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: write
|
|
23
|
+
# Required to update the merged release PR's autorelease labels after tagging.
|
|
24
|
+
pull-requests: write
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
release-please:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
outputs:
|
|
30
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
31
|
+
# Consumed by the publish job's checkout: without this mapping the checkout ref would be
|
|
32
|
+
# empty and the publish would build the triggering branch head instead of the released
|
|
33
|
+
# tag's exact commit.
|
|
34
|
+
tag_name: ${{ steps.release.outputs.tag_name }}
|
|
35
|
+
steps:
|
|
36
|
+
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
|
|
37
|
+
id: release
|
|
38
|
+
with:
|
|
39
|
+
target-branch: main
|
|
40
|
+
config-file: release-please-config.json
|
|
41
|
+
manifest-file: .release-please-manifest.json
|
|
42
|
+
# Release PRs are opened and updated by the Scalar platform with its own
|
|
43
|
+
# credential (so their CI runs without manual approval); this workflow only
|
|
44
|
+
# cuts the tag + GitHub Release once a release PR is merged.
|
|
45
|
+
skip-github-pull-request: true
|
|
46
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
47
|
+
if: ${{ steps.release.outputs.release_created == 'true' }}
|
|
48
|
+
with:
|
|
49
|
+
fetch-depth: 0
|
|
50
|
+
# Merging the release PR into main is itself the promotion, but the
|
|
51
|
+
# version bump and changelog must also land back on scalar-next, or the next
|
|
52
|
+
# release PR would propose this release again. A real merge (never a plain
|
|
53
|
+
# commit push) so a squash- or rebase-merged release PR syncs just as well; the
|
|
54
|
+
# non-conventional message keeps the sync commit out of future changelogs. Plain
|
|
55
|
+
# (non-force) push on purpose: losing a race against a concurrent regeneration
|
|
56
|
+
# push fails loudly here, and the platform's next sync re-converges.
|
|
57
|
+
- name: Sync release back to scalar-next
|
|
58
|
+
if: ${{ steps.release.outputs.release_created == 'true' }}
|
|
59
|
+
run: |
|
|
60
|
+
git config user.name "github-actions[bot]"
|
|
61
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
62
|
+
git fetch origin scalar-next
|
|
63
|
+
git checkout -B scalar-next origin/scalar-next
|
|
64
|
+
git merge --no-edit -m "Sync release ${{ steps.release.outputs.tag_name }} back to scalar-next" "${{ steps.release.outputs.sha }}"
|
|
65
|
+
git push origin scalar-next
|
|
66
|
+
publish:
|
|
67
|
+
needs: release-please
|
|
68
|
+
# `!cancelled()` keeps publishing even when the back-sync to the integration branch
|
|
69
|
+
# failed: a raced integration branch must not block the release from reaching its
|
|
70
|
+
# registry.
|
|
71
|
+
if: ${{ !cancelled() && needs.release-please.outputs.release_created == 'true' }}
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
# Job-level permissions replace the workflow's release-cutting grants with the publish
|
|
74
|
+
# floor. OIDC trusted publishing verifies this run's claims, which name this workflow
|
|
75
|
+
# file — register release-please.yml as the trusted publisher on the registry.
|
|
76
|
+
permissions:
|
|
77
|
+
contents: read
|
|
78
|
+
id-token: write
|
|
79
|
+
packages: write
|
|
80
|
+
env:
|
|
81
|
+
VERSIONING_POLICY: manual
|
|
82
|
+
steps:
|
|
83
|
+
# Publishing runs inline — a top-level job of this same run — rather than dispatching
|
|
84
|
+
# sdk-release.yml: workflow_dispatch resolves the target workflow on the repository's
|
|
85
|
+
# default branch only, so a dispatch would 404 whenever the release line is any other
|
|
86
|
+
# branch, while OIDC trusted publishing accepts this job because it stays top-level
|
|
87
|
+
# (never a reusable-workflow call). The release-please job cut the tag earlier in this
|
|
88
|
+
# run; checking it out publishes exactly the released commit, not the branch head that
|
|
89
|
+
# triggered the workflow.
|
|
90
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
91
|
+
with:
|
|
92
|
+
ref: ${{ needs.release-please.outputs.tag_name }}
|
|
93
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
94
|
+
with:
|
|
95
|
+
python-version: "3.11"
|
|
96
|
+
- run: python -m pip install --upgrade build
|
|
97
|
+
- run: python -m build
|
|
98
|
+
- name: Publish to PyPI
|
|
99
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
100
|
+
with:
|
|
101
|
+
skip-existing: true
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
name: Release PR Version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# `edited` is not one of the default pull_request types, but it is the point of this
|
|
5
|
+
# workflow: retitling the release PR is how a maintainer picks an exact version. The
|
|
6
|
+
# other types keep the consistency check attached to the PR as it evolves.
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, reopened, edited, synchronize]
|
|
9
|
+
|
|
10
|
+
# Read-only by default; only the job that pushes the Release-As commit widens this.
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
version-consistency:
|
|
16
|
+
# Also the check name the release PR's footer tells maintainers to wait for.
|
|
17
|
+
name: Release PR version
|
|
18
|
+
# A release-shaped title against the release branch is the whole test here, with no clause
|
|
19
|
+
# on who opened the pull request or what branch it is rendered onto. This job only reads,
|
|
20
|
+
# and a pull request claiming to be a release is worth checking against the committed
|
|
21
|
+
# version whoever opened it. Every other pull request skips this job, which GitHub reports
|
|
22
|
+
# as neutral.
|
|
23
|
+
#
|
|
24
|
+
# Loose on purpose: the prefix, not the full semver pattern the script matches. A version
|
|
25
|
+
# typo'd into the title still reaches the script and fails there, rather than falling out
|
|
26
|
+
# of the guard and leaving no check at all — a missing check is not a failing one, and this
|
|
27
|
+
# is the check the release PR's footer tells maintainers to wait for before merging.
|
|
28
|
+
#
|
|
29
|
+
# It is also what keeps the workflow from failing silently if the platform ever opens
|
|
30
|
+
# release PRs from a different account: the bridge below stops firing, but this check still
|
|
31
|
+
# runs, the retitled version and the committed one disagree, and it turns red. The merge is
|
|
32
|
+
# blocked loudly instead of releasing the old version.
|
|
33
|
+
if: >-
|
|
34
|
+
${{ github.event.pull_request.base.ref == 'main'
|
|
35
|
+
&& startsWith(github.event.pull_request.title, 'release: ') }}
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
39
|
+
with:
|
|
40
|
+
# The version committed on the PR head is what merging would actually release.
|
|
41
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
42
|
+
# Fails while the title version and the committed version disagree — the window between
|
|
43
|
+
# a maintainer's retitle and the platform re-rendering the PR from it. Without this a
|
|
44
|
+
# merge in that window would tag a release whose own files self-report the old version,
|
|
45
|
+
# and a title release-please cannot parse would silently cut no release at all.
|
|
46
|
+
- name: Compare the title version with the committed version
|
|
47
|
+
env:
|
|
48
|
+
# The title is human input, so it is bound through the environment (never
|
|
49
|
+
# interpolated into the script) and matched against a strict semver pattern
|
|
50
|
+
# before it is read.
|
|
51
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
52
|
+
run: |
|
|
53
|
+
pattern='^release: ((0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?)$'
|
|
54
|
+
if [[ ! "$PR_TITLE" =~ $pattern ]]; then
|
|
55
|
+
echo "::error::Release PR title must be \"release: X.Y.Z\" with a full semver version, got: $PR_TITLE"
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
title_version="${BASH_REMATCH[1]}"
|
|
59
|
+
manifest_version="$(jq -r '.["."]' .release-please-manifest.json)"
|
|
60
|
+
if [[ "$title_version" != "$manifest_version" ]]; then
|
|
61
|
+
echo "::error::Release PR title says $title_version but the pull request is versioned $manifest_version. Wait for the release PR to be re-rendered at $title_version before merging."
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
echo "Release PR title and committed version agree on $title_version."
|
|
65
|
+
|
|
66
|
+
apply-title-version:
|
|
67
|
+
name: Apply edited release version
|
|
68
|
+
# A human retitle of the open release PR is bridged into the canonical explicit-version
|
|
69
|
+
# mechanism (a Release-As commit on scalar-next, which the platform re-renders the
|
|
70
|
+
# release PR from). `changes.title` is only set when the title itself changed, and bot
|
|
71
|
+
# senders are ignored so the platform's own retitles cannot bounce back into another
|
|
72
|
+
# commit.
|
|
73
|
+
#
|
|
74
|
+
# Both signals are required here, unlike the read-only check above, and each covers what the
|
|
75
|
+
# other cannot. The author, because this job pushes with `contents: write` and a title is
|
|
76
|
+
# free text — anyone able to open a pull request against main could otherwise
|
|
77
|
+
# name a version and have it committed to scalar-next. `user.login` is set by GitHub when
|
|
78
|
+
# the pull request is opened and cannot be forged by whoever edits the title afterwards.
|
|
79
|
+
# The title, because those accounts open pull requests other than release PRs, and retitling
|
|
80
|
+
# one of those must not push a release.
|
|
81
|
+
#
|
|
82
|
+
# One login per platform deployment, since a repo generated by staging carries staging's
|
|
83
|
+
# app. Parenthesised because the group is ANDed with the title clause below: without the
|
|
84
|
+
# parens that `&&` would bind to the last login alone, letting the other accounts push a
|
|
85
|
+
# release off any title. Listed rather than matched on the shared `scalar-docs` stem — a
|
|
86
|
+
# prefix test would also admit any future `scalar-docs-*[bot]`, including someone else's.
|
|
87
|
+
if: >-
|
|
88
|
+
${{ github.event.action == 'edited'
|
|
89
|
+
&& github.event.changes.title != null
|
|
90
|
+
&& github.event.sender.type != 'Bot'
|
|
91
|
+
&& github.event.pull_request.state == 'open'
|
|
92
|
+
&& github.event.pull_request.base.ref == 'main'
|
|
93
|
+
&& (github.event.pull_request.user.login == 'scalar-docs[bot]'
|
|
94
|
+
|| github.event.pull_request.user.login == 'scalar-docs-staging[bot]'
|
|
95
|
+
|| github.event.pull_request.user.login == 'scalar-docs-development[bot]')
|
|
96
|
+
&& startsWith(github.event.pull_request.title, 'release: ') }}
|
|
97
|
+
# One bridge run at a time per pull request, newest retitle wins. Two retitles in quick
|
|
98
|
+
# succession (a version typo corrected seconds later) would otherwise start two runs that
|
|
99
|
+
# both read the version committed on the PR head, both get past the no-op guard, and both
|
|
100
|
+
# push — and since each fetches scalar-next immediately before committing, the second
|
|
101
|
+
# push fast-forwards instead of failing. release-please honours the newest Release-As
|
|
102
|
+
# footer, so the release would land on whichever run happened to push last, not on the
|
|
103
|
+
# title the maintainer actually left behind.
|
|
104
|
+
concurrency:
|
|
105
|
+
group: release-title-edit-${{ github.event.pull_request.number }}
|
|
106
|
+
cancel-in-progress: true
|
|
107
|
+
runs-on: ubuntu-latest
|
|
108
|
+
permissions:
|
|
109
|
+
contents: write
|
|
110
|
+
steps:
|
|
111
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
112
|
+
with:
|
|
113
|
+
# The PR head, so the version the pull request currently carries can be read before
|
|
114
|
+
# deciding whether anything needs to change.
|
|
115
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
116
|
+
- name: Push a Release-As commit for the edited version
|
|
117
|
+
env:
|
|
118
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
119
|
+
run: |
|
|
120
|
+
set -euo pipefail
|
|
121
|
+
pattern='^release: ((0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?)$'
|
|
122
|
+
if [[ ! "$PR_TITLE" =~ $pattern ]]; then
|
|
123
|
+
echo "::error::Release PR title must be \"release: X.Y.Z\" with a full semver version, got: $PR_TITLE"
|
|
124
|
+
exit 1
|
|
125
|
+
fi
|
|
126
|
+
# Only ever a validated semver from here on, so it is safe in a commit message.
|
|
127
|
+
version="${BASH_REMATCH[1]}"
|
|
128
|
+
manifest_version="$(jq -r '.["."]' .release-please-manifest.json)"
|
|
129
|
+
# The re-rendered PR is retitled to the version it now carries; stopping here keeps
|
|
130
|
+
# that from producing an endless chain of Release-As commits.
|
|
131
|
+
if [[ "$version" == "$manifest_version" ]]; then
|
|
132
|
+
echo "This release PR already carries $version; nothing to do."
|
|
133
|
+
exit 0
|
|
134
|
+
fi
|
|
135
|
+
git config user.name "github-actions[bot]"
|
|
136
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
137
|
+
git fetch origin scalar-next
|
|
138
|
+
git checkout -B scalar-next origin/scalar-next
|
|
139
|
+
git commit --allow-empty -m "chore: release $version" -m "Release-As: $version"
|
|
140
|
+
# Plain (non-force) push: losing a race against a regeneration push fails loudly
|
|
141
|
+
# rather than discarding it, and the retitle can simply be repeated.
|
|
142
|
+
git push origin scalar-next
|
|
143
|
+
echo "Pushed Release-As: $version to scalar-next. The release PR will be re-rendered at that version."
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Python SDK CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
# Least privilege for a verification-only workflow: every job below only reads the checked-out
|
|
8
|
+
# tree, so the run's GITHUB_TOKEN is narrowed to that regardless of the repository's default
|
|
9
|
+
# grants. Declared at the workflow level so a job added later inherits the floor.
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
verify:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
18
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.11"
|
|
21
|
+
- run: python -m pip install --upgrade build
|
|
22
|
+
- run: python -m build
|
|
23
|
+
# Verification only, never auto-fix: the SDK is generated formatted, so a diff here means
|
|
24
|
+
# either hand-edited custom code or a regenerate that was not committed. ruff is pinned to
|
|
25
|
+
# the release that produced these bytes, since a formatter minor can change them.
|
|
26
|
+
- run: python -m pip install "ruff==0.16.1"
|
|
27
|
+
- run: ruff format --check .
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Python SDK Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# Manual re-publish only: the automated publish for each release runs as the `publish` job
|
|
5
|
+
# inside release-please.yml, in the same run that cuts the tag (dispatching a workflow here
|
|
6
|
+
# instead would resolve it on the repository's default branch only, which breaks releasing
|
|
7
|
+
# from any other release line). Dispatch this workflow at an existing release tag to re-run
|
|
8
|
+
# a failed or skipped publish. A dispatched run is top-level, so OIDC trusted-publisher
|
|
9
|
+
# claims name this file; register it as an additional trusted publisher only when manual
|
|
10
|
+
# re-publishes are used. Never add a workflow_call trigger here — registries reject
|
|
11
|
+
# publishes from called (reusable) workflows.
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
packages: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
env:
|
|
23
|
+
VERSIONING_POLICY: manual
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
26
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.11"
|
|
29
|
+
- run: python -m pip install --upgrade build
|
|
30
|
+
- run: python -m build
|
|
31
|
+
- name: Publish to PyPI
|
|
32
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
33
|
+
with:
|
|
34
|
+
skip-existing: true
|
gumlet-0.2.0/.gitignore
ADDED
gumlet-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Gumlet
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|