{"id":18651586,"url":"https://github.com/ankitjarwall/timestamps","last_synced_at":"2026-05-05T06:38:30.235Z","repository":{"id":261177121,"uuid":"883466729","full_name":"Ankitjarwall/TimeStamps","owner":"Ankitjarwall","description":"Media Timestamps API 🎬✨ provides seamless navigation for movies and shows by offering timestamps for intros, outros, trailers, and more! 🎥⏱️ Secure your access with JWT authentication and manage media effortlessly! 🔒🚀","archived":false,"fork":false,"pushed_at":"2024-11-27T14:59:31.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T18:14:39.349Z","etag":null,"topics":["amazonprime","button","episode","hbo","hbomax","netflix","next","skip","timestamp","webseries"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ankitjarwall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T02:30:43.000Z","updated_at":"2024-11-27T15:00:39.000Z","dependencies_parsed_at":"2024-11-05T05:27:26.406Z","dependency_job_id":"dca8e43d-09e1-421d-a50f-23a510737b0c","html_url":"https://github.com/Ankitjarwall/TimeStamps","commit_stats":null,"previous_names":["ankitjarwall/timestamps"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ankitjarwall%2FTimeStamps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ankitjarwall%2FTimeStamps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ankitjarwall%2FTimeStamps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ankitjarwall%2FTimeStamps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ankitjarwall","download_url":"https://codeload.github.com/Ankitjarwall/TimeStamps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708991,"owners_count":19684165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazonprime","button","episode","hbo","hbomax","netflix","next","skip","timestamp","webseries"],"created_at":"2024-11-07T06:50:44.787Z","updated_at":"2025-12-24T23:30:12.941Z","avatar_url":"https://github.com/Ankitjarwall.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎬 Media Management API\n\nWelcome to the **Media Management API**! This FastAPI application allows you to manage media items and their associated timestamps securely. The API supports user authentication and role-based access control, enabling different functionalities for admin and regular users.\n\n## 🚀 Features\n\n- **User Authentication**: Secure login and token-based access.\n- **CRUD Operations**: Create, Read, Update, and Delete media items.\n- **Role-Based Access Control**: Admins can manage media and timestamps.\n- **SQLite Database**: Simple and efficient data storage.\n\n## 📦 Installation\n\nTo get started, clone this repository and install the required packages.\n\n### Step 1: Clone the repository\n\n```bash\ngit clone https://github.com/Ankitjarwall/TimeStamps\ncd media-management-api\n```\n\n### Step 2: Create a virtual environment (optional)\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n```\n\n### Step 3: Install dependencies\n\n```bash\npip install fastapi[all] sqlalchemy passlib python-jose\n```\n\n### Step 4: Run the application\n\n```bash\nuvicorn main:app --reload\n```\n\n## 🛠️ Usage\n\nAfter running the application, you can access the API at `http://127.0.0.1:8000`.\n\n### API Documentation\n\nYou can find the interactive API documentation at `http://127.0.0.1:8000/docs`.\n\n## 🔑 Authentication\n\nTo use the protected endpoints, you'll need to log in to get an access token. Use the `/token` endpoint to authenticate.\n\n### Example Login Request\n\n```bash\nPOST /token\nContent-Type: application/x-www-form-urlencoded\n\nusername=admin\u0026password=adminpassword\n```\n\n### Example Token Response\n\n```json\n{\n    \"access_token\": \"your_access_token\",\n    \"token_type\": \"bearer\"\n}\n```\n\n## 📋 API Endpoints\n\nHere are the main endpoints available in the API:\n\n### Media Endpoints\n\n- **Add Media**\n  - `POST /media/`\n  - Requires admin role.\n  \n- **Get Media by ID**\n  - `GET /media/{media_id}`\n\n- **Delete Media**\n  - `DELETE /media/{media_id}`\n  - Requires admin role.\n\n- **Get All Media**\n  - `GET /media/?limit=10`\n\n## 📄 Models\n\n### Media\n- `media_id`: Unique identifier for the media (string).\n- `title`: Title of the media (string).\n- `timestamps`: List of associated timestamps.\n\n### Timestamp\n- `type`: Type of the timestamp (string).\n- `start_time`: Start time in \"HH:MM:SS\" format.\n- `end_time`: End time in \"HH:MM:SS\" format.\n\n## 📝 Notes\n\n- **Database**: The application uses an SQLite database (`media.db`). Ensure you have write access to the directory.\n- **Security**: Change the `SECRET_KEY` in the code before deploying to production.\n\n## 🛠️ Contributing\n\nContributions are welcome! Please create a pull request for any enhancements or bug fixes.\n\n## 🎉 Happy Coding!\n```\n\n### Notes\n- Replace `yourusername` and `your_email@example.com` with your actual GitHub username and email.\n- Adjust the API documentation and any other details according to your project specifics as needed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitjarwall%2Ftimestamps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitjarwall%2Ftimestamps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitjarwall%2Ftimestamps/lists"}