kodwen-sdk 0.114.1__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 (114) hide show
  1. kodwen_sdk-0.114.1/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
  2. kodwen_sdk-0.114.1/.github/ISSUE_TEMPLATE/feature_request.yml +17 -0
  3. kodwen_sdk-0.114.1/.github/dependabot.yml +11 -0
  4. kodwen_sdk-0.114.1/.github/pull_request_template.md +10 -0
  5. kodwen_sdk-0.114.1/.github/workflows/publish.yml +42 -0
  6. kodwen_sdk-0.114.1/.gitignore +8 -0
  7. kodwen_sdk-0.114.1/CHANGELOG.md +1281 -0
  8. kodwen_sdk-0.114.1/CODE_OF_CONDUCT.md +31 -0
  9. kodwen_sdk-0.114.1/CONTRIBUTING.md +30 -0
  10. kodwen_sdk-0.114.1/LICENSE +21 -0
  11. kodwen_sdk-0.114.1/PKG-INFO +295 -0
  12. kodwen_sdk-0.114.1/README.md +271 -0
  13. kodwen_sdk-0.114.1/SECURITY.md +14 -0
  14. kodwen_sdk-0.114.1/examples/agent.py +16 -0
  15. kodwen_sdk-0.114.1/examples/chat.py +14 -0
  16. kodwen_sdk-0.114.1/examples/feedback.py +15 -0
  17. kodwen_sdk-0.114.1/examples/streaming.py +15 -0
  18. kodwen_sdk-0.114.1/pyproject.toml +40 -0
  19. kodwen_sdk-0.114.1/scripts/gen-types.py +349 -0
  20. kodwen_sdk-0.114.1/scripts/smoke_local.py +141 -0
  21. kodwen_sdk-0.114.1/src/codai/__init__.py +515 -0
  22. kodwen_sdk-0.114.1/src/codai/_http.py +395 -0
  23. kodwen_sdk-0.114.1/src/codai/_operations.py +600 -0
  24. kodwen_sdk-0.114.1/src/codai/_resolve_types.py +295 -0
  25. kodwen_sdk-0.114.1/src/codai/_types.py +14830 -0
  26. kodwen_sdk-0.114.1/src/codai/resources/__init__.py +236 -0
  27. kodwen_sdk-0.114.1/src/codai/resources/_base.py +32 -0
  28. kodwen_sdk-0.114.1/src/codai/resources/abuse_reports.py +44 -0
  29. kodwen_sdk-0.114.1/src/codai/resources/agents.py +73 -0
  30. kodwen_sdk-0.114.1/src/codai/resources/anon.py +95 -0
  31. kodwen_sdk-0.114.1/src/codai/resources/batches.py +161 -0
  32. kodwen_sdk-0.114.1/src/codai/resources/billing.py +94 -0
  33. kodwen_sdk-0.114.1/src/codai/resources/brand_kits.py +125 -0
  34. kodwen_sdk-0.114.1/src/codai/resources/cards.py +249 -0
  35. kodwen_sdk-0.114.1/src/codai/resources/chat.py +165 -0
  36. kodwen_sdk-0.114.1/src/codai/resources/core.py +1160 -0
  37. kodwen_sdk-0.114.1/src/codai/resources/creatives.py +994 -0
  38. kodwen_sdk-0.114.1/src/codai/resources/edit_styles.py +129 -0
  39. kodwen_sdk-0.114.1/src/codai/resources/environments.py +251 -0
  40. kodwen_sdk-0.114.1/src/codai/resources/exports.py +48 -0
  41. kodwen_sdk-0.114.1/src/codai/resources/feed.py +260 -0
  42. kodwen_sdk-0.114.1/src/codai/resources/lists.py +97 -0
  43. kodwen_sdk-0.114.1/src/codai/resources/lyrics.py +112 -0
  44. kodwen_sdk-0.114.1/src/codai/resources/media_ops.py +133 -0
  45. kodwen_sdk-0.114.1/src/codai/resources/memory.py +58 -0
  46. kodwen_sdk-0.114.1/src/codai/resources/messages.py +126 -0
  47. kodwen_sdk-0.114.1/src/codai/resources/music_room.py +223 -0
  48. kodwen_sdk-0.114.1/src/codai/resources/platform.py +347 -0
  49. kodwen_sdk-0.114.1/src/codai/resources/productions.py +502 -0
  50. kodwen_sdk-0.114.1/src/codai/resources/prompts.py +180 -0
  51. kodwen_sdk-0.114.1/src/codai/resources/provenance.py +45 -0
  52. kodwen_sdk-0.114.1/src/codai/resources/publishing.py +88 -0
  53. kodwen_sdk-0.114.1/src/codai/resources/referrals.py +28 -0
  54. kodwen_sdk-0.114.1/src/codai/resources/research.py +107 -0
  55. kodwen_sdk-0.114.1/src/codai/resources/resolve.py +342 -0
  56. kodwen_sdk-0.114.1/src/codai/resources/responses.py +100 -0
  57. kodwen_sdk-0.114.1/src/codai/resources/sandboxes.py +366 -0
  58. kodwen_sdk-0.114.1/src/codai/resources/schedules.py +166 -0
  59. kodwen_sdk-0.114.1/src/codai/resources/sessions.py +179 -0
  60. kodwen_sdk-0.114.1/src/codai/resources/shares.py +141 -0
  61. kodwen_sdk-0.114.1/src/codai/resources/stock.py +68 -0
  62. kodwen_sdk-0.114.1/src/codai/resources/templates.py +46 -0
  63. kodwen_sdk-0.114.1/src/codai/resources/transcripts.py +319 -0
  64. kodwen_sdk-0.114.1/src/codai/resources/triggers.py +115 -0
  65. kodwen_sdk-0.114.1/src/codai/resources/usage_keys.py +39 -0
  66. kodwen_sdk-0.114.1/src/codai/resources/vault.py +723 -0
  67. kodwen_sdk-0.114.1/src/codai/resources/visual_qa.py +169 -0
  68. kodwen_sdk-0.114.1/src/codai/resources/voice_revocations.py +29 -0
  69. kodwen_sdk-0.114.1/src/codai/resources/voices.py +39 -0
  70. kodwen_sdk-0.114.1/tests/conftest.py +149 -0
  71. kodwen_sdk-0.114.1/tests/test_abuse_reports.py +37 -0
  72. kodwen_sdk-0.114.1/tests/test_anon.py +83 -0
  73. kodwen_sdk-0.114.1/tests/test_assets_uploads.py +171 -0
  74. kodwen_sdk-0.114.1/tests/test_batches.py +93 -0
  75. kodwen_sdk-0.114.1/tests/test_billing_referrals.py +147 -0
  76. kodwen_sdk-0.114.1/tests/test_brand_kits.py +178 -0
  77. kodwen_sdk-0.114.1/tests/test_cards.py +129 -0
  78. kodwen_sdk-0.114.1/tests/test_creatives.py +212 -0
  79. kodwen_sdk-0.114.1/tests/test_creatives_cx07.py +146 -0
  80. kodwen_sdk-0.114.1/tests/test_creatives_documents.py +84 -0
  81. kodwen_sdk-0.114.1/tests/test_creatives_e11.py +78 -0
  82. kodwen_sdk-0.114.1/tests/test_creatives_e11b.py +89 -0
  83. kodwen_sdk-0.114.1/tests/test_creatives_sx06.py +84 -0
  84. kodwen_sdk-0.114.1/tests/test_edit_styles.py +177 -0
  85. kodwen_sdk-0.114.1/tests/test_environments_exec.py +55 -0
  86. kodwen_sdk-0.114.1/tests/test_exports.py +123 -0
  87. kodwen_sdk-0.114.1/tests/test_feed.py +202 -0
  88. kodwen_sdk-0.114.1/tests/test_hosts_iphone.py +78 -0
  89. kodwen_sdk-0.114.1/tests/test_http.py +163 -0
  90. kodwen_sdk-0.114.1/tests/test_lists.py +92 -0
  91. kodwen_sdk-0.114.1/tests/test_lyrics.py +72 -0
  92. kodwen_sdk-0.114.1/tests/test_media_ops.py +74 -0
  93. kodwen_sdk-0.114.1/tests/test_memory.py +42 -0
  94. kodwen_sdk-0.114.1/tests/test_music_room.py +149 -0
  95. kodwen_sdk-0.114.1/tests/test_os_gate.py +48 -0
  96. kodwen_sdk-0.114.1/tests/test_parity.py +128 -0
  97. kodwen_sdk-0.114.1/tests/test_productions.py +169 -0
  98. kodwen_sdk-0.114.1/tests/test_prompts.py +67 -0
  99. kodwen_sdk-0.114.1/tests/test_provenance.py +29 -0
  100. kodwen_sdk-0.114.1/tests/test_publishing.py +53 -0
  101. kodwen_sdk-0.114.1/tests/test_research.py +91 -0
  102. kodwen_sdk-0.114.1/tests/test_resolve.py +272 -0
  103. kodwen_sdk-0.114.1/tests/test_resources.py +1221 -0
  104. kodwen_sdk-0.114.1/tests/test_sandboxes.py +220 -0
  105. kodwen_sdk-0.114.1/tests/test_settings.py +71 -0
  106. kodwen_sdk-0.114.1/tests/test_shares_e12a.py +158 -0
  107. kodwen_sdk-0.114.1/tests/test_templates.py +58 -0
  108. kodwen_sdk-0.114.1/tests/test_themes.py +54 -0
  109. kodwen_sdk-0.114.1/tests/test_transcripts.py +174 -0
  110. kodwen_sdk-0.114.1/tests/test_vault.py +491 -0
  111. kodwen_sdk-0.114.1/tests/test_visual_qa.py +56 -0
  112. kodwen_sdk-0.114.1/tests/test_voice_revocations.py +23 -0
  113. kodwen_sdk-0.114.1/tests/test_voices.py +28 -0
  114. kodwen_sdk-0.114.1/uv.lock +294 -0
