Python supercharged for fastai development
56
{
"context": "This criteria evaluates how well the engineer uses fastcore's advanced caching capabilities, specifically flexicache() with custom eviction policies and timed_cache() for time-based invalidation. The focus is on proper usage of these caching utilities rather than implementing caching from scratch.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses timed_cache",
"description": "Uses fastcore's timed_cache() decorator or function for implementing time-based cache expiration in fetch_with_cache()",
"max_score": 30
},
{
"name": "Uses flexicache",
"description": "Uses fastcore's flexicache() decorator or function for implementing custom eviction policies in fetch_with_policy()",
"max_score": 30
},
{
"name": "Custom policy implementation",
"description": "Correctly implements or uses a custom eviction policy function (e.g., time_policy() or mtime_policy()) that is passed to flexicache() and properly evaluates cache entry metadata",
"max_score": 25
},
{
"name": "Cache statistics tracking",
"description": "Implements cache hit/miss statistics tracking that correctly counts when cached values are returned versus when fresh data is fetched",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-fastcoredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10