Skip to main content

Package to export documents from LevelDB export (for instance Firestore).

Project description

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. 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.

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leveldb-export-0.1.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

leveldb_export-0.1.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page