{"id":19350681,"url":"https://github.com/slevin48/firestore","last_synced_at":"2026-05-06T04:32:09.909Z","repository":{"id":112496152,"uuid":"334514415","full_name":"slevin48/firestore","owner":"slevin48","description":"Firestore called from Streamlit apps","archived":false,"fork":false,"pushed_at":"2021-01-30T23:21:08.000Z","size":892,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T10:25:51.565Z","etag":null,"topics":["database","firestore","gcp","streamlit"],"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/slevin48.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":"2021-01-30T21:23:42.000Z","updated_at":"2022-11-19T18:42:47.000Z","dependencies_parsed_at":"2023-05-15T09:15:34.034Z","dependency_job_id":null,"html_url":"https://github.com/slevin48/firestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slevin48/firestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slevin48%2Ffirestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slevin48%2Ffirestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slevin48%2Ffirestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slevin48%2Ffirestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slevin48","download_url":"https://codeload.github.com/slevin48/firestore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slevin48%2Ffirestore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["database","firestore","gcp","streamlit"],"created_at":"2024-11-10T04:33:29.877Z","updated_at":"2026-05-06T04:32:09.893Z","avatar_url":"https://github.com/slevin48.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firestore 🔥\nFirestore called from Streamlit apps\n\nhttps://discuss.streamlit.io/t/streamlit-firestore/9224\n\nhttps://firebase.google.com/docs/firestore\n\nhttps://googleapis.dev/python/firestore/latest/index.html\n\n## Create a Firestore database 🔥\nStart it in test mode, which means anyone can read or write to it for the next 30 days (you can change this later!)\n\n![firestore](firestore-create.png)\n\n## SDK Cloud\n\nhttps://cloud.google.com/sdk\n\n![sdk-cloud](sdk-cloud.png)\n\n## Download account keys 🗝️\n\nTo download this JSON file, first go to \"Project settings\":\n![project-dashboard](project-dashboard.png)\n\n## Python Client for Google Cloud Firestore\n\n```python\nfrom google.cloud import firestore\n\n# Add a new document\ndb = firestore.Client.from_service_account_json(\"firestore-key.json\")\ndoc_ref = db.collection(u'users').document(u'alovelace')\ndoc_ref.set({\n    u'first': u'Ada',\n    u'last': u'Lovelace',\n    u'born': 1815\n})\n\n# Then query for documents\nusers_ref = db.collection(u'users')\n\nfor doc in users_ref.stream():\n    print(u'{} =\u003e {}'.format(doc.id, doc.to_dict()))\n\n```\n\n![firestore-console](firestore-console2.png)\n\n[Setup Authentication](https://googleapis.dev/python/google-api-core/latest/auth.html)\n\n`\ngcloud auth application-default login\n`\n\nCredentials saved to file: [C:\\Users\\badmo\\AppData\\Roaming\\gcloud\\application_default_credentials.json]\n[C:\\Users\\badmo\\AppData\\Roaming\\gcloud\\application_default_credentials.json\n\n\nSource:\nhttps://discuss.streamlit.io/t/streamlit-firestore/9224","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslevin48%2Ffirestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslevin48%2Ffirestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslevin48%2Ffirestore/lists"}