{"id":25939219,"url":"https://github.com/ajf1016/firestore-json-uploader","last_synced_at":"2026-05-07T12:36:05.644Z","repository":{"id":280254940,"uuid":"941432459","full_name":"ajf1016/Firestore-JSON-Uploader","owner":"ajf1016","description":"This Python script allows users to upload JSON data to a Firestore collection using the Firebase Admin SDK.","archived":false,"fork":false,"pushed_at":"2025-03-02T09:28:00.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T10:26:05.799Z","etag":null,"topics":["firebase","python3"],"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/ajf1016.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":"2025-03-02T09:26:10.000Z","updated_at":"2025-03-02T09:33:16.000Z","dependencies_parsed_at":"2025-03-02T10:36:17.267Z","dependency_job_id":null,"html_url":"https://github.com/ajf1016/Firestore-JSON-Uploader","commit_stats":null,"previous_names":["ajf1016/firestore-json-uploader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajf1016%2FFirestore-JSON-Uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajf1016%2FFirestore-JSON-Uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajf1016%2FFirestore-JSON-Uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajf1016%2FFirestore-JSON-Uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajf1016","download_url":"https://codeload.github.com/ajf1016/Firestore-JSON-Uploader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780495,"owners_count":20019061,"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":["firebase","python3"],"created_at":"2025-03-04T04:16:01.228Z","updated_at":"2026-05-07T12:36:05.612Z","avatar_url":"https://github.com/ajf1016.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firestore JSON Uploader\n\n## Overview\nThis Python script uploads JSON files to a Firestore collection using the Firebase Admin SDK. It is designed for users who need to batch-upload structured data into Firestore.\n\n## Features\n- Reads JSON files and uploads them to Firestore.\n- Uses Firebase Admin SDK for authentication.\n- Supports customizable Firestore collection and document structure.\n- Skips missing files and logs progress.\n\n## Prerequisites\n- Python 3.x installed on your system.\n- Firebase Admin SDK installed.\n- A valid `serviceAccountKey.json` file for Firebase authentication.\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/firestore-json-uploader.git\n   cd firestore-json-uploader\n   ```\n2. Install dependencies:\n   ```bash\n   pip install firebase-admin\n   ```\n3. Place your Firebase service account key in the project directory and update the script:\n   ```python\n   cred = credentials.Certificate(\"path/to/your/serviceAccountKey.json\")\n   ```\n4. Modify the Firestore collection reference as needed:\n   ```python\n   collection_ref = db.collection(\"your_collection\").document(\"your_document\").collection(\"your_subcollection\")\n   ```\n\n## Usage\n1. Add your JSON files (e.g., `document1.json`, `document2.json`, etc.) in the project directory.\n2. Run the script:\n   ```bash\n   python upload_to_firestore.py\n   ```\n3. The script will upload data and display progress logs.\n\n## Notes\n- Ensure your Firebase project is properly configured with Firestore.\n- JSON files should have a structure compatible with Firestore.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajf1016%2Ffirestore-json-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajf1016%2Ffirestore-json-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajf1016%2Ffirestore-json-uploader/lists"}