Web3.py

Web3.py is one of the most widely used Python libraries for interacting with the Ethereum blockchain. You can create a Web3 instance with Rivet as a provider using:

from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://YourApiKey.eth.rpc.rivet.cloud/"))

From there, you can use the we object as documented to pull data from Rivet.