unitysvc-data 0.1.8__tar.gz → 0.1.9__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.
- {unitysvc_data-0.1.8/src/unitysvc_data.egg-info → unitysvc_data-0.1.9}/PKG-INFO +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/pyproject.toml +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_manifest.json +38 -5
- unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-requests/README.md +39 -0
- unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-requests/code-example-v1.py.j2 +15 -0
- unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-shell/README.md +38 -0
- unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-shell/code-example-v1.sh.j2 +11 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/api/connectivity/README.md +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/request-template/README.md +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/connectivity/README.md +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/README.md +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9/src/unitysvc_data.egg-info}/PKG-INFO +1 -1
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/SOURCES.txt +4 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/LICENSE +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/setup.cfg +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/__init__.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_registry.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_version.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/cli.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/api/connectivity/connectivity-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-anthropic/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-anthropic/code-example-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-javascript/code-example-embed-image-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-requests/code-example-embed-image-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-shell/code-example-embed-image-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-javascript/code-example-embed-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-requests/code-example-embed-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-shell/code-example-embed-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-fc-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-fc-requests/code-example-fc-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-javascript/code-example-guard-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-requests/code-example-guard-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-shell/code-example-guard-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-javascript/code-example-image-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-requests/code-example-image-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-shell/code-example-image-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-javascript/code-example-imagetoimage-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-requests/code-example-imagetoimage-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-shell/code-example-imagetoimage-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-javascript/code-example-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai/code-example-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai-javascript/code-example-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-requests/code-example-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-javascript/code-example-rerank-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-requests/code-example-rerank-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-shell/code-example-rerank-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-javascript/code-example-sentencetransformers-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-requests/code-example-sentencetransformers-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-shell/code-example-sentencetransformers-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-shell/code-example-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai/code-example-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai-javascript/code-example-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-javascript/code-example-transcription-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-requests/code-example-transcription-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-shell/code-example-transcription-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-javascript/code-example-tts-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-requests/code-example-tts-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-shell/code-example-tts-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-javascript/code-example-ttv-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-requests/code-example-ttv-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-shell/code-example-ttv-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-javascript/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-javascript/code-example-vision-v1.js.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-requests/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-requests/code-example-vision-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-shell/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-shell/code-example-vision-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/description/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/description/description-v1.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/request-template/request-template-v1.json +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/notification/description/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/notification/description/description-v1.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/recommender/description/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/recommender/description/description-v1.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/code-example/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/code-example/code-example-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/connectivity/connectivity-v1.py.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/description/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/description/description-v1.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/connectivity-v1.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/connectivity-v2.sh.j2 +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/uptime/description/README.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/uptime/description/description-v1.md +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/presets.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/py.typed +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/dependency_links.txt +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/entry_points.txt +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/requires.txt +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/top_level.txt +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_build.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_cli.py +0 -0
- {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_presets.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unitysvc-data"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.9"
|
|
8
8
|
description = "Standard examples and presets for UnitySVC data packages"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Bo Peng", email = "bo.peng@unitysvc.com" }]
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"aliases": {
|
|
3
|
+
"api_code_example_requests": "api_code_example_requests_v1",
|
|
4
|
+
"api_code_example_shell": "api_code_example_shell_v1",
|
|
3
5
|
"api_connectivity": "api_connectivity_v1",
|
|
4
6
|
"llm_code_example_anthropic": "llm_code_example_anthropic_v1",
|
|
5
7
|
"llm_code_example_embed_image_javascript": "llm_code_example_embed_image_javascript_v1",
|
|
@@ -54,12 +56,43 @@
|
|
|
54
56
|
"uptime_description": "uptime_description_v1"
|
|
55
57
|
},
|
|
56
58
|
"presets": {
|
|
59
|
+
"api_code_example_requests_v1": {
|
|
60
|
+
"category": "code_example",
|
|
61
|
+
"description": "Python example: GET an HTTP endpoint via the requests library and assert a 2xx response",
|
|
62
|
+
"example_file": "api/code-example-requests/code-example-v1.py.j2",
|
|
63
|
+
"is_active": true,
|
|
64
|
+
"is_public": true,
|
|
65
|
+
"meta": {
|
|
66
|
+
"output_contains": "ok",
|
|
67
|
+
"requirements": [
|
|
68
|
+
"requests"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"mime_type": "python",
|
|
72
|
+
"preset_name": "api_code_example_requests",
|
|
73
|
+
"source_readme": "api/code-example-requests/README.md",
|
|
74
|
+
"version": 1
|
|
75
|
+
},
|
|
76
|
+
"api_code_example_shell_v1": {
|
|
77
|
+
"category": "code_example",
|
|
78
|
+
"description": "curl example: GET an HTTP endpoint and assert a 2xx response",
|
|
79
|
+
"example_file": "api/code-example-shell/code-example-v1.sh.j2",
|
|
80
|
+
"is_active": true,
|
|
81
|
+
"is_public": true,
|
|
82
|
+
"meta": {
|
|
83
|
+
"output_contains": "ok"
|
|
84
|
+
},
|
|
85
|
+
"mime_type": "bash",
|
|
86
|
+
"preset_name": "api_code_example_shell",
|
|
87
|
+
"source_readme": "api/code-example-shell/README.md",
|
|
88
|
+
"version": 1
|
|
89
|
+
},
|
|
57
90
|
"api_connectivity_v1": {
|
|
58
91
|
"category": "connectivity_test",
|
|
59
92
|
"description": "Verify HTTP endpoint is reachable and returns a healthy status",
|
|
60
93
|
"example_file": "api/connectivity/connectivity-v1.sh.j2",
|
|
61
94
|
"is_active": true,
|
|
62
|
-
"is_public":
|
|
95
|
+
"is_public": true,
|
|
63
96
|
"meta": {
|
|
64
97
|
"output_contains": "connectivity ok"
|
|
65
98
|
},
|
|
@@ -661,7 +694,7 @@
|
|
|
661
694
|
"description": "Minimal OpenAI-compatible chat completion request body",
|
|
662
695
|
"example_file": "llm/request-template/request-template-v1.json",
|
|
663
696
|
"is_active": true,
|
|
664
|
-
"is_public":
|
|
697
|
+
"is_public": true,
|
|
665
698
|
"meta": {},
|
|
666
699
|
"mime_type": "json",
|
|
667
700
|
"preset_name": "llm_request_template",
|
|
@@ -714,7 +747,7 @@
|
|
|
714
747
|
"description": "Verify S3 endpoint accepts the configured credentials",
|
|
715
748
|
"example_file": "s3/connectivity/connectivity-v1.py.j2",
|
|
716
749
|
"is_active": true,
|
|
717
|
-
"is_public":
|
|
750
|
+
"is_public": true,
|
|
718
751
|
"meta": {
|
|
719
752
|
"output_contains": "connectivity ok",
|
|
720
753
|
"requirements": [
|
|
@@ -743,7 +776,7 @@
|
|
|
743
776
|
"description": "Verify SMTP server returns a 220 greeting on connect",
|
|
744
777
|
"example_file": "smtp/connectivity/connectivity-v1.sh.j2",
|
|
745
778
|
"is_active": true,
|
|
746
|
-
"is_public":
|
|
779
|
+
"is_public": true,
|
|
747
780
|
"meta": {
|
|
748
781
|
"output_contains": "connectivity ok"
|
|
749
782
|
},
|
|
@@ -757,7 +790,7 @@
|
|
|
757
790
|
"description": "Verify SMTP server returns a 220 greeting on connect",
|
|
758
791
|
"example_file": "smtp/connectivity/connectivity-v2.sh.j2",
|
|
759
792
|
"is_active": true,
|
|
760
|
-
"is_public":
|
|
793
|
+
"is_public": true,
|
|
761
794
|
"meta": {
|
|
762
795
|
"output_contains": "connectivity ok"
|
|
763
796
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
+++
|
|
2
|
+
preset_name = "api_code_example_requests"
|
|
3
|
+
category = "code_example"
|
|
4
|
+
mime_type = "python"
|
|
5
|
+
file = "code-example.py.j2"
|
|
6
|
+
description = "Python example: GET an HTTP endpoint via the requests library and assert a 2xx response"
|
|
7
|
+
is_active = true
|
|
8
|
+
is_public = true
|
|
9
|
+
meta = { requirements = ["requests"], output_contains = "ok" }
|
|
10
|
+
+++
|
|
11
|
+
|
|
12
|
+
# api / code-example-requests — generic HTTP smoke test via `requests`
|
|
13
|
+
|
|
14
|
+
Customer-facing Python example for any HTTP-based service that's
|
|
15
|
+
fronted by a UnitySVC gateway (HTTP relays, S3-compatible proxies,
|
|
16
|
+
echo services, simple forward services). Sends a `GET` to
|
|
17
|
+
`{{ service_base_url }}` using the `requests` library and asserts
|
|
18
|
+
the response is 2xx.
|
|
19
|
+
|
|
20
|
+
Companion to `api_connectivity` (curl smoke test, internal) — same
|
|
21
|
+
endpoint check, different audience: this one is the doc you'd hand
|
|
22
|
+
a customer who wants to wire the service into their own Python code.
|
|
23
|
+
|
|
24
|
+
## Template variables (filled in by the platform when rendering for a given access interface)
|
|
25
|
+
|
|
26
|
+
- `{{ service_base_url }}` — endpoint base URL, taken from the listing's access interface.
|
|
27
|
+
|
|
28
|
+
## Environment variables (read at runtime)
|
|
29
|
+
|
|
30
|
+
- `UNITYSVC_API_KEY` — optional. Sent as `Authorization: Bearer …` when set.
|
|
31
|
+
|
|
32
|
+
## Versions
|
|
33
|
+
|
|
34
|
+
### v1 — initial release
|
|
35
|
+
|
|
36
|
+
- `GET {{ service_base_url }}` with optional bearer auth, 5-second timeout.
|
|
37
|
+
- `raise_for_status()` raises on any non-2xx response (exit code ≠ 0).
|
|
38
|
+
- Prints `ok` on success — paired with the `output_contains = "ok"` meta
|
|
39
|
+
so the platform's run-tests flow can confirm a real endpoint hit.
|
unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-requests/code-example-v1.py.j2
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Generic HTTP smoke test for any UnitySVC HTTP-fronted service.
|
|
2
|
+
|
|
3
|
+
Sends a GET to the rendered base URL and raises on a non-2xx response.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
|
|
8
|
+
import requests
|
|
9
|
+
|
|
10
|
+
headers = {}
|
|
11
|
+
if api_key := os.environ.get("UNITYSVC_API_KEY"):
|
|
12
|
+
headers["Authorization"] = f"Bearer {api_key}"
|
|
13
|
+
|
|
14
|
+
requests.get("{{ service_base_url }}", headers=headers, timeout=5).raise_for_status()
|
|
15
|
+
print("ok")
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
+++
|
|
2
|
+
preset_name = "api_code_example_shell"
|
|
3
|
+
category = "code_example"
|
|
4
|
+
mime_type = "bash"
|
|
5
|
+
file = "code-example.sh.j2"
|
|
6
|
+
description = "curl example: GET an HTTP endpoint and assert a 2xx response"
|
|
7
|
+
is_active = true
|
|
8
|
+
is_public = true
|
|
9
|
+
meta = { output_contains = "ok" }
|
|
10
|
+
+++
|
|
11
|
+
|
|
12
|
+
# api / code-example-shell — generic HTTP smoke test via `curl`
|
|
13
|
+
|
|
14
|
+
Customer-facing shell example for any HTTP-based service fronted by
|
|
15
|
+
a UnitySVC gateway. `curl`s `{{ service_base_url }}` and asserts a
|
|
16
|
+
2xx status.
|
|
17
|
+
|
|
18
|
+
Companion to `api_connectivity` (which has broader pass criteria —
|
|
19
|
+
2xx/3xx/401/403 — and is intended for internal connectivity testing).
|
|
20
|
+
This preset is stricter (2xx only) and is the doc you'd show a
|
|
21
|
+
customer wiring the service into a shell script.
|
|
22
|
+
|
|
23
|
+
## Template variables (filled in by the platform when rendering for a given access interface)
|
|
24
|
+
|
|
25
|
+
- `{{ service_base_url }}` — endpoint base URL, taken from the listing's access interface.
|
|
26
|
+
|
|
27
|
+
## Environment variables (read at runtime)
|
|
28
|
+
|
|
29
|
+
- `UNITYSVC_API_KEY` — optional. Sent as `Authorization: Bearer …` when set.
|
|
30
|
+
|
|
31
|
+
## Versions
|
|
32
|
+
|
|
33
|
+
### v1 — initial release
|
|
34
|
+
|
|
35
|
+
- `curl -fsS {{ service_base_url }}` with optional bearer auth, 5-second timeout.
|
|
36
|
+
- `-f` makes curl exit non-zero on any non-2xx response.
|
|
37
|
+
- Prints `ok` on success — paired with the `output_contains = "ok"` meta
|
|
38
|
+
so the platform's run-tests flow can confirm a real endpoint hit.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Generic HTTP smoke test for any UnitySVC HTTP-fronted service.
|
|
3
|
+
# `-f` makes curl exit non-zero on any non-2xx response.
|
|
4
|
+
set -e
|
|
5
|
+
|
|
6
|
+
if [ -n "${UNITYSVC_API_KEY:-}" ]; then
|
|
7
|
+
curl -fsS --max-time 5 -H "Authorization: Bearer ${UNITYSVC_API_KEY}" -o /dev/null "{{ service_base_url }}"
|
|
8
|
+
else
|
|
9
|
+
curl -fsS --max-time 5 -o /dev/null "{{ service_base_url }}"
|
|
10
|
+
fi
|
|
11
|
+
echo "ok"
|
|
@@ -14,6 +14,10 @@ src/unitysvc_data.egg-info/dependency_links.txt
|
|
|
14
14
|
src/unitysvc_data.egg-info/entry_points.txt
|
|
15
15
|
src/unitysvc_data.egg-info/requires.txt
|
|
16
16
|
src/unitysvc_data.egg-info/top_level.txt
|
|
17
|
+
src/unitysvc_data/examples/api/code-example-requests/README.md
|
|
18
|
+
src/unitysvc_data/examples/api/code-example-requests/code-example-v1.py.j2
|
|
19
|
+
src/unitysvc_data/examples/api/code-example-shell/README.md
|
|
20
|
+
src/unitysvc_data/examples/api/code-example-shell/code-example-v1.sh.j2
|
|
17
21
|
src/unitysvc_data/examples/api/connectivity/README.md
|
|
18
22
|
src/unitysvc_data/examples/api/connectivity/connectivity-v1.sh.j2
|
|
19
23
|
src/unitysvc_data/examples/llm/code-example-anthropic/README.md
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/description/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/code-example/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/description/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/uptime/description/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|