This appendix lists every built-in entry in Strato’s blocking function database: 61 entries across six categories. Users can extend this via [tool.strato.blocking] configuration (User Configuration ) or @blocking decorator (Annotations API ).
Qualified Name Help Text Notes
time.sleepUse asyncio.sleep() Blocks the event loop for the specified duration
Qualified Name Help Text Notes
requests.getUse aiohttp or httpx Synchronous HTTP GET request
requests.postUse aiohttp or httpx Synchronous HTTP POST request
requests.putUse aiohttp or httpx Synchronous HTTP PUT request
requests.deleteUse aiohttp or httpx Synchronous HTTP DELETE request
requests.patchUse aiohttp or httpx Synchronous HTTP PATCH request
requests.headUse aiohttp or httpx Synchronous HTTP HEAD request
requests.optionsUse aiohttp or httpx Synchronous HTTP OPTIONS request
requests.requestUse aiohttp or httpx Generic synchronous HTTP request
requests.Session.getUse aiohttp.ClientSession Session-based HTTP GET
requests.Session.postUse aiohttp.ClientSession Session-based HTTP POST
requests.Session.putUse aiohttp.ClientSession Session-based HTTP PUT
requests.Session.deleteUse aiohttp.ClientSession Session-based HTTP DELETE
requests.Session.patchUse aiohttp.ClientSession Session-based HTTP PATCH
requests.Session.headUse aiohttp.ClientSession Session-based HTTP HEAD
requests.Session.optionsUse aiohttp.ClientSession Session-based HTTP OPTIONS
requests.Session.requestUse aiohttp.ClientSession Generic session-based HTTP request
requests.Session.sendUse aiohttp.ClientSession Send prepared request via session
urllib.request.urlopenUse aiohttp Opens URL and reads response synchronously
http.client.HTTPConnection.requestUse aiohttp Low-level HTTP connection request
http.client.HTTPSConnection.requestUse aiohttp Low-level HTTPS connection request
socket.socket.connectUse asyncio streams Establishes socket connection
socket.socket.recvUse asyncio streams Receives data from socket
socket.socket.sendUse asyncio streams Sends data through socket
socket.socket.acceptUse asyncio.start_server() Accepts incoming socket connection
socket.socket.sendallUse asyncio streams Sends all data through socket
socket.socket.recvfromUse asyncio datagram Receives data from datagram socket
socket.create_connectionUse asyncio.open_connection() Creates and connects socket
Qualified Name Help Text Notes
builtins.openUse aiofiles.open() Opens file for reading or writing
io.openUse aiofiles.open() Alternative file opening interface
os.readUse aiofiles or run_in_executor Low-level file descriptor read
os.writeUse aiofiles or run_in_executor Low-level file descriptor write
os.fdopenUse aiofiles Opens file descriptor as file object
pathlib.Path.read_textUse aiofiles Reads entire file as text
pathlib.Path.read_bytesUse aiofiles Reads entire file as bytes
pathlib.Path.write_textUse aiofiles Writes text to file
pathlib.Path.write_bytesUse aiofiles Writes bytes to file
os.listdirUse run_in_executor Lists directory contents
os.scandirUse run_in_executor Scans directory with detailed info
os.statUse run_in_executor Gets file status information
os.path.existsUse run_in_executor Checks if path exists
os.path.isfileUse run_in_executor Checks if path is a file
os.path.isdirUse run_in_executor Checks if path is a directory
glob.globUse run_in_executor Finds files matching pattern
glob.iglobUse run_in_executor Iterator for files matching pattern
shutil.copyUse run_in_executor Copies file
shutil.moveUse run_in_executor Moves file or directory
shutil.rmtreeUse run_in_executor Recursively removes directory tree
Qualified Name Help Text Notes
subprocess.runUse asyncio.create_subprocess_exec() Runs command and waits for completion
subprocess.callUse asyncio.create_subprocess_exec() Runs command and returns exit code
subprocess.check_callUse asyncio.create_subprocess_exec() Runs command, raises on non-zero exit
subprocess.check_outputUse asyncio.create_subprocess_exec() Runs command and captures output
subprocess.Popen.waitUse asyncio.create_subprocess_exec() Waits for subprocess to complete
subprocess.Popen.communicateUse asyncio.create_subprocess_exec() Sends input and reads output from subprocess
os.systemUse asyncio.create_subprocess_shell() Executes shell command
os.popenUse asyncio.create_subprocess_shell() Opens pipe to/from shell command
Qualified Name Help Text Notes
psycopg2.connectUse asyncpg Establishes PostgreSQL connection
sqlite3.connectUse aiosqlite Establishes SQLite connection
pymysql.connectUse aiomysql Establishes MySQL connection
Qualified Name Help Text Notes
builtins.inputUse async input library or run_in_executor Waits for user input from stdin