Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/twisted/twisted
/ functions
Functions
25,749 in github.com/twisted/twisted
⨍
Functions
25,749
◇
Types & classes
5,428
↳
Endpoints
28
↓ 3,562 callers
Method
assertEqual
Fail the test if C{first} and C{second} are not equal. @param msg: A string describing the failure that's included in the
src/twisted/trial/_synctest.py:426
↓ 1,155 callers
Method
assertEqual
(self, a: object, b: object)
src/twisted/test/test_randbytes.py:16
↓ 1,083 callers
Method
assertTrue
Fail the test if C{condition} evaluates to False. @param condition: any object that defines __nonzero__
src/twisted/trial/_synctest.py:382
↓ 926 callers
Method
addCallback
( self, callback: Callable[Concatenate[_SelfResultT, _P], Failure], *args: _P.args,
src/twisted/internet/defer.py:551
↓ 865 callers
Method
assertRaises
Fail the test unless calling the function C{f} with the given C{args} and C{kwargs} raises C{exception}. The failure will report
src/twisted/trial/_synctest.py:395
↓ 650 callers
Method
assertFalse
Fail the test if C{condition} evaluates to True. @param condition: any object that defines __nonzero__
src/twisted/trial/_synctest.py:369
↓ 649 callers
Method
append
(self, line)
src/twisted/python/util.py:481
↓ 544 callers
Method
join
Attempt to join the given group. @type group: L{IGroup} @rtype: L{twisted.internet.defer.Deferred}
src/twisted/words/iwords.py:176
↓ 415 callers
Method
assertEqual
(self, a: object, b: object)
src/twisted/positioning/test/test_nmea.py:556
↓ 360 callers
Method
addErrback
( self, errback: Callable[Concatenate[Failure, _P], Deferred[_NextResultT]], *args: _P
src/twisted/internet/defer.py:626
↓ 317 callers
Method
mktemp
Return a temporary path, encoded as bytes.
src/twisted/test/test_paths.py:48
↓ 313 callers
Method
addCallback
(self, tag)
src/twisted/test/test_internet.py:929
↓ 313 callers
Method
assertIn
Fail the test if C{containee} is not found in C{container}. @param containee: the value that should be in C{container} @para
src/twisted/trial/_synctest.py:489
↓ 303 callers
Method
pop
@see: L{dict.pop} @since: Twisted 21.2.0
src/twisted/python/util.py:181
↓ 299 callers
Method
assertIs
Fail the test if C{first} is not C{second}. This is an obect-identity-equality test, not an object equality (i.e. C{__eq__})
src/twisted/trial/_synctest.py:441
↓ 292 callers
Method
assertIsInstance
Fail if C{instance} is not an instance of the given class or of one of the given classes. @param instance: the object to tes
src/twisted/trial/_synctest.py:637
↓ 283 callers
Method
encode
Encode this Name into the appropriate byte format. @type strio: file @param strio: The byte representation of this Name will
src/twisted/names/dns.py:655
↓ 282 callers
Method
addCallback
Add callback. The arguments passed are used as callback specific arguments. @param onetime: If C{True}, this callback is ca
src/twisted/words/xish/utility.py:57
↓ 276 callers
Method
successResultOf
Return the current success result of C{deferred} or raise C{self.failureException}. @param deferred: A L{Deferred<twisted.in
src/twisted/trial/_synctest.py:678
↓ 268 callers
Method
assertFailure
Fail if C{deferred} does not errback with one of C{expectedFailures}. Returns the original Deferred with callbacks added. You will ne
src/twisted/trial/_asynctest.py:73
↓ 257 callers
Method
addCleanup
Extend the base cleanup feature with support for cleanup functions which return Deferreds. If the function C{f} returns a De
src/twisted/trial/_asynctest.py:320
↓ 249 callers
Method
getvalue
(self)
src/twisted/test/test_pcp.py:43
↓ 242 callers
Method
append
(self, what)
src/twisted/test/test_application.py:329
↓ 237 callers
Method
format
(self, tag)
src/twisted/mail/imap4.py:548
↓ 235 callers
Method
msg
Log a new message. The message should be a native string, i.e. bytes on Python 2 and Unicode on Python 3. For compatibility
src/twisted/python/log.py:243
↓ 218 callers
Method
value
(self, elem)
src/twisted/words/xish/xpath.py:27
↓ 197 callers
Function
open
Open an existing shortcut for reading. @return: The shortcut object @rtype: Shortcut
src/twisted/python/shortcut.py:17
↓ 196 callers
Method
addCallbacks
Add a pair of callbacks (success and error) to this L{Deferred}. These will be executed when the 'master' callback is run.
src/twisted/internet/defer.py:471
↓ 194 callers
Method
child
Return a new ZipPath representing a path in C{self.archive} which is a child of this path. @note: Requesting the C{".."} (or
src/twisted/python/zippath.py:127
↓ 180 callers
Method
advance
Move time on this clock forward by the given amount and run whatever pending calls should be run. @param amount: The number
src/twisted/internet/task.py:812
↓ 171 callers
Method
succeed
(r: object)
src/twisted/test/test_defer.py:2788
↓ 151 callers
Method
trap
Trap this failure if its type is in a predetermined list. This allows you to trap a Failure in an error callback. It will be
src/twisted/python/failure.py:405
↓ 148 callers
Method
failureResultOf
Return the current failure result of C{deferred} or raise C{self.failureException}. @param deferred: A L{Deferred<twisted.in
src/twisted/trial/_synctest.py:731
↓ 147 callers
Method
errback
Run all error callbacks that have been added to this L{Deferred}. Each callback will have its result passed as the first arg
src/twisted/internet/defer.py:883
↓ 147 callers
Method
patch
Apply all of the patches that have been specified with L{addPatch}. Reverse this operation using L{restore}.
src/twisted/python/monkey.py:41
↓ 146 callers
Method
fromString
Return a Key object corresponding to the string data. type is optionally the type of string, matching a _fromString_* method.
src/twisted/conch/ssh/keys.py:173
↓ 144 callers
Method
buildReactor
Create and return a reactor using C{self.reactorFactory}.
src/twisted/internet/test/reactormixins.py:260
↓ 144 callers
Method
callback
Run all success callbacks that have been added to this L{Deferred}. Each callback will have its result passed as the first argument
src/twisted/internet/defer.py:858
↓ 144 callers
Method
get
(self, instance: object, methodName: str)
src/twisted/web/_element.py:74
↓ 143 callers
Method
flushLoggedErrors
Remove stored errors received from the log. C{TestCase} stores each error logged during the run of the test and reports them
src/twisted/trial/_synctest.py:1106
↓ 141 callers
Method
makeConnection
(self, producer)
src/twisted/web/test/test_newclient.py:2785
↓ 139 callers
Method
run
(self, *args)
src/twisted/web/xmlrpc.py:81
↓ 130 callers
Method
items
@return: a L{list} of 2-tuples containing key/value pairs.
src/twisted/persisted/dirdbm.py:192
↓ 129 callers
Function
networkString
Convert a string to L{bytes} using ASCII encoding. This is useful for sending text-like bytes that are constructed using string interpol
src/twisted/python/compat.py:442
↓ 126 callers
Method
err
(name)
src/twisted/python/_shellcomp.py:413
↓ 121 callers
Method
NS
(self, arg)
src/twisted/conch/test/test_transport.py:66
↓ 121 callers
Method
replace
Replace the given C{key}. It must already exist in the server. @param key: the key to replace. @type key: L{bytes}
src/twisted/protocols/memcache.py:405
↓ 121 callers
Method
setContent
Replace the file at this path with a new file that contains the given bytes, trying to avoid data-loss in the meanwhile. On
src/twisted/python/filepath.py:1546
↓ 120 callers
Method
append
(f)
src/twisted/conch/test/test_filetransfer.py:418
↓ 119 callers
Method
listenTCP
Fake L{IReactorTCP.listenTCP}, that logs the call and returns an L{IListeningPort}.
src/twisted/internet/testing.py:723
↓ 118 callers
Method
callback
Call deferred with data and rest of line
src/twisted/mail/imap4.py:475
↓ 116 callers
Method
write
Write some data as a result of an HTTP request. The first time this is called, it writes out response data. @type data: C{b
src/twisted/web/http.py:1248
↓ 114 callers
Method
assertRaises
( self, exception: type[Exception], f: Callable[[], object] )
src/twisted/positioning/test/test_nmea.py:559
↓ 114 callers
Method
flushWarnings
Remove stored warnings from the list of captured warnings and return them. @param offendingFunctions: If L{None}, all warnin
src/twisted/trial/_synctest.py:1120
↓ 108 callers
Method
addBoth
( self, callback: Callable[Concatenate[_SelfResultT | Failure, _P], Failure], *args: _
src/twisted/internet/defer.py:668
↓ 105 callers
Method
extend
Extend our messages with another message or set of messages. @param other: The messages to include. @type other: L{MessageSe
src/twisted/mail/imap4.py:285
↓ 104 callers
Method
encode
Write to the request, automatically compressing data on the fly.
src/twisted/web/server.py:657
↓ 100 callers
Method
join
Shut down all of the workers in the pool. The pool is unusable after this method is called.
src/twisted/trial/_dist/disttrial.py:127
↓ 95 callers
Method
makedirs
Create all directories not yet existing in C{path} segments, using L{os.makedirs}. @param ignoreExistingDirectory: Don't rai
src/twisted/python/filepath.py:1476
↓ 94 callers
Function
nativeString
Convert C{bytes} or C{str} to C{str} type, using ASCII encoding if conversion is necessary. @raise UnicodeError: The input string is not
src/twisted/python/compat.py:329
↓ 93 callers
Method
assertNotIn
Fail the test if C{containee} is found in C{container}. @param containee: the value that should not be in C{container} @para
src/twisted/trial/_synctest.py:505
↓ 93 callers
Method
patch
Monkey patch an object for the duration of the test. The monkey patch will be reverted at the end of the test using the L{ad
src/twisted/trial/_synctest.py:1086
↓ 92 callers
Method
clear
Clear any existing children from this tag.
src/twisted/web/_stan.py:279
↓ 91 callers
Method
exists
(self)
src/twisted/python/zippath.py:152
↓ 91 callers
Function
iterbytes
Return an iterable wrapper for a C{bytes} object that provides the behavior of iterating over C{bytes} on Python 2. In particular, the r
src/twisted/python/compat.py:396
↓ 88 callers
Method
connectTCP
Fake L{IReactorTCP.connectTCP}, that logs the call and returns an L{IConnector}.
src/twisted/internet/testing.py:735
↓ 87 callers
Method
assertIsInstance
( self, instance: object, classOrTuple: type, message: str )
src/twisted/test/test_log.py:327
↓ 87 callers
Method
callback
(self, tag)
src/twisted/test/test_internet.py:925
↓ 87 callers
Method
seek
(self, offset, whence)
src/twisted/web/test/test_agent.py:186
↓ 85 callers
Method
callRemote
Call remote XML-RPC C{method} with given arguments. @return: a L{defer.Deferred} that will fire with the method response,
src/twisted/web/xmlrpc.py:573
↓ 85 callers
Method
dataReceived
(self, data)
src/twisted/web/sux.py:150
↓ 84 callers
Function
NS
net string
src/twisted/conch/ssh/common.py:22
↓ 84 callers
Method
decode
Decode a byte string into this Name. When invoked from L{Message.decode}, a shared compression-pointer counter is picked up
src/twisted/names/dns.py:688
↓ 82 callers
Method
getRawHeaders
(self, name: AnyStr)
src/twisted/web/http_headers.py:160
↓ 82 callers
Method
warn
Emit a log event at log level L{LogLevel.warn}. @param format: a message format using new-style (PEP 3101) formatting. T
src/twisted/logger/_logger.py:313
↓ 81 callers
Method
append
Add the given message to the given mailbox. This command is allowed in the Authenticated and Selected states. @type mailbox
src/twisted/mail/imap4.py:3457
↓ 79 callers
Method
callLater
See L{twisted.internet.interfaces.IReactorTime.callLater}.
src/twisted/internet/task.py:787
↓ 77 callers
Method
keys
@return: a L{list} of filenames (keys).
src/twisted/persisted/dirdbm.py:176
↓ 75 callers
Method
value
Retrieve all data which has been buffered by this transport. This is not a transport method. It is intended for tests. Do not use
src/twisted/internet/testing.py:248
↓ 74 callers
Method
remove
Remove the given user from this group. @type user: L{IUser} @type reason: C{unicode}
src/twisted/words/iwords.py:35
↓ 74 callers
Method
runReactor
Run the reactor for at most the given amount of time. @param reactor: The reactor to run. @type timeout: C{int} or C{float}
src/twisted/internet/test/reactormixins.py:325
↓ 72 callers
Method
run
(self, result)
src/twisted/trial/test/test_runner.py:679
↓ 72 callers
Function
strip
(f)
src/twisted/mail/test/test_imap.py:58
↓ 71 callers
Method
parseOptions
The guts of the command-line parser.
src/twisted/python/usage.py:213
↓ 70 callers
Method
assertNotEqual
Fail the test if C{first} == C{second}. @param msg: if msg is None, then the failure message will be '%r == %r' % (first, se
src/twisted/trial/_synctest.py:473
↓ 70 callers
Method
update
Add all the key/value pairs in L{dict} to this dirdbm. Any conflicting keys will be overwritten with the values from L{dict}.
src/twisted/persisted/dirdbm.py:256
↓ 70 callers
Method
write
(self, bytes: bytes)
src/twisted/test/test_log.py:297
↓ 69 callers
Method
value
return this counter's value >>> c = Counter(555) >>> c.value() == 555 True
src/twisted/trial/test/mockdoctest.py:89
↓ 67 callers
Method
assertNoResult
Assert that C{deferred} does not have a result at this point. If the assertion succeeds, then the result of C{deferred} is left
src/twisted/trial/_synctest.py:789
↓ 67 callers
Method
getHost
(self)
src/twisted/test/iosim.py:174
↓ 66 callers
Method
setRawHeaders
Sets the raw representation of the given header. @param name: The name of the HTTP header to set the values for. @param val
src/twisted/web/http_headers.py:120
↓ 66 callers
Method
stop
(self, b)
docs/core/examples/pbgtk2.py:125
↓ 65 callers
Method
dataReceived
(self, data)
src/twisted/web/test/test_agent.py:2370
↓ 65 callers
Method
messageFactory
Create a L{dns.Message}. The L{dns.Message} constructor doesn't accept C{queries}, C{answers}, C{authority}, C{additional} a
src/twisted/names/test/test_dns.py:1097
↓ 65 callers
Method
parseString
(self, s)
src/twisted/mail/imap4.py:5816
↓ 64 callers
Function
f
(x: int, a: int)
benchmarks/test_deferred.py:38
↓ 64 callers
Method
loopback
(self)
src/twisted/mail/test/test_imap.py:7173
↓ 63 callers
Method
addRawHeader
Add a new raw value for the given header. @param name: The name of the header for which to set the value. @param value: The
src/twisted/web/http_headers.py:145
↓ 62 callers
Method
encode
(self, s, errors="strict")
src/twisted/mail/imap4.py:6205
↓ 62 callers
Method
flush
Pump until there is no more input or output. Returns whether any data was moved.
src/twisted/test/iosim.py:301
next →
1–100 of 25,749, ranked by callers