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
↓ 14 callers
Function
ensureDeferred
Schedule the execution of a coroutine that awaits/yields from L{Deferred}s, wrapping it in a L{Deferred} that will fire on success/failure of
src/twisted/internet/defer.py:1328
↓ 14 callers
Method
fail
(r: object)
src/twisted/test/test_defer.py:2785
↓ 14 callers
Method
fetchSpecific
Retrieve a specific section of one or more messages @type messages: L{MessageSet} or L{str} @param messages: A message seque
src/twisted/mail/imap4.py:4104
↓ 14 callers
Method
forwardAndVerify
Send an event to a wrapped legacy observer and verify that its data is preserved. @param event: an event @return: t
src/twisted/logger/test/test_legacy.py:78
↓ 14 callers
Method
generate
(cls, kind: int = crypto.TYPE_RSA, size: int = 2048)
src/twisted/internet/_sslverify.py:716
↓ 14 callers
Method
get
(self, key: bytes)
src/twisted/persisted/dirdbm.py:229
↓ 14 callers
Method
getChallenge
(self)
src/twisted/cred/credentials.py:434
↓ 14 callers
Method
helper
(self, test: Callable[..., object], obj: _SupportsName)
src/twisted/internet/test/test_testing.py:447
↓ 14 callers
Method
isEqualToNode
Compare this node to C{other}. If the nodes have the same number of children and corresponding children are equal to each other, ret
src/twisted/web/microdom.py:166
↓ 14 callers
Method
isMacOSX
Check if current platform is macOS. @return: C{True} if the current platform has been detected as macOS.
src/twisted/python/runtime.py:67
↓ 14 callers
Method
kwargs
Keyword constructor arguments which are expected to result in an instance which returns C{bytes} when encoded. @return: A L{
src/twisted/names/test/test_dns.py:3303
↓ 14 callers
Method
loseConnection
Stub loseConnection because we are a transport.
src/twisted/words/test/test_xmlstream.py:23
↓ 14 callers
Method
makeURIString
Replace the string "HOST" in C{template} with this test's host. Byte strings Python between (and including) versions 3.0 and 3.4
src/twisted/web/test/test_webclient.py:73
↓ 14 callers
Function
pack
(sexp)
src/twisted/conch/ssh/sexpy.py:34
↓ 14 callers
Method
parse
Parse some amp data stored in a file. @param fileObj: a file-like object. @return: a list of AmpBoxes encoded in the given
src/twisted/protocols/amp.py:2646
↓ 14 callers
Method
putChild
Register a static child. You almost certainly don't want '/' in your path. If you intended to have the root of a folder, e.g
src/twisted/web/resource.py:221
↓ 14 callers
Method
putChild
(self, path, child)
src/twisted/web/test/test_web.py:1207
↓ 14 callers
Function
react
Call C{main} and run the reactor until the L{Deferred} it returns fires or the coroutine it returns completes. This is intended as the w
src/twisted/internet/task.py:875
↓ 14 callers
Method
registerProducer
Registers a single producer with this consumer. Just keeps track of it. @param producer: The producer to register. @param st
src/twisted/internet/test/test_testing.py:364
↓ 14 callers
Method
reportCursorPosition
(self)
src/twisted/conch/insults/helper.py:416
↓ 14 callers
Method
request
Issue C{request} over C{self.transport} and return a L{Deferred} which will fire with a L{Response} instance or an error. @p
src/twisted/web/_newclient.py:1509
↓ 14 callers
Function
runProtocolsWithReactor
Connect two protocols using endpoints and a new reactor instance. A new reactor will be created and run, with the client and server protocol
src/twisted/internet/test/connectionmixins.py:154
↓ 14 callers
Method
runTrial
(self, *args: str)
src/twisted/trial/test/test_output.py:48
↓ 14 callers
Method
sendLine
(self, line)
src/twisted/words/protocols/irc.py:273
↓ 14 callers
Method
sendLine
(self, line)
src/twisted/words/protocols/irc.py:1274
↓ 14 callers
Method
setRawMode
Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived.
src/twisted/protocols/basic.py:577
↓ 14 callers
Method
sign
Sign some data with this key. SECSH-TRANS RFC 4253 Section 6.6. @param data: The data to sign. @param signatureTyp
src/twisted/conch/ssh/keys.py:1717
↓ 14 callers
Method
startReading
Compatibility only, don't use. Call resumeProducing.
src/twisted/internet/_posixstdio.py:172
↓ 14 callers
Method
stop
(result)
src/twisted/internet/test/test_tcp.py:2685
↓ 14 callers
Function
test
(i)
docs/core/examples/testlogging.py:18
↓ 14 callers
Method
unregisterProducer
Unregister the producer.
src/twisted/web/http.py:1137
↓ 14 callers
Method
write
(self, bytes)
src/twisted/mail/test/test_imap.py:167
↓ 13 callers
Method
__init__
(self, boxReceiver=None, locator=None)
src/twisted/protocols/amp.py:2547
↓ 13 callers
Method
_bodyDataFinished
Called by HTTPClientParser when no more body data is available. If the optional reason is supplied, this indicates a problem or pote
src/twisted/web/_newclient.py:1272
↓ 13 callers
Method
_fetch
(self, messages, useUID=0, **terms)
src/twisted/mail/imap4.py:4194
↓ 13 callers
Method
_receiverTest
A generic test for NMEA receiver behavior. @param sentences: The sequence of sentences to simulate receiving. @type sentence
src/twisted/positioning/test/test_nmea.py:1009
↓ 13 callers
Method
_responseFromMessage
Generate a L{Message} instance suitable for use as the response to C{message}. C{queries} will be copied from the request to
src/twisted/names/server.py:175
↓ 13 callers
Method
addProto
(self, num, proto)
src/twisted/pair/rawudp.py:29
↓ 13 callers
Method
addProto
(self, num, proto)
src/twisted/pair/ip.py:50
↓ 13 callers
Method
addUser
Add a new user record to this database. @param username: The value for the C{pw_name} field of the user record to add.
src/twisted/python/fakepwd.py:70
↓ 13 callers
Function
assertLogMessage
Assert that the callable logs the expected messages when called. XXX: Put this somewhere where it can be re-used elsewhere. See #6677.
src/twisted/names/test/test_server.py:187
↓ 13 callers
Method
assertTestRun
Run the given test and assert that the result matches the given expectations.
src/twisted/trial/_dist/test/test_workerreporter.py:43
↓ 13 callers
Method
buildProtocol
(self, connection)
src/twisted/words/protocols/irc.py:2885
↓ 13 callers
Method
checkDisconnected
Helper function to check if the transport disconnected.
src/twisted/conch/test/test_transport.py:1374
↓ 13 callers
Method
connectedServerAndClient
Set up an in-memory connection between protocols created by C{serverFactory} and C{clientFactory}. @return: A three-tuple.
src/twisted/conch/test/test_endpoints.py:339
↓ 13 callers
Method
createReactor
Create a L{MemoryReactorClock} and give it some hostnames it can resolve. @return: a L{MemoryReactorClock}-like object with
src/twisted/web/test/test_agent.py:386
↓ 13 callers
Method
cursorPosition
(self, x, y)
src/twisted/conch/insults/window.py:36
↓ 13 callers
Method
dataReceived
(self, data: bytes)
src/twisted/protocols/haproxy/test/test_wrapper.py:38
↓ 13 callers
Method
establishClientAndServer
Connect a client obtained from C{clientFactory} and a server obtained from the current server factory via an L{IOPump}, then
src/twisted/spread/test/test_pb.py:1358
↓ 13 callers
Function
eventsFromJSONLogFile
Load events from a file previously saved with L{jsonFileLogObserver}. Event records that are truncated or otherwise unreadable are ignored.
src/twisted/logger/_json.py:193
↓ 13 callers
Method
execute
(ignoredResult: object)
src/twisted/internet/defer.py:2167
↓ 13 callers
Method
exists
Check if this L{FilePath} exists. @return: C{True} if the stats of C{path} can be retrieved successfully, C{False} in th
src/twisted/python/filepath.py:1313
↓ 13 callers
Method
failuresHandled
Run some application code, logging a failure and emitting a traceback in the event that any of it fails, but continuing on. For exam
src/twisted/logger/_logger.py:358
↓ 13 callers
Method
fireSystemEvent
See twisted.internet.interfaces.IReactorCore.fireSystemEvent.
src/twisted/internet/base.py:844
↓ 13 callers
Method
fromPath
Create a new L{KnownHostsFile}, potentially reading existing known hosts information from the given file. @param path: A pat
src/twisted/conch/client/knownhosts.py:546
↓ 13 callers
Method
getFeature
Get a server supported feature's value. A feature with the value L{None} is equivalent to the feature being unsupported.
src/twisted/words/protocols/irc.py:959
↓ 13 callers
Method
getHost
Get host information from the transport.
src/twisted/web/test/test_proxy.py:133
↓ 13 callers
Function
getModule
Retrieve a module from the system path.
src/twisted/python/modules.py:782
↓ 13 callers
Method
getRunner
(self)
src/twisted/trial/test/test_runner.py:322
↓ 13 callers
Function
getThreadID
()
src/twisted/python/threadable.py:104
↓ 13 callers
Method
getTime
Return the time at which this call will fire @return: The number of seconds after the epoch at which this call is schedu
src/twisted/internet/base.py:121
↓ 13 callers
Method
getfilesystemencoding
Return a fixed filesystem encoding. @return: A fixed value of "utf8".
src/twisted/test/test_process.py:1620
↓ 13 callers
Method
getpwuid
Return the user record corresponding to the given uid.
src/twisted/python/fakepwd.py:113
↓ 13 callers
Method
lock
Acquire this lock. @rtype: C{bool} @return: True if the lock is acquired, false otherwise. @raise OSError: Any exce
src/twisted/python/lockfile.py:144
↓ 13 callers
Method
lookupUser
(self, name)
src/twisted/words/service.py:1145
↓ 13 callers
Method
makeConnection
Make a connection to a transport and a server.
src/twisted/internet/interfaces.py:1966
↓ 13 callers
Method
open
(self, mode: Literal["r", "w"] = "r")
src/twisted/python/zippath.py:198
↓ 13 callers
Method
openChannel
Open a new channel on this connection. @type channel: subclass of C{SSHChannel} @type extra: L{bytes}
src/twisted/conch/ssh/connection.py:425
↓ 13 callers
Function
optionsForClientTLS
Create a L{client connection creator <IOpenSSLClientConnectionCreator>} for use with APIs such as L{SSL4ClientEndpoint <twisted.internet.
src/twisted/internet/_sslverify.py:1113
↓ 13 callers
Method
preauthChild
Use me if C{path} might have slashes in it, but you know they're safe. @param path: A relative path (ie, a path not starting with C{
src/twisted/python/filepath.py:944
↓ 13 callers
Method
privateBlob
Return the private key blob for this key. The blob is the over-the-wire format for private keys: Specification in OpenSSH PR
src/twisted/conch/ssh/keys.py:1321
↓ 13 callers
Function
qual
Return full import path of a class.
src/twisted/python/reflect.py:351
↓ 13 callers
Method
read
Pass through to the underlying C{read}. This is called in a WSGI application thread, not the I/O thread.
src/twisted/web/wsgi.py:146
↓ 13 callers
Method
registerProducer
(self, producer, streaming)
src/twisted/protocols/ftp.py:533
↓ 13 callers
Method
render
(self, request)
src/twisted/web/test/test_static.py:265
↓ 13 callers
Method
requestAvatarId
(self, creds)
src/twisted/conch/test/test_userauth.py:196
↓ 13 callers
Method
requestReceived
(self, *args, **kwargs)
src/twisted/web/test/test_http2.py:323
↓ 13 callers
Method
reset
Skip the next iteration and reset the timer. @since: 11.1
src/twisted/internet/task.py:211
↓ 13 callers
Method
save
Save this L{KnownHostsFile} to the path it was loaded from.
src/twisted/conch/client/knownhosts.py:528
↓ 13 callers
Function
sibpath
For finding files in twisted/trial/test
src/twisted/trial/test/test_script.py:40
↓ 13 callers
Method
start
Start the threadpool.
src/twisted/python/threadpool.py:171
↓ 13 callers
Method
stopService
(self)
src/twisted/test/test_twistd.py:603
↓ 13 callers
Method
str
(self)
src/twisted/python/util.py:488
↓ 13 callers
Method
toStr
Fake toStr which returns dummyBytes. @return: dummyBytes
src/twisted/names/test/test_dns.py:4301
↓ 13 callers
Method
verify
Verify the Message Authentication Code by checking that the packet sequence number is the same.
src/twisted/conch/test/test_transport.py:218
↓ 13 callers
Method
watch
Watch the 'mask' events in given path. Can raise C{INotifyError} when there's a problem while adding a directory. @param pat
src/twisted/internet/inotify.py:325
↓ 13 callers
Method
write
(self, data)
src/twisted/test/test_pcp.py:40
↓ 12 callers
Method
__init__
(self, gravity=CENTER)
src/twisted/conch/insults/window.py:284
↓ 12 callers
Method
_getLogPrefix
Override the normal prefix to include an annotation indicating this is a port for TLS connections.
src/twisted/internet/ssl.py:214
↓ 12 callers
Method
_getResolver
Create and return a new L{root.Resolver} modified to resolve queries against the record data represented by C{servers}. @par
src/twisted/names/test/test_rootresolve.py:164
↓ 12 callers
Method
_messageSetSearchTest
Issue a search with given query and verify that the returned messages match the given expected messages. @param queryTerms:
src/twisted/mail/test/test_imap.py:6739
↓ 12 callers
Method
_notificationTest
Test notification from some filesystem operation. @param mask: The event mask to use when setting up the watch. @param oper
src/twisted/internet/test/test_inotify.py:52
↓ 12 callers
Method
_parseFeature
Parse a feature, with the given name and value, according to the ISUPPORT specifications and return the parsed value.
src/twisted/words/test/test_irc.py:688
↓ 12 callers
Method
_trivialTest
(self, inputLine, output)
src/twisted/conch/test/test_recvline.py:478
↓ 12 callers
Method
acquire
Attempt to acquire the lock. Returns a L{Deferred} that fires on lock acquisition with the L{DeferredLock} as the value. If the loc
src/twisted/internet/defer.py:2227
↓ 12 callers
Method
addError
Record that a test has raised an unexpected exception. @param test: The test that has raised an error. @param error: The err
src/twisted/trial/itrial.py:93
↓ 12 callers
Method
addExpectedFailure
(self, test, failure, todo=None)
src/twisted/trial/test/test_reporter.py:1393
↓ 12 callers
Method
addOnetimeObserver
Register a one-time observer for an event. Like L{addObserver}, but is only triggered at most once. See there for a descript
src/twisted/words/xish/utility.py:185
↓ 12 callers
Method
addProto
(self, num, proto)
src/twisted/pair/ethernet.py:40
↓ 12 callers
Method
asTextMode
Return this L{FilePath} in L{unicode}-mode. @param encoding: The encoding to use if coercing to L{unicode}. If none is g
src/twisted/python/filepath.py:891
← previous
next →
501–600 of 25,749, ranked by callers