API reference¶
Functional Areas¶
This section of the document groups gevent APIs by functional area (it may not be complete). For a complete alphabetical listing by module, see Module Listing.
High-level concepts¶
Networking interfaces¶
Synchronization primitives (locks, queues, events)¶
Low-level details¶
Module Listing¶
This section of the document groups gevent APIs by module.
gevent
– common functionsgevent.backdoor
– Interactive greenlet-based network console that can be used in any processgevent.baseserver
– Base class for implementing serversgevent.builtins
– gevent friendly implementations of builtin functionsgevent.contextvars
– Cooperativecontextvars
gevent.core
- (deprecated) event loop abstractiongevent.event
– Notifications of multiple listenersgevent.events
– Publish/subscribe event infrastructuregevent.exceptions
– Exceptionsgevent.fileobject
– Wrappers to make file-like objects cooperativegevent.hub
- The Event Loop and the Hubgevent.local
– Greenlet-local objectsgevent.lock
– Locking primitivesgevent.monkey
– Make the standard library cooperativegevent.os
– Low-level operating system functions fromos
gevent.pool
– Managing greenlets in a groupgevent.pywsgi
– A pure-Python, gevent-friendly WSGI servergevent.queue
– Synchronized queuesgevent.resolver.ares
– c-ares based hostname resolvergevent.resolver.blocking
– Non-cooperative resolvergevent.resolver.dnspython
– Pure Python hostname resolvergevent.resolver.thread
– thread based hostname resolvergevent.select
– Waiting for I/O completiongevent.selectors
– High-level IO Multiplexinggevent.server
– TCP/SSL servergevent.signal
– Cooperative implementation of special cases ofsignal.signal()
gevent.socket
– Cooperative low-level networking interfacegevent.ssl
– Secure Sockets Layer (SSL/TLS) modulegevent.subprocess
– Cooperativesubprocess
modulegevent.thread
– Implementation of the standardthread
module that spawns greenletsgevent.threading
– Implementation of the standardthreading
using greenletsgevent.threadpool
- A pool of native threadsgevent.time
– Makes sleep gevent awaregevent.util
– Low-level utilities
Deprecated Modules¶
These modules are deprecated and should not be used in new code.
Examples¶
- Examples
- Example concurrent_download.py
- Example dns_mass_resolve.py
- Example echoserver.py
- Example geventsendfile.py
- Example portforwarder.py
- Example processes.py
- Example psycopg2_pool.py
- Example threadpool.py
- Example udp_client.py
- Example udp_server.py
- Example unixsocket_client.py
- Example unixsocket_server.py
- Example webproxy.py
- Example webpy.py
- Example wsgiserver.py
- Example wsgiserver_ssl.py