Search bar offers the following options:
Term presence. The below example searches for documents that
must contain “foo”, might contain “bar” and must not contain “baz”:
+foo bar -baz
Wildcards. The below example searches for documents with words beginning with “foo”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “search”:
Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.
Fuzzy matches. The following search matches all documents
that have a word within 1 edit distance of “foo”:
Results provided by Lunr.js
class ShapedProtocolFactory: (source)
Dispense Protocols with traffic shaping on their transports.
myserver = SomeFactory() myserver.protocol = ShapedProtocolFactory(myserver.protocol, bucketFilter)
Where SomeServerFactory is a
twisted.internet.protocol.Factory, and bucketFilter is an instance of
||Make a Protocol instance with a shaped transport.|
||Tell me what to wrap and where to get buckets.|
Make a Protocol instance with a shaped transport.
Any parameters will be passed on to the protocol's initializer.
|A Protocol instance with a |
Tell me what to wrap and where to get buckets.
|proto||The class of Protocol this will generate wrapped instances of.|
|bucket||The filter which will determine how traffic is shaped.|