@@ -0,0 +1,33 @@
1
+ name: Bug report
2
+ description: Report a problem with kodwen-sdk
3
+ labels: [bug]
4
+ body:
5
+ - type: textarea
6
+ id: what
7
+ attributes:
8
+ label: What happened?
9
+ description: A clear description of the bug and what you expected instead.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: repro
14
+ attributes:
15
+ label: Minimal reproduction
16
+ description: Smallest code snippet that reproduces the issue. Do NOT include your API key.
17
+ render: python
18
+ validations:
19
+ required: true
20
+ - type: input
21
+ id: version
22
+ attributes:
23
+ label: SDK version
24
+ placeholder: "0.1.0"
25
+ validations:
26
+ required: true
27
+ - type: input
28
+ id: python
29
+ attributes:
30
+ label: Python version
31
+ placeholder: "3.12.2"
32
+ validations:
33
+ required: true
@@ -0,0 +1,17 @@
1
+ name: Feature request
2
+ description: Suggest an idea for kodwen-sdk
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What are you trying to do that the SDK doesn't support today?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: proposal
14
+ attributes:
15
+ label: Proposed solution
16
+ validations:
17
+ required: false
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ open-pull-requests-limit: 5
8
+ - package-ecosystem: github-actions
9
+ directory: "/"
10
+ schedule:
11
+ interval: weekly
@@ -0,0 +1,10 @@
1
+ ## Summary
2
+
3
+ <!-- What does this change and why? -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] No credentials/secrets included
8
+ - [ ] SDK remains dependency-free (stdlib only)
9
+ - [ ] `python -m build` succeeds
10
+ - [ ] CHANGELOG updated (Unreleased)
@@ -0,0 +1,42 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+ id-token: write # required for PyPI trusted publishing (OIDC)
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ environment: pypi
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Verify tag matches pyproject version
25
+ if: github.event_name == 'push'
26
+ run: |
27
+ PKG_VERSION="$(python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")"
28
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
29
+ if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
30
+ echo "::error::tag $TAG_VERSION != pyproject $PKG_VERSION"
31
+ exit 1
32
+ fi
33
+
34
+ - name: Build
35
+ run: |
36
+ python -m pip install --upgrade build
37
+ python -m build
38
+
39
+ - name: Publish to PyPI
40
+ uses: pypa/gh-action-pypi-publish@release/v1
41
+ # Uses PyPI Trusted Publishing (OIDC) — no API token needed once the
42
+ # trusted publisher is configured on pypi.org for this repo+workflow.
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ dist/
4
+ build/
5
+ *.egg-info/
6
+ .venv/
7
+ .DS_Store
8
+ .pytest_cache/