Commit Graph
11 Commits
Author SHA1 Message Date
Shaun Kruger 9a02298361 Cleanup 2026-11-22 14:50:09 -07:00
Shaun Kruger d29b0f3162 Add pyproject file 2026-11-22 14:27:32 -07:00
Shaun Kruger d26edbb872 Fix s3 and add new DB fields 2026-10-26 18:01:36 -06:00
Shaun Kruger f6374366fe Add userinfo endpoint and asset backup script. 2026-10-25 22:10:55 -06:00
Shaun Kruger ac43fdeaea Update readme 2026-10-25 18:58:17 -06:00
Shaun KrugerandCopilot 323746c992 Fix create_api_key parameter to accept user_id instead of user_name
The function signature was inadvertently changed to accept a username string
instead of user_id integer, breaking all tests. Reverted to correct implementation.

All 10 integration tests now pass successfully.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-25 18:53:31 -06:00
Shaun KrugerandCopilot 98ae027c6e Add comprehensive ps-serve command guide
Includes:
- Installation instructions for testing in a virtualenv
- Detailed reference for all ps-serve commands (init, create-user, create-key, serve)
- Complete workflow examples
- Troubleshooting guide
- Development tips and security best practices
- Quick reference cheat sheet

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-25 18:50:12 -06:00
Shaun KrugerandCopilot 8f1748390f Add FastAPI web service for video transcoding management
Implements a complete video transcoding web service with:
- FastAPI framework for REST API
- SQLAlchemy ORM with SQLite database
- API key authentication using SHA256 hashing
- Per-user resource isolation for all assets and jobs
- S3-compatible file upload/download/delete/list interface
- YAML-based API for transcode job requests
- Transcode profile management (stored and inline)
- Database models for Users, APIKeys, Assets, Jobs, and Profiles
- CLI entry point for database initialization and server startup
- Comprehensive integration tests with 100% pass rate
- Deployment documentation with examples

New files:
- privatestudio/web/: Web service package
- privatestudio/web/models.py: SQLAlchemy ORM models
- privatestudio/web/auth.py: API key authentication
- privatestudio/web/database.py: Database configuration
- privatestudio/web/app.py: FastAPI application
- privatestudio/web/s3_interface.py: File storage backend
- privatestudio/web/cli.py: CLI commands
- privatestudio/web/routes/: API endpoint handlers
- tests/test_web.py: Integration tests
- DEPLOYMENT.md: Deployment guide

Updated files:
- pyproject.toml: Added dependencies and CLI entry point

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-25 18:39:45 -06:00
Shaun Kruger 72b4fcc107 Add pyproject.toml and make transcode.py a command 2026-10-25 18:12:07 -06:00
Shaun Kruger f637e34ea1 CPU transcoding works, quicksync needs help 2026-09-21 22:46:10 -06:00
Shaun Kruger 77a5a64a56 Initial checkin 2026-09-19 23:20:14 -06:00