Vestings are handled by smart contractsIf you have the contract ABI and address, you can use web3.py
to call the contract and fetch its past emitted events. Based on this information, you cannot program Ethereum smart contracts incan construct on the Python side what has happened and what is the current contract state.
Here is an example linear vesting contractMore information in Web3.py documentation how to interact with the contracts.