यह रहा उत्तर ।
आपके मामले में, प्रदान की गई तालिका परिभाषा का उपयोग करते हुए:
from sqlalchemy import cast, func
from sqlalchemy.types import TIME, DATE
from sqlalchemy.sql import between
time_from = ... # get filter time maybe using datetime.time()
time_to = ... # idem
counts = session.query(func.count('*').label('count')).\
filter(between(cast(MyClass.created, TIME),
time_from,
time_to)).\
group_by(cast(MyClass.created, DATE))
avg = session.query(func.avg(counts.subquery().columns.count)).scalar()
print avg