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
↓ 22 callers
Method
getContext
Create and cache an L{SSL.Context} based on the parameters in this L{twisted.internet.ssl.CertificateOptions}. This is depre
src/twisted/internet/_sslverify.py:1561
↓ 22 callers
Method
getRootObject
Get root object of remote PB server. @return: Deferred of the root object.
src/twisted/spread/pb.py:1348
↓ 22 callers
Method
listenUDP
Connects a given L{DatagramProtocol} to the given numeric UDP port. @param port: A port number on which to listen. @param pr
src/twisted/internet/interfaces.py:966
↓ 22 callers
Method
login
Login and get perspective from remote PB server. Currently the following credentials are supported:: L{twisted.cred.cre
src/twisted/spread/pb.py:1398
↓ 22 callers
Method
matches
(self, elem)
src/twisted/words/xish/xpath.py:143
↓ 22 callers
Method
openForReading
Open a file and return it.
src/twisted/web/static.py:343
↓ 22 callers
Function
readPrecisely
(file, l)
src/twisted/names/dns.py:444
↓ 22 callers
Method
remove
Removes the file or directory that is represented by self. If C{self.path} is a directory, recursively remove all its children
src/twisted/python/filepath.py:1462
↓ 22 callers
Method
restat
Re-calculate cached effects of 'stat'. To refresh information on this path after you know the filesystem may have changed, call this
src/twisted/python/filepath.py:1091
↓ 22 callers
Method
runRequest
Execute a web request based on plain text content. @param httpRequest: Content for the request which is processed. Each
src/twisted/web/test/test_http.py:1761
↓ 22 callers
Method
send
(self, data)
src/twisted/words/test/test_jabberxmlstream.py:977
↓ 22 callers
Method
sendCode
Send an SMTP code with a message.
src/twisted/mail/smtp.py:474
↓ 22 callers
Method
setHeader
Set an HTTP response header. Overrides any previously set values for this header. @type name: L{bytes} or L{str} @p
src/twisted/web/http.py:1450
↓ 22 callers
Method
setHost
Change the host and port the request thinks it's using. This method is useful for working with reverse HTTP proxies (e.g. bo
src/twisted/web/http.py:1590
↓ 22 callers
Method
tell
(self)
src/twisted/python/zipstream.py:173
↓ 21 callers
Method
append
(any)
src/twisted/trial/_asynctest.py:370
↓ 21 callers
Method
asBytesMode
Return this L{FilePath} in L{bytes}-mode. @param encoding: The encoding to use if coercing to L{bytes}. If none is given
src/twisted/python/filepath.py:878
↓ 21 callers
Method
assertNotEqual
(self, a: object, b: object)
src/twisted/test/test_randbytes.py:19
↓ 21 callers
Function
benchmark
Run all of the benchmarks registered in the benchmarkFuncs list
docs/core/benchmarks/deferreds.py:180
↓ 21 callers
Method
connectAndReceive
Takes a single L{H2Connection} object and connects it to a L{StringTransport} using a brand new L{FrameFactory}. @param conn
src/twisted/web/test/test_http2.py:476
↓ 21 callers
Method
dump
(self, format=crypto.FILETYPE_ASN1)
src/twisted/internet/_sslverify.py:693
↓ 21 callers
Method
getHost
Get my originally requesting transport's host. Don't rely on the 'transport' attribute, since Request objects may be copied
src/twisted/web/http.py:1580
↓ 21 callers
Function
isIPv6Address
Determine whether the given string represents an IPv6 address. @param addr: A string which may or may not be the hex representation
src/twisted/internet/abstract.py:573
↓ 21 callers
Method
listen
Do nothing.
src/twisted/internet/test/test_fakes.py:102
↓ 21 callers
Method
loadSampleHostsFile
Return a sample hosts file, with keys for www.twistedmatrix.com and divmod.com present.
src/twisted/conch/test/test_knownhosts.py:421
↓ 21 callers
Method
read
(self, max=None)
src/twisted/mail/test/test_smtp.py:846
↓ 21 callers
Method
render
(self, *a, **kw)
src/twisted/web/test/test_wsgi.py:278
↓ 21 callers
Method
repaint
(self)
src/twisted/conch/insults/window.py:55
↓ 21 callers
Method
requestReceived
Called when a request is sent to this channel. By default it delegates to self.request_<requestType>. If this function retur
src/twisted/conch/ssh/channel.py:154
↓ 21 callers
Method
sendMessage
(self, command, *parameter_list, **kw)
src/twisted/words/service.py:199
↓ 21 callers
Method
start
(self)
src/twisted/words/test/test_jabberxmlstream.py:810
↓ 21 callers
Method
startListening
Create and bind my socket, and begin listening on it. This must be called after creating a server to begin listening on the
src/twisted/pair/tuntap.py:267
↓ 21 callers
Method
startService
Start all monitored processes.
src/twisted/runner/procmon.py:294
↓ 21 callers
Method
stopService
See L{twisted.application.service.IService}.
src/twisted/application/test/test_service.py:106
↓ 20 callers
Method
_renderAndReturnReaderResult
(self, reader, content)
src/twisted/web/test/test_wsgi.py:903
↓ 20 callers
Method
addHostKey
Add a new L{HashedEntry} to the key database. Note that you still need to call L{KnownHostsFile.save} if you wish these chan
src/twisted/conch/client/knownhosts.py:505
↓ 20 callers
Method
cancel
Don't run my function later.
src/twisted/test/test_cooperator.py:26
↓ 20 callers
Method
deliverBody
Connect the L{BodyDestination} response body protocol to the response, and then simulate connection loss after ensuring that
src/twisted/web/test/test_newclient.py:1635
↓ 20 callers
Function
deterministicResolvingReactor
Create a reactor that will deterministically resolve all hostnames it is passed to the list of addresses given. @param reactor: An objec
src/twisted/internet/test/test_endpoints.py:1714
↓ 20 callers
Method
fail
()
src/twisted/internet/test/test_fdset.py:105
↓ 20 callers
Method
filePath
(self, content: bytes | None = None)
src/twisted/application/runner/test/test_pidfile.py:76
↓ 20 callers
Function
flattenString
Collate a string representation of C{root} into a single string. This is basically gluing L{flatten} to an L{io.BytesIO} and returning t
src/twisted/web/_flatten.py:465
↓ 20 callers
Function
formatEvent
(event: LogEvent)
src/twisted/logger/_file.py:74
↓ 20 callers
Function
framesFromBytes
Given a sequence of bytes, decodes them into frames. Note that this method should almost always be called only once, before making some
src/twisted/web/test/test_http2.py:258
↓ 20 callers
Method
getDelayedCalls
(self)
src/twisted/internet/test/test_base.py:65
↓ 20 callers
Method
isfile
(self)
src/twisted/python/zippath.py:158
↓ 20 callers
Method
listen
Begin listening with the given factory.
src/twisted/protocols/_sni.py:141
↓ 20 callers
Method
load
Read a shortcut file from disk.
src/twisted/python/shortcut.py:69
↓ 20 callers
Method
notifyFinish
Return a L{Deferred} which is called back with L{None} when the request is finished. This will probably only work if you haven't cal
src/twisted/web/test/requesthelper.py:324
↓ 20 callers
Method
parse
(self, buffer)
src/twisted/words/xish/domish.py:629
↓ 20 callers
Method
read
Fake C{os.read}: save action, and return C{readData} content. @param fd: The file descriptor to read. @param size: The maxi
src/twisted/test/test_process.py:1395
↓ 20 callers
Method
remoteForName
Returns an object from the remote name mapping. Note that this does not check the validity of the name, only creates a trans
src/twisted/spread/pb.py:820
↓ 20 callers
Method
requestReceived
(self, command=b"GET", path=b"/res", version=b"1.1")
src/twisted/web/test/test_wsgi.py:359
↓ 20 callers
Method
setsockopt
Setsockopt is not implemented. The method is provided since real sockets have it and some code expects it. No behavior of L
src/twisted/internet/test/test_fakes.py:76
↓ 19 callers
Method
_sendRequest
Send a request and return a deferred which waits for the result. @type msg: L{int} @param msg: The request type (e.g., C{FXP
src/twisted/conch/ssh/filetransfer.py:569
↓ 19 callers
Method
_test
Helper test method to test the resulting C{Deferred} of a L{MemCacheProtocol} command.
src/twisted/test/test_memcache.py:27
↓ 19 callers
Method
addHeader
(self, name, value)
src/twisted/protocols/sip.py:513
↓ 19 callers
Method
assertEqualBufferValue
A buffer is always bytes, but sometimes we need to compare it to a utf-8 unicode string @param buf: the buffer @type
src/twisted/words/test/test_irc.py:21
↓ 19 callers
Method
buildProtocol
(self, addr)
src/twisted/internet/test/test_endpoints.py:265
↓ 19 callers
Method
callback
(*a, **kw)
src/twisted/positioning/test/receiver.py:42
↓ 19 callers
Method
connectUNIX
Fake L{IReactorUNIX.connectUNIX}, that logs the call and returns an L{IConnector}.
src/twisted/internet/testing.py:780
↓ 19 callers
Method
copy
Return a copy of itself with the same headers set. @return: A new L{Headers}
src/twisted/web/http_headers.py:90
↓ 19 callers
Method
dataReceived
(self, data)
src/twisted/web/http.py:2356
↓ 19 callers
Method
dirname
(self)
src/twisted/python/zippath.py:193
↓ 19 callers
Method
flush
Pump until there is no more input or output or until L{stop} is called. This does not run any timers, so don't use it with any code t
src/twisted/spread/test/test_pb.py:76
↓ 19 callers
Method
fromFile
Load a key from a file. @param filename: The path to load key data from. @type type: L{str} or L{None} @param type:
src/twisted/conch/ssh/keys.py:152
↓ 19 callers
Method
listenUNIX
Fake L{IReactorUNIX.listenUNIX}, that logs the call and returns an L{IListeningPort}.
src/twisted/internet/testing.py:772
↓ 19 callers
Method
lowLevelRender
@param method: A C{str} giving the request method to use. @param version: A C{str} like C{'1.1'} giving the request version.
src/twisted/web/test/test_wsgi.py:201
↓ 19 callers
Method
matches
(self, elem)
src/twisted/words/xish/xpath.py:290
↓ 19 callers
Method
newConnection
Create and return a new endpoint which will try to create a new connection to an SSH server and run a command over it. It will also
src/twisted/conch/endpoints.py:563
↓ 19 callers
Method
parse
Parse a bytestring as a full PROXY protocol header. @param line: A bytestring that represents a valid HAProxy PROXY prot
src/twisted/protocols/haproxy/_v2parser.py:146
↓ 19 callers
Method
parseOptions
(self, *a, **kw)
src/twisted/test/test_usage.py:334
↓ 19 callers
Method
prepareRequest
Prepare a L{Request} which, when a request is received, captures the C{environ} and C{start_response} callable passed to a WSGI app.
src/twisted/web/test/test_wsgi.py:311
↓ 19 callers
Method
sendNegativeResponse
(self, tag=None, message=b"")
src/twisted/mail/imap4.py:1076
↓ 19 callers
Method
setblocking
(self, blocking: bool)
src/twisted/internet/test/test_fakes.py:46
↓ 19 callers
Method
write
Do nothing. @param bytes: data @type bytes: L{bytes}
src/twisted/python/log.py:675
↓ 18 callers
Function
_parseMbox
(name)
src/twisted/mail/imap4.py:4834
↓ 18 callers
Method
_response
Extracts the user's response, and returns a list of parsed lines. If messageType is defined, only messages of that type will be retur
src/twisted/words/test/test_service.py:209
↓ 18 callers
Method
_runAsUser
(self, f, *args, **kw)
src/twisted/conch/unix.py:143
↓ 18 callers
Method
addMailbox
Add a new mailbox to this account @type name: L{bytes} @param name: The name associated with this mailbox. It may not contai
src/twisted/mail/interfaces.py:838
↓ 18 callers
Method
addTimeout
Time out this L{Deferred} by scheduling it to be cancelled after C{timeout} seconds. The timeout encompasses all the callbac
src/twisted/internet/defer.py:759
↓ 18 callers
Method
addUser
Set a user's password. @param username: Name of the user. @type username: L{bytes} @param password: Password to ass
src/twisted/cred/checkers.py:128
↓ 18 callers
Function
connectedServerAndClient
Connect a client and server L{Broker} together with an L{IOPump} @param realm: realm to use, defaulting to a L{DummyRealm} @returns: a
src/twisted/spread/test/test_pb.py:232
↓ 18 callers
Method
createDirectory
Create the directory the L{FilePath} refers to. @see: L{makedirs} @raise OSError: If the directory cannot be created.
src/twisted/python/filepath.py:1604
↓ 18 callers
Method
data
Return the values of the public key as a dictionary. @rtype: L{dict}
src/twisted/conch/ssh/keys.py:1151
↓ 18 callers
Method
fail
Fire the deferred to indicate the task completed with a failure. @type err: L{Failure <failure.Failure>} @param err: The err
src/twisted/mail/maildir.py:423
↓ 18 callers
Method
failResponse
Send a response indicating failure. @type message: stringifyable L{object} @param message: An object whose string representa
src/twisted/mail/pop3.py:503
↓ 18 callers
Method
fileno
Raises a L{io.UnsupportedOperation} because L{LoggingFile} does not use a a file descriptor.
src/twisted/logger/_io.py:131
↓ 18 callers
Function
filter
(inp, out, writer=HTMLWriter)
src/twisted/python/htmlizer.py:111
↓ 18 callers
Method
finish
Record that the request is finished and callback and L{Deferred}s waiting for notification of this.
src/twisted/web/test/requesthelper.py:334
↓ 18 callers
Method
getFlags
Retrieve the flags associated with this message. @rtype: C{iterable} @return: The flags, represented as strings.
src/twisted/mail/interfaces.py:479
↓ 18 callers
Method
keystrokeReceived
(self, keyID, modifier)
src/twisted/conch/insults/window.py:81
↓ 18 callers
Method
listdir
(self)
src/twisted/python/zippath.py:164
↓ 18 callers
Method
loseConnection
(self)
src/twisted/conch/test/test_ssh.py:261
↓ 18 callers
Method
makeProducer
Make a L{StaticProducer} that will produce the body of this response. This method will also set the response code and Content-* head
src/twisted/web/static.py:586
↓ 18 callers
Function
observer
(logFile, *args, **kwargs)
src/twisted/test/test_twistd.py:1319
↓ 18 callers
Method
runTest
(self, name: str)
src/twisted/trial/test/test_deferred.py:107
↓ 18 callers
Method
sendEncoded
Send the encoded representation of the given object: @param obj: An object to encode and send. @raise BananaError: If the g
src/twisted/spread/banana.py:314
↓ 18 callers
Method
setNameForLocal
Store a special (string) ID for this object. This is how you specify a 'base' set of objects that the remote protocol can co
src/twisted/spread/pb.py:804
↓ 18 callers
Method
splitext
Return a value similar to that returned by C{os.path.splitext}.
src/twisted/python/zippath.py:181
← previous
next →
301–400 of 25,749, ranked by callers