datamodel-code-generator is a really useful python library for generating python types out of a openapi/graphql schema