imperal-sdk 0.1.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.
Files changed (40) hide show
  1. imperal_sdk-0.1.0/.github/workflows/publish.yml +31 -0
  2. imperal_sdk-0.1.0/.gitignore +19 -0
  3. imperal_sdk-0.1.0/LICENSE +669 -0
  4. imperal_sdk-0.1.0/PKG-INFO +31 -0
  5. imperal_sdk-0.1.0/README.md +108 -0
  6. imperal_sdk-0.1.0/examples/hello_extension/main.py +40 -0
  7. imperal_sdk-0.1.0/pyproject.toml +55 -0
  8. imperal_sdk-0.1.0/src/imperal_sdk/__init__.py +15 -0
  9. imperal_sdk-0.1.0/src/imperal_sdk/ai/__init__.py +4 -0
  10. imperal_sdk-0.1.0/src/imperal_sdk/ai/client.py +28 -0
  11. imperal_sdk-0.1.0/src/imperal_sdk/auth/__init__.py +6 -0
  12. imperal_sdk-0.1.0/src/imperal_sdk/auth/client.py +77 -0
  13. imperal_sdk-0.1.0/src/imperal_sdk/auth/middleware.py +36 -0
  14. imperal_sdk-0.1.0/src/imperal_sdk/auth/user.py +25 -0
  15. imperal_sdk-0.1.0/src/imperal_sdk/billing/__init__.py +4 -0
  16. imperal_sdk-0.1.0/src/imperal_sdk/billing/client.py +53 -0
  17. imperal_sdk-0.1.0/src/imperal_sdk/cli/__init__.py +2 -0
  18. imperal_sdk-0.1.0/src/imperal_sdk/cli/main.py +117 -0
  19. imperal_sdk-0.1.0/src/imperal_sdk/context.py +74 -0
  20. imperal_sdk-0.1.0/src/imperal_sdk/db/__init__.py +4 -0
  21. imperal_sdk-0.1.0/src/imperal_sdk/db/client.py +36 -0
  22. imperal_sdk-0.1.0/src/imperal_sdk/extension.py +96 -0
  23. imperal_sdk-0.1.0/src/imperal_sdk/http/__init__.py +4 -0
  24. imperal_sdk-0.1.0/src/imperal_sdk/http/client.py +30 -0
  25. imperal_sdk-0.1.0/src/imperal_sdk/manifest.py +72 -0
  26. imperal_sdk-0.1.0/src/imperal_sdk/notify/__init__.py +4 -0
  27. imperal_sdk-0.1.0/src/imperal_sdk/notify/client.py +15 -0
  28. imperal_sdk-0.1.0/src/imperal_sdk/skeleton/__init__.py +4 -0
  29. imperal_sdk-0.1.0/src/imperal_sdk/skeleton/client.py +25 -0
  30. imperal_sdk-0.1.0/src/imperal_sdk/storage/__init__.py +4 -0
  31. imperal_sdk-0.1.0/src/imperal_sdk/storage/client.py +38 -0
  32. imperal_sdk-0.1.0/src/imperal_sdk/store/__init__.py +4 -0
  33. imperal_sdk-0.1.0/src/imperal_sdk/store/client.py +74 -0
  34. imperal_sdk-0.1.0/tests/conftest.py +3 -0
  35. imperal_sdk-0.1.0/tests/test_auth.py +35 -0
  36. imperal_sdk-0.1.0/tests/test_billing.py +33 -0
  37. imperal_sdk-0.1.0/tests/test_cli.py +31 -0
  38. imperal_sdk-0.1.0/tests/test_context.py +39 -0
  39. imperal_sdk-0.1.0/tests/test_extension.py +79 -0
  40. imperal_sdk-0.1.0/tests/test_manifest.py +75 -0
@@ -0,0 +1,31 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ id-token: write
9
+
10
+ jobs:
11
+ publish:
12
+ name: Build and publish to PyPI
13
+ runs-on: ubuntu-latest
14
+ environment: pypi
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Install build tools
25
+ run: pip install build
26
+
27
+ - name: Build package
28
+ run: python -m build
29
+
30
+ - name: Publish to PyPI
31
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,19 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .eggs/
8
+ *.egg
9
+ .venv/
10
+ venv/
11
+ .env
12
+ .env.local
13
+ *.whl
14
+ .pytest_cache/
15
+ .mypy_cache/
16
+ .ruff_cache/
17
+ htmlcov/
18
+ .coverage
19
+ .DS_Store