Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python3.10 /
html /
_sources /
library /
[ HOME SHELL ]
Name
Size
Permission
Action
2to3.rst.txt
16.15
KB
-rw-r--r--
__future__.rst.txt
6
KB
-rw-r--r--
__main__.rst.txt
12.34
KB
-rw-r--r--
_thread.rst.txt
7.88
KB
-rw-r--r--
abc.rst.txt
12.19
KB
-rw-r--r--
aifc.rst.txt
7.48
KB
-rw-r--r--
allos.rst.txt
678
B
-rw-r--r--
archiving.rst.txt
440
B
-rw-r--r--
argparse.rst.txt
80.31
KB
-rw-r--r--
array.rst.txt
10.45
KB
-rw-r--r--
ast.rst.txt
75.95
KB
-rw-r--r--
asynchat.rst.txt
8.44
KB
-rw-r--r--
asyncio-api-index.rst.txt
4.61
KB
-rw-r--r--
asyncio-dev.rst.txt
7.31
KB
-rw-r--r--
asyncio-eventloop.rst.txt
59.23
KB
-rw-r--r--
asyncio-exceptions.rst.txt
1.7
KB
-rw-r--r--
asyncio-future.rst.txt
8.31
KB
-rw-r--r--
asyncio-llapi-index.rst.txt
14.06
KB
-rw-r--r--
asyncio-platforms.rst.txt
3.03
KB
-rw-r--r--
asyncio-policy.rst.txt
9.17
KB
-rw-r--r--
asyncio-protocol.rst.txt
31.55
KB
-rw-r--r--
asyncio-queue.rst.txt
5.5
KB
-rw-r--r--
asyncio-stream.rst.txt
14.88
KB
-rw-r--r--
asyncio-subprocess.rst.txt
11.4
KB
-rw-r--r--
asyncio-sync.rst.txt
8.84
KB
-rw-r--r--
asyncio-task.rst.txt
32.29
KB
-rw-r--r--
asyncio.rst.txt
2.63
KB
-rw-r--r--
asyncore.rst.txt
13.43
KB
-rw-r--r--
atexit.rst.txt
3.84
KB
-rw-r--r--
audioop.rst.txt
10.59
KB
-rw-r--r--
audit_events.rst.txt
2.29
KB
-rw-r--r--
base64.rst.txt
10.87
KB
-rw-r--r--
bdb.rst.txt
14.54
KB
-rw-r--r--
binary.rst.txt
654
B
-rw-r--r--
binascii.rst.txt
7.66
KB
-rw-r--r--
binhex.rst.txt
1.69
KB
-rw-r--r--
bisect.rst.txt
9.06
KB
-rw-r--r--
builtins.rst.txt
1.43
KB
-rw-r--r--
bz2.rst.txt
11.87
KB
-rw-r--r--
calendar.rst.txt
14.17
KB
-rw-r--r--
cgi.rst.txt
21.49
KB
-rw-r--r--
cgitb.rst.txt
3.75
KB
-rw-r--r--
chunk.rst.txt
5.1
KB
-rw-r--r--
cmath.rst.txt
9.42
KB
-rw-r--r--
cmd.rst.txt
13.6
KB
-rw-r--r--
code.rst.txt
7.64
KB
-rw-r--r--
codecs.rst.txt
75.37
KB
-rw-r--r--
codeop.rst.txt
3
KB
-rw-r--r--
collections.abc.rst.txt
16.73
KB
-rw-r--r--
collections.rst.txt
52.13
KB
-rw-r--r--
colorsys.rst.txt
1.77
KB
-rw-r--r--
compileall.rst.txt
13.45
KB
-rw-r--r--
concurrency.rst.txt
685
B
-rw-r--r--
concurrent.futures.rst.txt
20.76
KB
-rw-r--r--
concurrent.rst.txt
171
B
-rw-r--r--
configparser.rst.txt
49.91
KB
-rw-r--r--
constants.rst.txt
3.77
KB
-rw-r--r--
contextlib.rst.txt
34.35
KB
-rw-r--r--
contextvars.rst.txt
8.32
KB
-rw-r--r--
copy.rst.txt
3.39
KB
-rw-r--r--
copyreg.rst.txt
1.97
KB
-rw-r--r--
crypt.rst.txt
5.84
KB
-rw-r--r--
crypto.rst.txt
411
B
-rw-r--r--
csv.rst.txt
20.91
KB
-rw-r--r--
ctypes.rst.txt
90.63
KB
-rw-r--r--
curses.ascii.rst.txt
8.85
KB
-rw-r--r--
curses.panel.rst.txt
2.7
KB
-rw-r--r--
curses.rst.txt
77.03
KB
-rw-r--r--
custominterp.rst.txt
569
B
-rw-r--r--
dataclasses.rst.txt
29.22
KB
-rw-r--r--
datatypes.rst.txt
817
B
-rw-r--r--
datetime.rst.txt
101.93
KB
-rw-r--r--
dbm.rst.txt
15.05
KB
-rw-r--r--
debug.rst.txt
611
B
-rw-r--r--
decimal.rst.txt
76.21
KB
-rw-r--r--
development.rst.txt
719
B
-rw-r--r--
devmode.rst.txt
7.28
KB
-rw-r--r--
dialog.rst.txt
6.12
KB
-rw-r--r--
difflib.rst.txt
29.76
KB
-rw-r--r--
dis.rst.txt
35.33
KB
-rw-r--r--
distribution.rst.txt
452
B
-rw-r--r--
distutils.rst.txt
2.09
KB
-rw-r--r--
doctest.rst.txt
69.87
KB
-rw-r--r--
email.charset.rst.txt
7.83
KB
-rw-r--r--
email.compat32-message.rst.txt
32.89
KB
-rw-r--r--
email.contentmanager.rst.txt
8.9
KB
-rw-r--r--
email.encoders.rst.txt
2.92
KB
-rw-r--r--
email.errors.rst.txt
4.92
KB
-rw-r--r--
email.examples.rst.txt
1.87
KB
-rw-r--r--
email.generator.rst.txt
13.49
KB
-rw-r--r--
email.header.rst.txt
8.97
KB
-rw-r--r--
email.headerregistry.rst.txt
18.04
KB
-rw-r--r--
email.iterators.rst.txt
2.73
KB
-rw-r--r--
email.message.rst.txt
32.25
KB
-rw-r--r--
email.mime.rst.txt
11.45
KB
-rw-r--r--
email.parser.rst.txt
13.76
KB
-rw-r--r--
email.policy.rst.txt
27.03
KB
-rw-r--r--
email.rst.txt
6.63
KB
-rw-r--r--
email.utils.rst.txt
9.57
KB
-rw-r--r--
ensurepip.rst.txt
4.9
KB
-rw-r--r--
enum.rst.txt
35.96
KB
-rw-r--r--
errno.rst.txt
7.81
KB
-rw-r--r--
exceptions.rst.txt
29.86
KB
-rw-r--r--
faulthandler.rst.txt
6.51
KB
-rw-r--r--
fcntl.rst.txt
7.99
KB
-rw-r--r--
filecmp.rst.txt
5.89
KB
-rw-r--r--
fileformats.rst.txt
273
B
-rw-r--r--
fileinput.rst.txt
8.99
KB
-rw-r--r--
filesys.rst.txt
946
B
-rw-r--r--
fnmatch.rst.txt
3.31
KB
-rw-r--r--
fractions.rst.txt
6.2
KB
-rw-r--r--
frameworks.rst.txt
391
B
-rw-r--r--
ftplib.rst.txt
18.13
KB
-rw-r--r--
functional.rst.txt
365
B
-rw-r--r--
functions.rst.txt
84.5
KB
-rw-r--r--
functools.rst.txt
25.99
KB
-rw-r--r--
gc.rst.txt
11.16
KB
-rw-r--r--
getopt.rst.txt
6.4
KB
-rw-r--r--
getpass.rst.txt
1.84
KB
-rw-r--r--
gettext.rst.txt
27.35
KB
-rw-r--r--
glob.rst.txt
5.07
KB
-rw-r--r--
graphlib.rst.txt
8.56
KB
-rw-r--r--
grp.rst.txt
2.32
KB
-rw-r--r--
gzip.rst.txt
9.7
KB
-rw-r--r--
hashlib.rst.txt
27.32
KB
-rw-r--r--
heapq.rst.txt
13.59
KB
-rw-r--r--
hmac.rst.txt
4.93
KB
-rw-r--r--
html.entities.rst.txt
1.31
KB
-rw-r--r--
html.parser.rst.txt
11.02
KB
-rw-r--r--
html.rst.txt
1.27
KB
-rw-r--r--
http.client.rst.txt
20.86
KB
-rw-r--r--
http.cookiejar.rst.txt
27.68
KB
-rw-r--r--
http.cookies.rst.txt
8.78
KB
-rw-r--r--
http.rst.txt
7.61
KB
-rw-r--r--
http.server.rst.txt
19.68
KB
-rw-r--r--
i18n.rst.txt
408
B
-rw-r--r--
idle.rst.txt
38.83
KB
-rw-r--r--
imaplib.rst.txt
21.42
KB
-rw-r--r--
imghdr.rst.txt
3.01
KB
-rw-r--r--
imp.rst.txt
15.15
KB
-rw-r--r--
importlib.metadata.rst.txt
12.12
KB
-rw-r--r--
importlib.rst.txt
66.95
KB
-rw-r--r--
index.rst.txt
2.37
KB
-rw-r--r--
inspect.rst.txt
59.36
KB
-rw-r--r--
internet.rst.txt
923
B
-rw-r--r--
intro.rst.txt
2.95
KB
-rw-r--r--
io.rst.txt
44.14
KB
-rw-r--r--
ipaddress.rst.txt
36.99
KB
-rw-r--r--
ipc.rst.txt
643
B
-rw-r--r--
itertools.rst.txt
42.1
KB
-rw-r--r--
json.rst.txt
28.07
KB
-rw-r--r--
keyword.rst.txt
1.12
KB
-rw-r--r--
language.rst.txt
494
B
-rw-r--r--
linecache.rst.txt
2.49
KB
-rw-r--r--
locale.rst.txt
26.03
KB
-rw-r--r--
logging.config.rst.txt
36.69
KB
-rw-r--r--
logging.handlers.rst.txt
47.53
KB
-rw-r--r--
logging.rst.txt
66.77
KB
-rw-r--r--
lzma.rst.txt
16.95
KB
-rw-r--r--
mailbox.rst.txt
61.47
KB
-rw-r--r--
mailcap.rst.txt
4.43
KB
-rw-r--r--
markup.rst.txt
679
B
-rw-r--r--
marshal.rst.txt
5.35
KB
-rw-r--r--
math.rst.txt
21.01
KB
-rw-r--r--
mimetypes.rst.txt
9.96
KB
-rw-r--r--
mm.rst.txt
331
B
-rw-r--r--
mmap.rst.txt
13.41
KB
-rw-r--r--
modulefinder.rst.txt
3.16
KB
-rw-r--r--
modules.rst.txt
381
B
-rw-r--r--
msilib.rst.txt
18.51
KB
-rw-r--r--
msvcrt.rst.txt
4.5
KB
-rw-r--r--
multiprocessing.rst.txt
108.08
KB
-rw-r--r--
multiprocessing.shared_memory....
14.44
KB
-rw-r--r--
netdata.rst.txt
314
B
-rw-r--r--
netrc.rst.txt
3.32
KB
-rw-r--r--
nis.rst.txt
2.07
KB
-rw-r--r--
nntplib.rst.txt
21.25
KB
-rw-r--r--
numbers.rst.txt
8.09
KB
-rw-r--r--
numeric.rst.txt
696
B
-rw-r--r--
operator.rst.txt
18.84
KB
-rw-r--r--
optparse.rst.txt
75.3
KB
-rw-r--r--
os.path.rst.txt
17.4
KB
-rw-r--r--
os.rst.txt
168.21
KB
-rw-r--r--
ossaudiodev.rst.txt
17.56
KB
-rw-r--r--
pathlib.rst.txt
39.66
KB
-rw-r--r--
pdb.rst.txt
20.26
KB
-rw-r--r--
persistence.rst.txt
591
B
-rw-r--r--
pickle.rst.txt
46.52
KB
-rw-r--r--
pickletools.rst.txt
3.64
KB
-rw-r--r--
pipes.rst.txt
2.72
KB
-rw-r--r--
pkgutil.rst.txt
10.26
KB
-rw-r--r--
platform.rst.txt
9.7
KB
-rw-r--r--
plistlib.rst.txt
5.32
KB
-rw-r--r--
poplib.rst.txt
8.98
KB
-rw-r--r--
posix.rst.txt
3.52
KB
-rw-r--r--
pprint.rst.txt
16.34
KB
-rw-r--r--
profile.rst.txt
29.55
KB
-rw-r--r--
pty.rst.txt
4.5
KB
-rw-r--r--
pwd.rst.txt
2.67
KB
-rw-r--r--
py_compile.rst.txt
6.52
KB
-rw-r--r--
pyclbr.rst.txt
4.45
KB
-rw-r--r--
pydoc.rst.txt
5.01
KB
-rw-r--r--
pyexpat.rst.txt
27.95
KB
-rw-r--r--
python.rst.txt
480
B
-rw-r--r--
queue.rst.txt
10
KB
-rw-r--r--
quopri.rst.txt
2.51
KB
-rw-r--r--
random.rst.txt
22.98
KB
-rw-r--r--
re.rst.txt
68.48
KB
-rw-r--r--
readline.rst.txt
12.13
KB
-rw-r--r--
reprlib.rst.txt
5.12
KB
-rw-r--r--
resource.rst.txt
13
KB
-rw-r--r--
rlcompleter.rst.txt
2.24
KB
-rw-r--r--
runpy.rst.txt
8.09
KB
-rw-r--r--
sched.rst.txt
5.05
KB
-rw-r--r--
secrets.rst.txt
5.96
KB
-rw-r--r--
security_warnings.rst.txt
1.56
KB
-rw-r--r--
select.rst.txt
27.78
KB
-rw-r--r--
selectors.rst.txt
8.72
KB
-rw-r--r--
shelve.rst.txt
8.6
KB
-rw-r--r--
shlex.rst.txt
17.62
KB
-rw-r--r--
shutil.rst.txt
31.13
KB
-rw-r--r--
signal.rst.txt
25.12
KB
-rw-r--r--
site.rst.txt
10.38
KB
-rw-r--r--
smtpd.rst.txt
10.79
KB
-rw-r--r--
smtplib.rst.txt
23.66
KB
-rw-r--r--
sndhdr.rst.txt
2.09
KB
-rw-r--r--
socket.rst.txt
77.52
KB
-rw-r--r--
socketserver.rst.txt
24.01
KB
-rw-r--r--
spwd.rst.txt
3.03
KB
-rw-r--r--
sqlite3.rst.txt
66.94
KB
-rw-r--r--
ssl.rst.txt
104.53
KB
-rw-r--r--
stat.rst.txt
9.89
KB
-rw-r--r--
statistics.rst.txt
35.59
KB
-rw-r--r--
stdtypes.rst.txt
205.7
KB
-rw-r--r--
string.rst.txt
38.87
KB
-rw-r--r--
stringprep.rst.txt
4.18
KB
-rw-r--r--
struct.rst.txt
24.29
KB
-rw-r--r--
subprocess.rst.txt
57.99
KB
-rw-r--r--
sunau.rst.txt
7.24
KB
-rw-r--r--
superseded.rst.txt
561
B
-rw-r--r--
symtable.rst.txt
5.14
KB
-rw-r--r--
sys.rst.txt
76.16
KB
-rw-r--r--
sysconfig.rst.txt
9.7
KB
-rw-r--r--
syslog.rst.txt
4.55
KB
-rw-r--r--
tabnanny.rst.txt
1.96
KB
-rw-r--r--
tarfile.rst.txt
46.93
KB
-rw-r--r--
telnetlib.rst.txt
8.03
KB
-rw-r--r--
tempfile.rst.txt
15.69
KB
-rw-r--r--
termios.rst.txt
3.66
KB
-rw-r--r--
test.rst.txt
54.87
KB
-rw-r--r--
text.rst.txt
584
B
-rw-r--r--
textwrap.rst.txt
11.18
KB
-rw-r--r--
threading.rst.txt
42.74
KB
-rw-r--r--
time.rst.txt
36.47
KB
-rw-r--r--
timeit.rst.txt
13.32
KB
-rw-r--r--
tk.rst.txt
1.6
KB
-rw-r--r--
tkinter.colorchooser.rst.txt
906
B
-rw-r--r--
tkinter.dnd.rst.txt
2.07
KB
-rw-r--r--
tkinter.font.rst.txt
2.91
KB
-rw-r--r--
tkinter.messagebox.rst.txt
1.27
KB
-rw-r--r--
tkinter.rst.txt
40.8
KB
-rw-r--r--
tkinter.scrolledtext.rst.txt
1.18
KB
-rw-r--r--
tkinter.tix.rst.txt
21.59
KB
-rw-r--r--
tkinter.ttk.rst.txt
61.02
KB
-rw-r--r--
token.rst.txt
2.7
KB
-rw-r--r--
tokenize.rst.txt
10.24
KB
-rw-r--r--
trace.rst.txt
6.82
KB
-rw-r--r--
traceback.rst.txt
18.93
KB
-rw-r--r--
tracemalloc.rst.txt
24.96
KB
-rw-r--r--
tty.rst.txt
1.07
KB
-rw-r--r--
turtle.rst.txt
72.59
KB
-rw-r--r--
types.rst.txt
14.9
KB
-rw-r--r--
typing.rst.txt
77.48
KB
-rw-r--r--
unicodedata.rst.txt
5.83
KB
-rw-r--r--
unittest.mock-examples.rst.txt
47.14
KB
-rw-r--r--
unittest.mock.rst.txt
97.32
KB
-rw-r--r--
unittest.rst.txt
99.8
KB
-rw-r--r--
unix.rst.txt
397
B
-rw-r--r--
urllib.error.rst.txt
2.15
KB
-rw-r--r--
urllib.parse.rst.txt
32.65
KB
-rw-r--r--
urllib.request.rst.txt
59.94
KB
-rw-r--r--
urllib.robotparser.rst.txt
3.19
KB
-rw-r--r--
urllib.rst.txt
466
B
-rw-r--r--
uu.rst.txt
2.67
KB
-rw-r--r--
uuid.rst.txt
9.95
KB
-rw-r--r--
venv.rst.txt
25.52
KB
-rw-r--r--
warnings.rst.txt
23.71
KB
-rw-r--r--
wave.rst.txt
6.68
KB
-rw-r--r--
weakref.rst.txt
21.22
KB
-rw-r--r--
webbrowser.rst.txt
9.83
KB
-rw-r--r--
windows.rst.txt
258
B
-rw-r--r--
winreg.rst.txt
25.18
KB
-rw-r--r--
winsound.rst.txt
5.01
KB
-rw-r--r--
wsgiref.rst.txt
32.61
KB
-rw-r--r--
xdrlib.rst.txt
8.02
KB
-rw-r--r--
xml.dom.minidom.rst.txt
11
KB
-rw-r--r--
xml.dom.pulldom.rst.txt
5.16
KB
-rw-r--r--
xml.dom.rst.txt
38.62
KB
-rw-r--r--
xml.etree.elementtree.rst.txt
56.91
KB
-rw-r--r--
xml.rst.txt
5.79
KB
-rw-r--r--
xml.sax.handler.rst.txt
16.43
KB
-rw-r--r--
xml.sax.reader.rst.txt
11.97
KB
-rw-r--r--
xml.sax.rst.txt
7.09
KB
-rw-r--r--
xml.sax.utils.rst.txt
3.81
KB
-rw-r--r--
xmlrpc.client.rst.txt
22.52
KB
-rw-r--r--
xmlrpc.rst.txt
475
B
-rw-r--r--
xmlrpc.server.rst.txt
16.25
KB
-rw-r--r--
zipapp.rst.txt
17.85
KB
-rw-r--r--
zipfile.rst.txt
29.76
KB
-rw-r--r--
zipimport.rst.txt
6.79
KB
-rw-r--r--
zlib.rst.txt
13.83
KB
-rw-r--r--
zoneinfo.rst.txt
15.66
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : asyncio-llapi-index.rst.txt
.. currentmodule:: asyncio =================== Low-level API Index =================== This page lists all low-level asyncio APIs. Obtaining the Event Loop ======================== .. list-table:: :widths: 50 50 :class: full-width-table * - :func:`asyncio.get_running_loop` - The **preferred** function to get the running event loop. * - :func:`asyncio.get_event_loop` - Get an event loop instance (running or current via the current policy). * - :func:`asyncio.set_event_loop` - Set the event loop as current via the current policy. * - :func:`asyncio.new_event_loop` - Create a new event loop. .. rubric:: Examples * :ref:`Using asyncio.get_running_loop() <asyncio_example_future>`. Event Loop Methods ================== See also the main documentation section about the :ref:`asyncio-event-loop-methods`. .. rubric:: Lifecycle .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.run_until_complete` - Run a Future/Task/awaitable until complete. * - :meth:`loop.run_forever` - Run the event loop forever. * - :meth:`loop.stop` - Stop the event loop. * - :meth:`loop.close` - Close the event loop. * - :meth:`loop.is_running()` - Return ``True`` if the event loop is running. * - :meth:`loop.is_closed()` - Return ``True`` if the event loop is closed. * - ``await`` :meth:`loop.shutdown_asyncgens` - Close asynchronous generators. .. rubric:: Debugging .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.set_debug` - Enable or disable the debug mode. * - :meth:`loop.get_debug` - Get the current debug mode. .. rubric:: Scheduling Callbacks .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.call_soon` - Invoke a callback soon. * - :meth:`loop.call_soon_threadsafe` - A thread-safe variant of :meth:`loop.call_soon`. * - :meth:`loop.call_later` - Invoke a callback *after* the given time. * - :meth:`loop.call_at` - Invoke a callback *at* the given time. .. rubric:: Thread/Process Pool .. list-table:: :widths: 50 50 :class: full-width-table * - ``await`` :meth:`loop.run_in_executor` - Run a CPU-bound or other blocking function in a :mod:`concurrent.futures` executor. * - :meth:`loop.set_default_executor` - Set the default executor for :meth:`loop.run_in_executor`. .. rubric:: Tasks and Futures .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.create_future` - Create a :class:`Future` object. * - :meth:`loop.create_task` - Schedule coroutine as a :class:`Task`. * - :meth:`loop.set_task_factory` - Set a factory used by :meth:`loop.create_task` to create :class:`Tasks <Task>`. * - :meth:`loop.get_task_factory` - Get the factory :meth:`loop.create_task` uses to create :class:`Tasks <Task>`. .. rubric:: DNS .. list-table:: :widths: 50 50 :class: full-width-table * - ``await`` :meth:`loop.getaddrinfo` - Asynchronous version of :meth:`socket.getaddrinfo`. * - ``await`` :meth:`loop.getnameinfo` - Asynchronous version of :meth:`socket.getnameinfo`. .. rubric:: Networking and IPC .. list-table:: :widths: 50 50 :class: full-width-table * - ``await`` :meth:`loop.create_connection` - Open a TCP connection. * - ``await`` :meth:`loop.create_server` - Create a TCP server. * - ``await`` :meth:`loop.create_unix_connection` - Open a Unix socket connection. * - ``await`` :meth:`loop.create_unix_server` - Create a Unix socket server. * - ``await`` :meth:`loop.connect_accepted_socket` - Wrap a :class:`~socket.socket` into a ``(transport, protocol)`` pair. * - ``await`` :meth:`loop.create_datagram_endpoint` - Open a datagram (UDP) connection. * - ``await`` :meth:`loop.sendfile` - Send a file over a transport. * - ``await`` :meth:`loop.start_tls` - Upgrade an existing connection to TLS. * - ``await`` :meth:`loop.connect_read_pipe` - Wrap a read end of a pipe into a ``(transport, protocol)`` pair. * - ``await`` :meth:`loop.connect_write_pipe` - Wrap a write end of a pipe into a ``(transport, protocol)`` pair. .. rubric:: Sockets .. list-table:: :widths: 50 50 :class: full-width-table * - ``await`` :meth:`loop.sock_recv` - Receive data from the :class:`~socket.socket`. * - ``await`` :meth:`loop.sock_recv_into` - Receive data from the :class:`~socket.socket` into a buffer. * - ``await`` :meth:`loop.sock_sendall` - Send data to the :class:`~socket.socket`. * - ``await`` :meth:`loop.sock_connect` - Connect the :class:`~socket.socket`. * - ``await`` :meth:`loop.sock_accept` - Accept a :class:`~socket.socket` connection. * - ``await`` :meth:`loop.sock_sendfile` - Send a file over the :class:`~socket.socket`. * - :meth:`loop.add_reader` - Start watching a file descriptor for read availability. * - :meth:`loop.remove_reader` - Stop watching a file descriptor for read availability. * - :meth:`loop.add_writer` - Start watching a file descriptor for write availability. * - :meth:`loop.remove_writer` - Stop watching a file descriptor for write availability. .. rubric:: Unix Signals .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.add_signal_handler` - Add a handler for a :mod:`signal`. * - :meth:`loop.remove_signal_handler` - Remove a handler for a :mod:`signal`. .. rubric:: Subprocesses .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.subprocess_exec` - Spawn a subprocess. * - :meth:`loop.subprocess_shell` - Spawn a subprocess from a shell command. .. rubric:: Error Handling .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`loop.call_exception_handler` - Call the exception handler. * - :meth:`loop.set_exception_handler` - Set a new exception handler. * - :meth:`loop.get_exception_handler` - Get the current exception handler. * - :meth:`loop.default_exception_handler` - The default exception handler implementation. .. rubric:: Examples * :ref:`Using asyncio.get_event_loop() and loop.run_forever() <asyncio_example_lowlevel_helloworld>`. * :ref:`Using loop.call_later() <asyncio_example_call_later>`. * Using ``loop.create_connection()`` to implement :ref:`an echo-client <asyncio_example_tcp_echo_client_protocol>`. * Using ``loop.create_connection()`` to :ref:`connect a socket <asyncio_example_create_connection>`. * :ref:`Using add_reader() to watch an FD for read events <asyncio_example_watch_fd>`. * :ref:`Using loop.add_signal_handler() <asyncio_example_unix_signals>`. * :ref:`Using loop.subprocess_exec() <asyncio_example_subprocess_proto>`. Transports ========== All transports implement the following methods: .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`transport.close() <BaseTransport.close>` - Close the transport. * - :meth:`transport.is_closing() <BaseTransport.is_closing>` - Return ``True`` if the transport is closing or is closed. * - :meth:`transport.get_extra_info() <BaseTransport.get_extra_info>` - Request for information about the transport. * - :meth:`transport.set_protocol() <BaseTransport.set_protocol>` - Set a new protocol. * - :meth:`transport.get_protocol() <BaseTransport.get_protocol>` - Return the current protocol. Transports that can receive data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_read_pipe`, etc: .. rubric:: Read Transports .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`transport.is_reading() <ReadTransport.is_reading>` - Return ``True`` if the transport is receiving. * - :meth:`transport.pause_reading() <ReadTransport.pause_reading>` - Pause receiving. * - :meth:`transport.resume_reading() <ReadTransport.resume_reading>` - Resume receiving. Transports that can Send data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_write_pipe`, etc: .. rubric:: Write Transports .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`transport.write() <WriteTransport.write>` - Write data to the transport. * - :meth:`transport.writelines() <WriteTransport.writelines>` - Write buffers to the transport. * - :meth:`transport.can_write_eof() <WriteTransport.can_write_eof>` - Return :const:`True` if the transport supports sending EOF. * - :meth:`transport.write_eof() <WriteTransport.write_eof>` - Close and send EOF after flushing buffered data. * - :meth:`transport.abort() <WriteTransport.abort>` - Close the transport immediately. * - :meth:`transport.get_write_buffer_size() <WriteTransport.get_write_buffer_size>` - Return the current size of the output buffer. * - :meth:`transport.get_write_buffer_limits() <WriteTransport.get_write_buffer_limits>` - Return high and low water marks for write flow control. * - :meth:`transport.set_write_buffer_limits() <WriteTransport.set_write_buffer_limits>` - Set new high and low water marks for write flow control. Transports returned by :meth:`loop.create_datagram_endpoint`: .. rubric:: Datagram Transports .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`transport.sendto() <DatagramTransport.sendto>` - Send data to the remote peer. * - :meth:`transport.abort() <DatagramTransport.abort>` - Close the transport immediately. Low-level transport abstraction over subprocesses. Returned by :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell`: .. rubric:: Subprocess Transports .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`transport.get_pid() <SubprocessTransport.get_pid>` - Return the subprocess process id. * - :meth:`transport.get_pipe_transport() <SubprocessTransport.get_pipe_transport>` - Return the transport for the requested communication pipe (*stdin*, *stdout*, or *stderr*). * - :meth:`transport.get_returncode() <SubprocessTransport.get_returncode>` - Return the subprocess return code. * - :meth:`transport.kill() <SubprocessTransport.kill>` - Kill the subprocess. * - :meth:`transport.send_signal() <SubprocessTransport.send_signal>` - Send a signal to the subprocess. * - :meth:`transport.terminate() <SubprocessTransport.terminate>` - Stop the subprocess. * - :meth:`transport.close() <SubprocessTransport.close>` - Kill the subprocess and close all pipes. Protocols ========= Protocol classes can implement the following **callback methods**: .. list-table:: :widths: 50 50 :class: full-width-table * - ``callback`` :meth:`connection_made() <BaseProtocol.connection_made>` - Called when a connection is made. * - ``callback`` :meth:`connection_lost() <BaseProtocol.connection_lost>` - Called when the connection is lost or closed. * - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>` - Called when the transport's buffer goes over the high water mark. * - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>` - Called when the transport's buffer drains below the low water mark. .. rubric:: Streaming Protocols (TCP, Unix Sockets, Pipes) .. list-table:: :widths: 50 50 :class: full-width-table * - ``callback`` :meth:`data_received() <Protocol.data_received>` - Called when some data is received. * - ``callback`` :meth:`eof_received() <Protocol.eof_received>` - Called when an EOF is received. .. rubric:: Buffered Streaming Protocols .. list-table:: :widths: 50 50 :class: full-width-table * - ``callback`` :meth:`get_buffer() <BufferedProtocol.get_buffer>` - Called to allocate a new receive buffer. * - ``callback`` :meth:`buffer_updated() <BufferedProtocol.buffer_updated>` - Called when the buffer was updated with the received data. * - ``callback`` :meth:`eof_received() <BufferedProtocol.eof_received>` - Called when an EOF is received. .. rubric:: Datagram Protocols .. list-table:: :widths: 50 50 :class: full-width-table * - ``callback`` :meth:`datagram_received() <DatagramProtocol.datagram_received>` - Called when a datagram is received. * - ``callback`` :meth:`error_received() <DatagramProtocol.error_received>` - Called when a previous send or receive operation raises an :class:`OSError`. .. rubric:: Subprocess Protocols .. list-table:: :widths: 50 50 :class: full-width-table * - ``callback`` :meth:`pipe_data_received() <SubprocessProtocol.pipe_data_received>` - Called when the child process writes data into its *stdout* or *stderr* pipe. * - ``callback`` :meth:`pipe_connection_lost() <SubprocessProtocol.pipe_connection_lost>` - Called when one of the pipes communicating with the child process is closed. * - ``callback`` :meth:`process_exited() <SubprocessProtocol.process_exited>` - Called when the child process has exited. Event Loop Policies =================== Policies is a low-level mechanism to alter the behavior of functions like :func:`asyncio.get_event_loop`. See also the main :ref:`policies section <asyncio-policies>` for more details. .. rubric:: Accessing Policies .. list-table:: :widths: 50 50 :class: full-width-table * - :meth:`asyncio.get_event_loop_policy` - Return the current process-wide policy. * - :meth:`asyncio.set_event_loop_policy` - Set a new process-wide policy. * - :class:`AbstractEventLoopPolicy` - Base class for policy objects.
Close