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 bucket key, compute the parameters used to compute
that key.

Note: Deprecated.  Use BucketKey.decode() instead.

:param key: The bucket key.  Note that the UUID must match the
            UUID of this limit; a ValueError will be raised if
            this is not the case.

src/t/u/turnstile-HEAD/tests/unit/test_limits.py   turnstile(Download)
    def test_decode(self, mock_decode):
        limit = limits.Limit('db', uri='uri', value=10, unit=1)
        limit.uuid = 'fake_uuid'
        key = 'bucket:fake_uuid/a=1/b=2/c=3/d=4/e=5/f=6'
        params = limit.decode(key)