Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Point72_csp-gateway /csp_gateway /utils /web /query.py
| import logging | |
| from pydantic import BaseModel | |
| from .filter import Filter | |
| log = logging.getLogger(__name__) | |
| class Query(BaseModel): | |
| filters: list[Filter] = [] | |
| def calculate(self, objs): | |
| """calculate and filter down objs by filters""" | |
| log.info(f"Querying {len(objs)} with query: {self}") | |
| return [o for o in objs if all(filter.calculate(o) for filter in self.filters)] | |
Xet Storage Details
- Size:
- 404 Bytes
- Xet hash:
- 37e57f5b573c3f53b28ad9c60e26135a07457b4cc7b92bb93f8bbf06374a898f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.