Metadata-Version: 2.1
Name: leveldb-export
Version: 0.1.1
Summary: Package to export documents from LevelDB export (for instance Firestore).
Home-page: https://github.com/joelluijmes/leveldb-export
License: MIT
Keywords: firestore,leveldb,export,firestore-export,leveldb-export
Author: Joël Luijmes
Author-email: me@joell.dev
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: appengine-python-standard (>=0.3.1,<0.4.0)
Requires-Dist: google-crc32c (>=1.1.2,<2.0.0)
Requires-Dist: protobuf (>=3.15.8,<4.0.0)
Project-URL: Repository, https://github.com/joelluijmes/leveldb-export
Description-Content-Type: text/markdown

# LevelDB Export

This package allows to export documents from a LevelDB file. For instance it can be used to extract documents from a previously created Firestore export. Note, this package is a fork from [labbots/firestore-export-json](https://github.com/labbots/firestore-export-json). This fork is different in:

1. Makes it an installable package. The original is designed to run as a script.
2. Solves some parsing issues regarding arrays.


## Installation

Install the package from pypi.

```bash
pip install leveldb-export
```

## Example

Use the function `parse_leveldb_documents` to parse documents from a LevelDB / Firestore dump. As input either:

- Use path to file
- Use open file handle

For example

```python
>>> from leveldb_export import parse_leveldb_documents
>>> docs = list(parse_leveldb_documents("./firestore/export-0"))
>>> print(f"Got {len(docs)} documents")
Got 288 documents
```

