This Python lib only works with the v0.2.0 of the c++ library https://github.com/gutierrezps/ESP32_I2C_Slave/releases/tag/v0.2.0
platformio lib_deps = ESP32 I2C Slave
https://github.com/gutierrezps/ESP32_I2C_Slave
because the esp32-arduino framework not allowed you to use ESP32 as i2c slave.
The ESP32 I2C Slave library do the job on 2 ESP32 or Arduino + ESP32 but not with python master on raspberry pi.
So i convert parts of this library to python classes.
To use these classes you must need to install:
pip install adafruit-blinka
pip install adafruit-extended-bus
Follow examples to read data from master RPI to slave ESP32:
example-read
example-write
example-slave-side
to install it use pip:
pip install raspberrypi-esp32-i2c