Skip to content

Instantly share code, notes, and snippets.


Sho Sundberg s-jcs

  • Japan
View GitHub Profile
s-jcs / gist:e12b6cd5d1602d4854e5abd92c444307
Created Feb 26, 2018
print level db key and values (msgpack to unpack binary)
View gist:e12b6cd5d1602d4854e5abd92c444307
import os
import sys
import plyvel
import msgpack
def p():
db_name = str(input('db name (Ex. candidates): '))
db_root = str(input('root directory (Ex. ./dbs/foobar/stg/): '))
print_limit = int(input('print limit (0 is all): '))