Jinja2 Documentation Release 2.10lex(source, name=None, filename=None) Lex the given sourcecode and return a generator that yields tokens as tuples in the form (lineno, token_type, value). This can be useful for extension develop- ment filter_stream(stream) It’s passed a TokenStream that can be used to filter tokens returned. This method has to return an iterable of Tokens, but it doesn’t have to return a TokenStream. In the ext folder of conditional expressions are not parsed. parse_statements(end_tokens, drop_needle=False) Parse multiple statements into a list until one of the end tokens is reached. This is used to parse the body of statements0 码力 | 148 页 | 475.08 KB | 1 年前3
Celery 2.3 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() on get operations. Parameters • fill_rate – The rate in tokens/second that the bucket will be refilled. • capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() on get operations. Parameters • fill_rate – The rate in tokens/second that the bucket will be refilled. • capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.1 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() on get operations. Parameters • fill_rate – The rate in tokens/second that the bucket will be refilled. • capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.2 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() queue on get operations. Parameters: fill_rate – The rate in tokens/second that the bucket will be refilled. capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.1 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() queue on get operations. Parameters: fill_rate – The rate in tokens/second that the bucket will be refilled. capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 463 页 | 861.69 KB | 1 年前3
Click Documentation Release 2.60. Starting with click 2.0, it’s possible to provide a function that is used for normalizing tokens. Tokens are option names, choice values, or command values. This can be used to implement case insensitive The default is ['--help']. • token_normalize_func – an optional function that is used to normalize tokens (op- tions, choices, etc.). This for instance can be used to implement case insensitive behavior terminal (None is autodetection). token_normalize_func = None An optional normalization function for tokens. This is options, choices, commands etc. 2.1.6 Types click.STRING = STRING A unicode string parameter0 码力 | 83 页 | 354.87 KB | 1 年前3
Celery 2.3 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() queue on get operations. Parameters: fill_rate – The rate in tokens/second that the bucket will be refilled. capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 530 页 | 900.64 KB | 1 年前3
Click Documentation Release 3.30. Starting with Click 2.0, it’s possible to provide a function that is used for normalizing tokens. Tokens are option names, choice values, or command values. This can be used to implement case insensitive The default is ['--help']. • token_normalize_func – an optional function that is used to normalize tokens (op- tions, choices, etc.). This for instance can be used to implement case insensitive behavior terminal (None is autodetection). token_normalize_func = None An optional normalization function for tokens. This is options, choices, commands etc. 2.1.6 Types click.STRING = STRING A unicode string parameter0 码力 | 95 页 | 387.75 KB | 1 年前3
Celery 2.4 DocumentationFastQueue(maxsize=0) Queue.Queue supporting the interface of TokenBucketQueue. clear() expected_time(tokens=1) items wait(block=True) exception celery.worker.buckets.RateLimitExceeded The token buckets from the first available bucket. Available as in, there is an item in the queue and you can consume tokens from it. get_bucket_for_type(task_name) Get the bucket for a particular task type. get_nowait() on get operations. Parameters • fill_rate – The rate in tokens/second that the bucket will be refilled. • capacity – Maximum number of tokens in the bucket. Default is 1. exception RateLimitExceeded0 码力 | 395 页 | 1.54 MB | 1 年前3
共 269 条
- 1
- 2
- 3
- 4
- 5
- 6
- 27













