Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Given a key and a bucket dict, as generated by dehydrate(),
generate an appropriate instance of Bucket.

src/t/u/turnstile-HEAD/tests/unit/test_limits.py   turnstile(Download)
    def test_hydrate(self):
        bucket_dict = dict(last=1000000.0 - 3600,
                           next=1000000.0, level=0.5)
        bucket = limits.Bucket.hydrate('db', bucket_dict, 'limit', 'key')