For subscriptions, you could use graphql-python/gql (<a href="https://github.com/graphql-python/gql" rel="nofollow">https://github.com/graphql-python/gql</a>) as a dependency instead of requests and graphql-core directly and support the websockets transport.