Using The Pooling Client
In this example, we explain how the egytech_api PoolingClient can be used to leverage connection pooling and make multiple requests at once by just specifying the request parameters in a dictionary.
Create Your Queries
First Method (Recommended):
from egytech_api.models import ParticipantsQueryParams
# Prepare your queries as ParticipantsQueryParams instances
# Method 1:
# This method is better in the sense that it allows auto-completion and linters to
# check input validity
query1 = ParticipantsQueryParams(title = "backend", cs_degree = True)
query2 = ParticipantsQueryParams(title = "frontend", gender = "female")
queryn = ParticipantsQueryParams(title = "fullstack", include_relocated = False)
# Create a list of your queries
params_objs = [query1, query2, queryn]Second Method:
Initialize A PoolingClient Instance & Fetch The Data
Last updated