{"id":20215950,"url":"https://github.com/pkarpovich/firestore2csv","last_synced_at":"2025-03-03T11:21:31.248Z","repository":{"id":180419478,"uuid":"665109853","full_name":"pkarpovich/firestore2csv","owner":"pkarpovich","description":"Firestore to CSV Converter: A Python script that allows for easy exporting of Firestore collections to CSV files. It supports selective export of collections and auto-archives exported files into a tar.gz file for convenient storage and sharing","archived":false,"fork":false,"pushed_at":"2023-11-28T23:47:43.000Z","size":79,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T22:16:51.658Z","etag":null,"topics":["csv","export","firebase","firestore"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkarpovich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-11T13:05:18.000Z","updated_at":"2024-10-10T00:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c05597a4-0c64-4d38-820e-a4b896e0db5f","html_url":"https://github.com/pkarpovich/firestore2csv","commit_stats":null,"previous_names":["pkarpovich/firestore2csv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkarpovich%2Ffirestore2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkarpovich%2Ffirestore2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkarpovich%2Ffirestore2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkarpovich%2Ffirestore2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkarpovich","download_url":"https://codeload.github.com/pkarpovich/firestore2csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652964,"owners_count":19997578,"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":["csv","export","firebase","firestore"],"created_at":"2024-11-14T06:25:36.121Z","updated_at":"2025-03-03T11:21:31.225Z","avatar_url":"https://github.com/pkarpovich.png","language":"Python","readme":"# Firestore to CSV Converter\n\nThis project contains a Python script for exporting data from Firebase Firestore into CSV format, managed using Poetry.\n\n## Description\n\nThis Python script allows you to export all documents from specified collections within your Firebase Firestore database into CSV files. The files are then compressed into a tar.gz file for convenience.\n\n## Features\n\n- Exports all documents from Firestore collections into CSV files\n- Can exclude specified collections\n- Automatically archives all CSV files into a tar.gz file\n\n## Requirements\n\nYou will need the following Python packages installed:\n\n- `firebase_admin`\n- `google-cloud-firestore`\n\nThese dependencies are specified in the `pyproject.toml` file and will be automatically managed by Poetry.\n\n## Installation\n\n1. Clone the repository:\n2. Navigate to the project directory \n3. Install Poetry if it isn't installed\n4. Install the project's dependencies\n\n\n## Usage\n\nYou can run the script using Poetry:\n\n```bash\npoetry run python main.py --cred-file \u003cfirebase-privateKey.json\u003e --exclude \u003ccomma separated collection names to exclude\u003e --output-dir \u003coutput directory\u003e\n```\n\nWhere:\n\n- `cred-file` is the path to your Firebase private key JSON file. Default is firebase-privateKey.json.\n- `exclude` is a comma-separated list of collections to exclude from the backup. By default, no collections are excluded.\n- `output-dir` is the path to the directory where the output tar.gz file will be saved. By default, files are saved in the backups directory in the current working directory\n\nExample:\n\n```bash\npoetry run python main.py --cred-file firebase-privateKey.json --exclude users,logs --output-dir backups\n```\n\n## License\nThis project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkarpovich%2Ffirestore2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkarpovich%2Ffirestore2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkarpovich%2Ffirestore2csv/lists"}