MCPcopy Create free account

hub / github.com/twisted/twisted / functions

Functions25,749 in github.com/twisted/twisted

↓ 14 callersFunctionensureDeferred
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 callersMethodfail
(r: object)
src/twisted/test/test_defer.py:2785
↓ 14 callersMethodfetchSpecific
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 callersMethodforwardAndVerify
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 callersMethodgenerate
(cls, kind: int = crypto.TYPE_RSA, size: int = 2048)
src/twisted/internet/_sslverify.py:716
↓ 14 callersMethodget
(self, key: bytes)
src/twisted/persisted/dirdbm.py:229
↓ 14 callersMethodgetChallenge
(self)
src/twisted/cred/credentials.py:434
↓ 14 callersMethodhelper
(self, test: Callable[..., object], obj: _SupportsName)
src/twisted/internet/test/test_testing.py:447
↓ 14 callersMethodisEqualToNode
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 callersMethodisMacOSX
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 callersMethodkwargs
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 callersMethodloseConnection
Stub loseConnection because we are a transport.
src/twisted/words/test/test_xmlstream.py:23
↓ 14 callersMethodmakeURIString
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 callersFunctionpack
(sexp)
src/twisted/conch/ssh/sexpy.py:34
↓ 14 callersMethodparse
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 callersMethodputChild
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 callersMethodputChild
(self, path, child)
src/twisted/web/test/test_web.py:1207
↓ 14 callersFunctionreact
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 callersMethodregisterProducer
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 callersMethodreportCursorPosition
(self)
src/twisted/conch/insults/helper.py:416
↓ 14 callersMethodrequest
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 callersFunctionrunProtocolsWithReactor
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 callersMethodrunTrial
(self, *args: str)
src/twisted/trial/test/test_output.py:48
↓ 14 callersMethodsendLine
(self, line)
src/twisted/words/protocols/irc.py:273
↓ 14 callersMethodsendLine
(self, line)
src/twisted/words/protocols/irc.py:1274
↓ 14 callersMethodsetRawMode
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 callersMethodsign
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 callersMethodstartReading
Compatibility only, don't use. Call resumeProducing.
src/twisted/internet/_posixstdio.py:172
↓ 14 callersMethodstop
(result)
src/twisted/internet/test/test_tcp.py:2685
↓ 14 callersFunctiontest
(i)
docs/core/examples/testlogging.py:18
↓ 14 callersMethodunregisterProducer
Unregister the producer.
src/twisted/web/http.py:1137
↓ 14 callersMethodwrite
(self, bytes)
src/twisted/mail/test/test_imap.py:167
↓ 13 callersMethod__init__
(self, boxReceiver=None, locator=None)
src/twisted/protocols/amp.py:2547
↓ 13 callersMethod_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 callersMethod_fetch
(self, messages, useUID=0, **terms)
src/twisted/mail/imap4.py:4194
↓ 13 callersMethod_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 callersMethod_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 callersMethodaddProto
(self, num, proto)
src/twisted/pair/rawudp.py:29
↓ 13 callersMethodaddProto
(self, num, proto)
src/twisted/pair/ip.py:50
↓ 13 callersMethodaddUser
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 callersFunctionassertLogMessage
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 callersMethodassertTestRun
Run the given test and assert that the result matches the given expectations.
src/twisted/trial/_dist/test/test_workerreporter.py:43
↓ 13 callersMethodbuildProtocol
(self, connection)
src/twisted/words/protocols/irc.py:2885
↓ 13 callersMethodcheckDisconnected
Helper function to check if the transport disconnected.
src/twisted/conch/test/test_transport.py:1374
↓ 13 callersMethodconnectedServerAndClient
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 callersMethodcreateReactor
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 callersMethodcursorPosition
(self, x, y)
src/twisted/conch/insults/window.py:36
↓ 13 callersMethoddataReceived
(self, data: bytes)
src/twisted/protocols/haproxy/test/test_wrapper.py:38
↓ 13 callersMethodestablishClientAndServer
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 callersFunctioneventsFromJSONLogFile
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 callersMethodexecute
(ignoredResult: object)
src/twisted/internet/defer.py:2167
↓ 13 callersMethodexists
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 callersMethodfailuresHandled
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 callersMethodfireSystemEvent
See twisted.internet.interfaces.IReactorCore.fireSystemEvent.
src/twisted/internet/base.py:844
↓ 13 callersMethodfromPath
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 callersMethodgetFeature
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 callersMethodgetHost
Get host information from the transport.
src/twisted/web/test/test_proxy.py:133
↓ 13 callersFunctiongetModule
Retrieve a module from the system path.
src/twisted/python/modules.py:782
↓ 13 callersMethodgetRunner
(self)
src/twisted/trial/test/test_runner.py:322
↓ 13 callersFunctiongetThreadID
()
src/twisted/python/threadable.py:104
↓ 13 callersMethodgetTime
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 callersMethodgetfilesystemencoding
Return a fixed filesystem encoding. @return: A fixed value of "utf8".
src/twisted/test/test_process.py:1620
↓ 13 callersMethodgetpwuid
Return the user record corresponding to the given uid.
src/twisted/python/fakepwd.py:113
↓ 13 callersMethodlock
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 callersMethodlookupUser
(self, name)
src/twisted/words/service.py:1145
↓ 13 callersMethodmakeConnection
Make a connection to a transport and a server.
src/twisted/internet/interfaces.py:1966
↓ 13 callersMethodopen
(self, mode: Literal["r", "w"] = "r")
src/twisted/python/zippath.py:198
↓ 13 callersMethodopenChannel
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 callersFunctionoptionsForClientTLS
Create a L{client connection creator <IOpenSSLClientConnectionCreator>} for use with APIs such as L{SSL4ClientEndpoint <twisted.internet.
src/twisted/internet/_sslverify.py:1113
↓ 13 callersMethodpreauthChild
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 callersMethodprivateBlob
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 callersFunctionqual
Return full import path of a class.
src/twisted/python/reflect.py:351
↓ 13 callersMethodread
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 callersMethodregisterProducer
(self, producer, streaming)
src/twisted/protocols/ftp.py:533
↓ 13 callersMethodrender
(self, request)
src/twisted/web/test/test_static.py:265
↓ 13 callersMethodrequestAvatarId
(self, creds)
src/twisted/conch/test/test_userauth.py:196
↓ 13 callersMethodrequestReceived
(self, *args, **kwargs)
src/twisted/web/test/test_http2.py:323
↓ 13 callersMethodreset
Skip the next iteration and reset the timer. @since: 11.1
src/twisted/internet/task.py:211
↓ 13 callersMethodsave
Save this L{KnownHostsFile} to the path it was loaded from.
src/twisted/conch/client/knownhosts.py:528
↓ 13 callersFunctionsibpath
For finding files in twisted/trial/test
src/twisted/trial/test/test_script.py:40
↓ 13 callersMethodstart
Start the threadpool.
src/twisted/python/threadpool.py:171
↓ 13 callersMethodstopService
(self)
src/twisted/test/test_twistd.py:603
↓ 13 callersMethodstr
(self)
src/twisted/python/util.py:488
↓ 13 callersMethodtoStr
Fake toStr which returns dummyBytes. @return: dummyBytes
src/twisted/names/test/test_dns.py:4301
↓ 13 callersMethodverify
Verify the Message Authentication Code by checking that the packet sequence number is the same.
src/twisted/conch/test/test_transport.py:218
↓ 13 callersMethodwatch
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 callersMethodwrite
(self, data)
src/twisted/test/test_pcp.py:40
↓ 12 callersMethod__init__
(self, gravity=CENTER)
src/twisted/conch/insults/window.py:284
↓ 12 callersMethod_getLogPrefix
Override the normal prefix to include an annotation indicating this is a port for TLS connections.
src/twisted/internet/ssl.py:214
↓ 12 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_trivialTest
(self, inputLine, output)
src/twisted/conch/test/test_recvline.py:478
↓ 12 callersMethodacquire
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 callersMethodaddError
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 callersMethodaddExpectedFailure
(self, test, failure, todo=None)
src/twisted/trial/test/test_reporter.py:1393
↓ 12 callersMethodaddOnetimeObserver
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 callersMethodaddProto
(self, num, proto)
src/twisted/pair/ethernet.py:40
↓ 12 callersMethodasTextMode
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
← previousnext →501–600 of 25,749, ranked by callers