While the Raspberry Pi has very good support for an I2C bus, a lot of very cool chips – including the in system programmer for just about every ATtiny and ATmega microcontroller – use an SPI bus.
We’ve gotten used to the GPIO-available functions of Raspberry Pi computers remaining largely the same over the years, which is why it might have flown a little bit under the radar: the Raspberry Pi 4 ...
If you want to program in Python see Raspberry Pi IoT In Python Using Linux Drivers. There are many specific device drivers which make use of the I2C bus and, as in the case of the SPI bus, there is ...