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.
Files changed (130) hide show
  1. {unitysvc_data-0.1.8/src/unitysvc_data.egg-info → unitysvc_data-0.1.9}/PKG-INFO +1 -1
  2. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/pyproject.toml +1 -1
  3. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_manifest.json +38 -5
  4. unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-requests/README.md +39 -0
  5. unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-requests/code-example-v1.py.j2 +15 -0
  6. unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-shell/README.md +38 -0
  7. unitysvc_data-0.1.9/src/unitysvc_data/examples/api/code-example-shell/code-example-v1.sh.j2 +11 -0
  8. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/api/connectivity/README.md +1 -1
  9. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/request-template/README.md +1 -1
  10. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/connectivity/README.md +1 -1
  11. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/README.md +1 -1
  12. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9/src/unitysvc_data.egg-info}/PKG-INFO +1 -1
  13. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/SOURCES.txt +4 -0
  14. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/LICENSE +0 -0
  15. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/README.md +0 -0
  16. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/setup.cfg +0 -0
  17. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/__init__.py +0 -0
  18. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_registry.py +0 -0
  19. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/_version.py +0 -0
  20. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/cli.py +0 -0
  21. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/api/connectivity/connectivity-v1.sh.j2 +0 -0
  22. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-anthropic/README.md +0 -0
  23. {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
  24. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-javascript/README.md +0 -0
  25. {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
  26. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-requests/README.md +0 -0
  27. {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
  28. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-image-shell/README.md +0 -0
  29. {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
  30. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-javascript/README.md +0 -0
  31. {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
  32. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-requests/README.md +0 -0
  33. {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
  34. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-embed-shell/README.md +0 -0
  35. {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
  36. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-fc-requests/README.md +0 -0
  37. {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
  38. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-javascript/README.md +0 -0
  39. {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
  40. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-requests/README.md +0 -0
  41. {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
  42. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-guard-shell/README.md +0 -0
  43. {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
  44. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-javascript/README.md +0 -0
  45. {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
  46. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-requests/README.md +0 -0
  47. {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
  48. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-image-shell/README.md +0 -0
  49. {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
  50. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-javascript/README.md +0 -0
  51. {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
  52. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-requests/README.md +0 -0
  53. {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
  54. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-imagetoimage-shell/README.md +0 -0
  55. {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
  56. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-javascript/README.md +0 -0
  57. {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
  58. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai/README.md +0 -0
  59. {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
  60. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-openai-javascript/README.md +0 -0
  61. {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
  62. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-requests/README.md +0 -0
  63. {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
  64. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-javascript/README.md +0 -0
  65. {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
  66. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-requests/README.md +0 -0
  67. {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
  68. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-rerank-shell/README.md +0 -0
  69. {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
  70. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-javascript/README.md +0 -0
  71. {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
  72. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-requests/README.md +0 -0
  73. {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
  74. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-sentencetransformers-shell/README.md +0 -0
  75. {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
  76. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-shell/README.md +0 -0
  77. {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
  78. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai/README.md +0 -0
  79. {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
  80. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-streaming-openai-javascript/README.md +0 -0
  81. {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
  82. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-javascript/README.md +0 -0
  83. {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
  84. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-requests/README.md +0 -0
  85. {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
  86. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-transcription-shell/README.md +0 -0
  87. {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
  88. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-javascript/README.md +0 -0
  89. {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
  90. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-requests/README.md +0 -0
  91. {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
  92. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-tts-shell/README.md +0 -0
  93. {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
  94. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-javascript/README.md +0 -0
  95. {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
  96. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-requests/README.md +0 -0
  97. {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
  98. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-ttv-shell/README.md +0 -0
  99. {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
  100. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-javascript/README.md +0 -0
  101. {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
  102. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-requests/README.md +0 -0
  103. {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
  104. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/code-example-vision-shell/README.md +0 -0
  105. {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
  106. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/description/README.md +0 -0
  107. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/description/description-v1.md +0 -0
  108. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/llm/request-template/request-template-v1.json +0 -0
  109. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/notification/description/README.md +0 -0
  110. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/notification/description/description-v1.md +0 -0
  111. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/recommender/description/README.md +0 -0
  112. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/recommender/description/description-v1.md +0 -0
  113. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/code-example/README.md +0 -0
  114. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/code-example/code-example-v1.py.j2 +0 -0
  115. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/connectivity/connectivity-v1.py.j2 +0 -0
  116. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/description/README.md +0 -0
  117. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/s3/description/description-v1.md +0 -0
  118. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/connectivity-v1.sh.j2 +0 -0
  119. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/smtp/connectivity/connectivity-v2.sh.j2 +0 -0
  120. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/uptime/description/README.md +0 -0
  121. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/examples/uptime/description/description-v1.md +0 -0
  122. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/presets.py +0 -0
  123. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data/py.typed +0 -0
  124. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/dependency_links.txt +0 -0
  125. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/entry_points.txt +0 -0
  126. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/requires.txt +0 -0
  127. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/src/unitysvc_data.egg-info/top_level.txt +0 -0
  128. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_build.py +0 -0
  129. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_cli.py +0 -0
  130. {unitysvc_data-0.1.8 → unitysvc_data-0.1.9}/tests/test_presets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-data
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Standard examples and presets for UnitySVC data packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "unitysvc-data"
7
- version = "0.1.8"
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": false,
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": false,
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": false,
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": false,
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": false,
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.
@@ -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"
@@ -5,7 +5,7 @@ mime_type = "bash"
5
5
  file = "connectivity.sh.j2"
6
6
  description = "Verify HTTP endpoint is reachable and returns a healthy status"
7
7
  is_active = true
8
- is_public = false
8
+ is_public = true
9
9
  meta = { output_contains = "connectivity ok" }
10
10
  +++
11
11
 
@@ -5,7 +5,7 @@ mime_type = "json"
5
5
  file = "request-template.json"
6
6
  description = "Minimal OpenAI-compatible chat completion request body"
7
7
  is_active = true
8
- is_public = false
8
+ is_public = true
9
9
  +++
10
10
 
11
11
  # llm / request-template — minimal chat completion payload
@@ -5,7 +5,7 @@ mime_type = "python"
5
5
  file = "connectivity.py.j2"
6
6
  description = "Verify S3 endpoint accepts the configured credentials"
7
7
  is_active = true
8
- is_public = false
8
+ is_public = true
9
9
  meta = { output_contains = "connectivity ok", requirements = ["boto3"] }
10
10
  +++
11
11
 
@@ -5,7 +5,7 @@ mime_type = "bash"
5
5
  file = "connectivity.sh.j2"
6
6
  description = "Verify SMTP server returns a 220 greeting on connect"
7
7
  is_active = true
8
- is_public = false
8
+ is_public = true
9
9
  meta = { output_contains = "connectivity ok" }
10
10
  +++
11
11
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-data
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Standard examples and presets for UnitySVC data packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -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