Skip to content

Instantly share code, notes, and snippets.

View s-jcs's full-sized avatar

Sho Sundberg s-jcs

  • Japan
View GitHub Profile
@s-jcs
s-jcs / gist:e12b6cd5d1602d4854e5abd92c444307
Created February 26, 2018 06:57
print level db key and values (msgpack to unpack binary)
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): '))