sparki-cli 1.0.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.
@@ -0,0 +1,37 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: astral-sh/setup-uv@v5
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.13"
22
+
23
+ - name: Verify version matches tag
24
+ run: |
25
+ PKG_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
26
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
27
+ if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
28
+ echo "::error::Version mismatch: pyproject.toml=$PKG_VERSION tag=$TAG_VERSION"
29
+ exit 1
30
+ fi
31
+ echo "Version $PKG_VERSION matches tag $TAG_VERSION"
32
+
33
+ - name: Build package
34
+ run: uv build
35
+
36
+ - name: Publish to PyPI
37
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,28 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11", "3.12", "3.13"]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: astral-sh/setup-uv@v5
19
+
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install dependencies
25
+ run: uv sync
26
+
27
+ - name: Run tests
28
+ run: uv run pytest tests/ -v
@@ -0,0 +1,28 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+
8
+ # Virtual environments
9
+ .venv/
10
+
11
+ # Testing
12
+ .pytest_cache/
13
+ .coverage
14
+ htmlcov/
15
+
16
+ # OS
17
+ .DS_Store
18
+
19
+ # IDE
20
+ .idea/
21
+ .vscode/
22
+ *.swp
23
+
24
+ # Archives
25
+ *.zip
26
+
27
+ # Project-specific
28
+ .worktrees/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sparki AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.4
2
+ Name: sparki-cli
3
+ Version: 1.0.0
4
+ Summary: Sparki video editor CLI
5
+ Author: Sparki AI
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Environment :: Console
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Python: >=3.11
14
+ Requires-Dist: httpx>=0.27.0
15
+ Requires-Dist: pydantic>=2.0.0
16
+ Requires-Dist: typer>=0.9.0
17
+ Description-Content-Type: text/markdown
18
+
19
+ # Sparki
20
+
21
+ AI-powered video editing from the command line.
22
+
23
+ ## Installation
24
+
25
+ ```
26
+ pip install sparki-cli
27
+ ```
28
+
29
+ Or with [uv](https://docs.astral.sh/uv/):
30
+
31
+ ```
32
+ uv tool install sparki-cli
33
+ ```
34
+
35
+ ## Quick Start
36
+
37
+ ```bash
38
+ # Save your API key
39
+ sparki setup --api-key YOUR_KEY
40
+
41
+ # Upload, edit, and download in one step
42
+ sparki run --file video.mp4 --mode style-guided --style vlog/daily
43
+
44
+ # Or step by step
45
+ sparki upload --file video.mp4
46
+ sparki edit --object-key KEY --mode prompt-driven --prompt "Make a highlight reel"
47
+ sparki status --task-id TASK_ID
48
+ sparki download --task-id TASK_ID
49
+ ```
50
+
51
+ ## Commands
52
+
53
+ | Command | Description |
54
+ |---------|-------------|
55
+ | `setup` | Save and validate your API key |
56
+ | `upload` | Upload video files |
57
+ | `assets` | List uploaded assets |
58
+ | `edit` | Create an edit project |
59
+ | `status` | Check project status |
60
+ | `download` | Download completed result |
61
+ | `run` | End-to-end: upload → edit → download |
62
+ | `history` | List recent projects |
63
+
64
+ ## Edit Modes
65
+
66
+ - **style-guided** — Choose from preset styles (e.g. `vlog/daily`, `montage/highlight-reel`)
67
+ - **prompt-driven** — Describe what you want in natural language
68
+ - **style-clone** — Clone the style of a reference video
69
+
70
+ ## Links
71
+
72
+ - Website: https://sparki.io
73
+ - Telegram: https://t.me/Sparki_AI_bot
@@ -0,0 +1,55 @@
1
+ # Sparki
2
+
3
+ AI-powered video editing from the command line.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ pip install sparki-cli
9
+ ```
10
+
11
+ Or with [uv](https://docs.astral.sh/uv/):
12
+
13
+ ```
14
+ uv tool install sparki-cli
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # Save your API key
21
+ sparki setup --api-key YOUR_KEY
22
+
23
+ # Upload, edit, and download in one step
24
+ sparki run --file video.mp4 --mode style-guided --style vlog/daily
25
+
26
+ # Or step by step
27
+ sparki upload --file video.mp4
28
+ sparki edit --object-key KEY --mode prompt-driven --prompt "Make a highlight reel"
29
+ sparki status --task-id TASK_ID
30
+ sparki download --task-id TASK_ID
31
+ ```
32
+
33
+ ## Commands
34
+
35
+ | Command | Description |
36
+ |---------|-------------|
37
+ | `setup` | Save and validate your API key |
38
+ | `upload` | Upload video files |
39
+ | `assets` | List uploaded assets |
40
+ | `edit` | Create an edit project |
41
+ | `status` | Check project status |
42
+ | `download` | Download completed result |
43
+ | `run` | End-to-end: upload → edit → download |
44
+ | `history` | List recent projects |
45
+
46
+ ## Edit Modes
47
+
48
+ - **style-guided** — Choose from preset styles (e.g. `vlog/daily`, `montage/highlight-reel`)
49
+ - **prompt-driven** — Describe what you want in natural language
50
+ - **style-clone** — Clone the style of a reference video
51
+
52
+ ## Links
53
+
54
+ - Website: https://sparki.io
55
+ - Telegram: https://t.me/Sparki_AI_bot