![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
YTGrid is a powerful, scalable, and flexible YT automation tool that enables looped playback, remote control, and real-time tracking using a hybrid CLI + API architecture. It integrates FastAPI for REST API control, Selenium for browser automation, and Python multiprocessing for concurrent tasks.
🚀 YTGrid is a powerful, scalable, and flexible YT automation tool that enables looped playback, remote control, and real-time tracking using a hybrid CLI + API architecture.
It integrates FastAPI for REST API control, Selenium for browser automation, and Python multiprocessing for concurrent tasks.
🔹 Hybrid CLI + API – Use both a command-line interface and a FastAPI-powered REST API.
🔹 YT Automation – Automatically search, play, and loop videos using Selenium.
🔹 Session Tracking – Monitor active sessions in real time using WebSockets.
🔹 Parallel Execution – Run multiple YT automation sessions simultaneously.
🔹 Configurable Playback Speed – Adjust video playback speed dynamically.
🔹 WebSocket Real-Time Updates – Get live session updates.
🔹 Optimized Browser Management – Uses headless Chrome for better performance.
🔹 Session Persistence – Track running and completed sessions efficiently.
🔹 Comprehensive Logging – Logs all activity for debugging and monitoring.
YTGrid/
├── ytgrid/ → Core Python package (installable via pip)
│ ├── cli.py → CLI for managing sessions
│ ├── backend/ → FastAPI API for remote control
│ │ ├── main.py → API entry point
│ │ ├── routes.py → API endpoints
│ │ ├── task_manager.py → Manages multiprocessing tasks
│ │ ├── session_store.py → In-memory session tracking
│ ├── automation/ → YT playback automation
│ │ ├── player.py → Automates search & playback
│ │ ├── browser.py → Manages Selenium WebDriver
│ ├── utils/ → Helper functions
│ │ ├── logger.py → Logging system
│ │ ├── config.py → Configuration settings
│
├── examples/ → Example scripts
│ ├── example_cli.py → CLI example usage
│ ├── example_api.py → API example usage
│
├── tests/ → Unit tests
│ ├── test_cli.py → CLI tests
│ ├── test_api.py → API tests
│ ├── test_automation.py → Automation tests
│
├── setup.py → Python package setup script
├── requirements.txt → Dependencies
├── README.md → Documentation
├── .gitignore → Ignore unnecessary files
├── docker-compose.yml → Docker deployment
├── Dockerfile → Docker build file
Step 1: Clone the Repository
git clone https://github.com/sandy-sp/ytgrid.git
cd ytgrid
Step 2: Create a Virtual Environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Step 3: Install YTGrid Locally
pip install -e .
Step 4: Verify Installation
ytgrid --help
✅ If you see CLI options, installation was successful.
ytgrid start --url "https://www.youtube.com/watch?v=OaOK76hiW8I" --speed 1.5 --loops 3
ytgrid status
ytgrid stop --session_id <num>
uvicorn ytgrid.backend.main:app --reload
curl -X POST "http://127.0.0.1:8000/sessions/start" -H "Content-Type: application/json" -d '{
"url": "https://www.youtube.com/watch?v=OaOK76hiW8I",
"speed": 1.5,
"loop_count": 3
}'
curl -X GET "http://127.0.0.1:8000/status"
curl -X POST "http://127.0.0.1:8000/sessions/stop" -H "Content-Type: application/json" -d '{"session_id": 1}'
pytest tests/
pytest tests/test_api.py
✅ If all tests pass, YTGrid is working correctly.
docker-compose up --build
docker-compose down
✅ YTGrid will now run in a containerized environment.
YTGrid is released under the MIT License.
FAQs
YTGrid is a powerful, scalable, and flexible YT automation tool that enables looped playback, remote control, and real-time tracking using a hybrid CLI + API architecture. It integrates FastAPI for REST API control, Selenium for browser automation, and Python multiprocessing for concurrent tasks.
We found that ytgrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.