lmdb doc
import lmdb lmdb_env = lmdb.open( lmdb_file, ... ) txn = lmdb_env.begin(write=False) txn.put('key', 'value') # 위를 한번에 작성하면 with lmdb.open(...) as env: with env.begin(...) as txn: txn.put(...)