class_docstr: Plyvel Wrapper to Interact With LevelDB Database.
  
  `LevelDB Connection Documentation <https://plyvel.readthedocs.io/en/latest/>`__
class_docstr_tok: ["Plyvel","Wrapper","to","Interact","With","LevelDB","Database",".","`","LevelDB","Connection","Documentation","<","https",":","\/\/plyvel.readthedocs.io\/en\/latest\/",">","`","__"]
docstr: Write batch of values in a leveldb db by keys.
  
  :param keys: keys for write_batch execution e.g. ``[b'key', b'another-key']``
  :param values: values for write_batch execution e.g. ``[b'value', b'another-value']``
docstr_tok: ["Write","batch","of","values","in","a","leveldb","db","by","keys",".",":","param","keys",":","keys","for","write_batch","execution","e.g",".","``","[","b'key","'",",","b'another-key","'","]","``",":","param","values",":","values","for","write_batch","execution","e.g",".","``","[","b'value","'",",","b'another-value","'","]","``"]
code: def write_batch(self, keys: list[bytes], values: list[bytes]):
      """
      Write batch of values in a leveldb db by keys.
  
      :param keys: keys for write_batch execution e.g. ``[b'key', b'another-key']``
      :param values: values for write_batch execution e.g. ``[b'value', b'another-value']``
      """
      if not self.db:
          raise Exception(DB_NOT_INITIALIZED_BEFORE)
      with self.db.write_batch() as batch:
          for i, key in enumerate(keys):
              batch.put(key, values[i])
  
file_path: airflow/airflow/providers/google/leveldb/hooks/leveldb.py
imports: from __future__ import annotations
  from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 8 for calling the LevelDBHook obj's underlying member method code with example usage: obj.write_batch(keys, values) without return types