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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file leveldb-export-0.1.1.tar.gz.

File metadata

  • Download URL: leveldb-export-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Darwin/21.1.0

File hashes

Hashes for leveldb-export-0.1.1.tar.gz
Algorithm Hash digest
SHA256 668ba4c710ebcecb5c34ae6c5b29f2236232c68ae24c671c934d160dc4539c54
MD5 344b5380ffa8d06bbb55cff45c7e985c
BLAKE2b-256 44558644d6fef40be78712acd63536d1902e718e480ddf4c9eb4ae3002ac005c

See more details on using hashes here.

File details

Details for the file leveldb_export-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: leveldb_export-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Darwin/21.1.0

File hashes

Hashes for leveldb_export-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13d1909b52db4e6cbed8cec3a6bcaeecec8ce3df846cc4a839002f6b0cb35efa
MD5 4a5a8d74a1d37549f4a235a75a6c4abf
BLAKE2b-256 07163d3eba6b53e3b37cb21a0240278c874685451c44aa8cd9fcc4fb9d596b90

See more details on using hashes here.

Supported by

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