{"id":30112365,"url":"https://github.com/dwidevelopes/content-video","last_synced_at":"2026-02-22T16:09:04.038Z","repository":{"id":293077223,"uuid":"982874848","full_name":"DwiDevelopes/Content-Video","owner":"DwiDevelopes","description":"Content Education","archived":false,"fork":false,"pushed_at":"2025-05-13T14:34:16.000Z","size":421,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T04:50:08.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/DwiDevelopes.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,"zenodo":null}},"created_at":"2025-05-13T14:32:07.000Z","updated_at":"2025-05-13T18:01:58.000Z","dependencies_parsed_at":"2025-05-13T16:03:52.019Z","dependency_job_id":null,"html_url":"https://github.com/DwiDevelopes/Content-Video","commit_stats":null,"previous_names":["dwidevelopes/content-video"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DwiDevelopes/Content-Video","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DwiDevelopes%2FContent-Video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DwiDevelopes%2FContent-Video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DwiDevelopes%2FContent-Video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DwiDevelopes%2FContent-Video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DwiDevelopes","download_url":"https://codeload.github.com/DwiDevelopes/Content-Video/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DwiDevelopes%2FContent-Video/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29717945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-08-10T06:16:14.673Z","updated_at":"2026-02-22T16:09:04.001Z","avatar_url":"https://github.com/DwiDevelopes.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Key di Python: Penjelasan \u0026 Tata Cara Penggunaan\n\nAPI key adalah kode unik yang digunakan untuk mengautentikasi permintaan ke layanan API. Di Python, API key biasanya digunakan saat mengakses layanan eksternal seperti Google Maps, OpenWeather, atau layanan pihak ketiga lainnya.\n\n## Cara Menggunakan API Key di Python\n\n1. **Dapatkan API Key**\n    - Daftar ke layanan yang ingin digunakan.\n    - Ikuti instruksi untuk mendapatkan API key.\n\n2. **Simpan API Key dengan Aman**\n    - Jangan hardcode API key di dalam kode.\n    - Gunakan file `.env` atau variabel lingkungan untuk menyimpan API key.\n\n3. **Contoh Implementasi**\n\n```python\nimport os\nimport requests\nfrom dotenv import load_dotenv\n\nload_dotenv()  # Memuat variabel dari file .env\n\nAPI_KEY = os.getenv(\"API_KEY\")\nurl = f\"https://api.example.com/data?api_key={API_KEY}\"\n\nresponse = requests.get(url)\ndata = response.json()\nprint(data)\n```\n\n4. **Tips Keamanan**\n    - Jangan membagikan API key secara publik.\n    - Gunakan file `.gitignore` untuk mengecualikan file yang berisi API key dari version control.\n\n## UI Profesional untuk Input API Key\n\nJika Anda membuat aplikasi dengan antarmuka pengguna (UI), sediakan form input khusus untuk API key, misalnya:\n\n```python\nimport tkinter as tk\n\ndef submit_key():\n     api_key = entry.get()\n     # Simpan atau gunakan API key sesuai kebutuhan\n\nroot = tk.Tk()\nroot.title(\"Masukkan API Key\")\n\nlabel = tk.Label(root, text=\"API Key:\")\nlabel.pack(padx=10, pady=5)\n\nentry = tk.Entry(root, width=40, show=\"*\")\nentry.pack(padx=10, pady=5)\n\nbutton = tk.Button(root, text=\"Submit\", command=submit_key)\nbutton.pack(padx=10, pady=10)\n\nroot.mainloop()\n```\n\nDengan cara ini, pengguna dapat memasukkan API key secara aman dan profesional.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwidevelopes%2Fcontent-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwidevelopes%2Fcontent-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwidevelopes%2Fcontent-video/lists"}