Python SDK Reference
Taint analysis for Python applications. Supports Flask, Django, FastAPI, and standard library sources/sinks.
pip install codepathfinderfrom codepathfinder import calls, flows...Web Frameworks
30Flask, Django, FastAPI request sources and response sinks
PyCeleryCelery is a distributed task queue. Celery(broker=..., backend=...) configures brokers — findings when broker URL has insecure defaults (redis:// without TLS, amqp:// without TLS). @task decorators accept arbitrary user-controlled args via the queue.
PyCgiThe cgi module (deprecated in 3.11, removed in 3.13). cgi.FieldStorage collects form data for CGI scripts — each field value is a source. Any new code should not use cgi.
PyCgitbPython stdlib module — cgitb. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyChannelsThird-party Python package module — channels. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Command Execution
10subprocess, os — command injection sinks
PyCfficffi calls C libraries without writing a C extension. FFI.dlopen() loads a shared library at runtime — code-execution sink on user-controlled path. FFI.cdef parses C declarations — neutral unless the definitions are user-controlled.
PyCtypesThe ctypes module for calling C libraries. LoadLibrary / CDLL on user-controlled paths loads arbitrary code — code-execution sink. String pointer operations can also be memory-safety findings.
PyDockerThe docker SDK. DockerClient.containers.run with privileged=True is a container-escape finding. volumes mounting /var/run/docker.sock into the container grants full Docker daemon access.
PyFcntlPython stdlib module — fcntl. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Databases
12sqlite3, psycopg2, pymongo, redis — SQL and NoSQL sinks
PyHdbcliThird-party Python package module — hdbcli. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyIbmDbThird-party Python package module — ibm_db. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyLdap3ldap3 is a pure-Python LDAP client. Connection.search() accepts a search_filter — LDAP injection sink when the filter is built from user input without escaping. Use ldap3.utils.conv.escape_filter_chars() for safe construction.
PyMysqlDbMySQLdb (mysqlclient) is a C-extension MySQL driver. Cursor.execute() is an SQL injection sink when the query is built without %s placeholders.
Search, filter by role, and find FQNs in the reference browser
Deserialization
21pickle, marshal, yaml — unsafe deserialization
PyAstThe ast module exposes Python's abstract syntax tree. ast.literal_eval is a safe evaluator for literals only. The builtins eval() and exec() execute arbitrary Python code — RCE sinks on user input. compile() produces code objects that reach exec().
PyCsvThe csv module. csv.writer + writerow on user-controlled cells produces CSV-formula injection when the receiver opens the CSV in Excel (cells starting with =, +, -, @ are interpreted as formulas). No stdlib sanitizer — prefix with a tab or apostrophe.
PyDbmThe dbm family (dbm.gnu, dbm.ndbm, dbm.dumb). dbm.open() on untrusted files reads a DBM-format database. dbm.dumb is pickle-like and unsafe on untrusted input.
PyDefusedXmldefusedxml is the hardened XML parser suite. It wraps xml.etree, xml.sax, xml.dom, lxml etc. with external-entity resolution disabled. Using defusedxml counterparts is the recommended sanitizer for XML sources.
Search, filter by role, and find FQNs in the reference browser
HTTP Clients
31requests, httpx, urllib — SSRF sinks
PyAiohttpaiohttp provides async HTTP client and server. ClientSession.get / post and the top-level request() are SSRF sinks on user-controlled URLs. aiohttp.web request handlers expose sources via request.query, request.post, request.json.
PyAwsXraySdkThird-party Python package module — aws_xray_sdk. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBoto3boto3 is the AWS SDK for Python. client('s3').get_object(...) and similar operations commonly ingest user input into bucket / key names — SSRF-like vectors through S3 URLs and IAM misconfiguration. Covering for rule writers that check AWS-specific patterns.
PyEmailThe email package. email.message.EmailMessage assembly with user-controlled Subject, To, From, or body is an email-header-injection sink (CRLF in header values can inject extra headers). email.parser handles incoming messages — sources of user content.
Search, filter by role, and find FQNs in the reference browser
File System
14os.path, tempfile, pathlib — path traversal and temp file handling
PyAiofilesaiofiles provides async file I/O. aiofiles.open() is a path-traversal sink when the path is user-controlled (same as built-in open).
PyConfigparserThe configparser module reads INI-style config files. Values read via get() are sources when the config file is user-supplied. The module itself has no injection sinks of its own.
PyDockerfileParsedockerfile_parse parses Dockerfiles. Returned structures reflect user-controlled file content. Usually a source for linting rules, not a sink.
PyFileinputPython stdlib module — fileinput. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Archives
9tarfile, zipfile — archive extraction (zip slip, bombs)
PyBz2Python stdlib module — bz2. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyGzipPython stdlib module — gzip. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyLzmaPython stdlib module — lzma. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyTarfileThe tarfile module. extractall() and extract() follow archive entry paths as-is — path-traversal sink (zip slip) when the archive is user-supplied and extractall's filter= argument is not set to a safe filter. Python 3.12 changed the default to 'data'.
Search, filter by role, and find FQNs in the reference browser
Cryptography
23hashlib, hmac, ssl, secrets — weak crypto detection
PyAuth0Third-party Python package module — auth0. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAuthlibAuthlib is a comprehensive OAuth / OpenID / JWT library. JsonWebToken.decode() and the OAuth client Client.parse_request_body_response track access-token flows.
PyCryptThe crypt module (deprecated in 3.11, removed in 3.13). crypt.crypt() wraps the Unix crypt(3) call. Most default methods are weak (DES, MD5). Use passlib or hashlib.scrypt / pbkdf2_hmac instead.
PyCryptographyThe cryptography package provides recipes (Fernet) and primitives (hazmat). Fernet is the recommended symmetric encryption helper. Findings arise when hazmat primitives are used with obsolete algorithms (MD5, DES, RC4) or ECB mode.
Search, filter by role, and find FQNs in the reference browser
Templating
11jinja2, string.Template — SSTI and XSS sinks
PyBleachbleach is an HTML sanitizer library. bleach.clean() strips dangerous tags and attributes — sanitizer for XSS flows. bleach.linkify() is also safe.
PyChevronThird-party Python package module — chevron. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyDocutilsThird-party Python package module — docutils. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyFpdfThird-party Python package module — fpdf. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Language Features
81Python language primitives: typing, collections, abc, functools
PyAbcPython stdlib module — abc. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyArrayPython stdlib module — array. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAtexitPython stdlib module — atexit. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBisectPython stdlib module — bisect. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Concurrency
8asyncio, threading, multiprocessing, queue
PyAsynchatPython stdlib module — asynchat. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAsyncioPython stdlib module — asyncio. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAsyncorePython stdlib module — asyncore. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyConcurrentPython stdlib module — concurrent. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Date & Time
21datetime, time, zoneinfo, dateutil
PyCalendarPython stdlib module — calendar. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyConvertdateThird-party Python package module — convertdate. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyCroniterThird-party Python package module — croniter. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyDateparserDataThird-party Python package module — dateparser_data. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
I/O & Encoding
28io streams, base64, binascii, plistlib
PyAifcPython stdlib module — aifc. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAudioopPython stdlib module — audioop. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBase64Python stdlib module — base64. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBinaryornotThird-party Python package module — binaryornot. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
CLI & Terminal
19argparse, click, colorama, tqdm
PyArgparsePython stdlib module — argparse. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyCapturerThird-party Python package module — capturer. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyClickThird-party Python package module — click. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyCmdPython stdlib module — cmd. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
GUI
9tkinter, curses, turtle
PyCursesPython stdlib module — curses. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyJackThird-party Python package module — jack. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyPyaudioThird-party Python package module — pyaudio. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyPyiSplashThird-party Python package module — pyi_splash. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Testing
8unittest, doctest, mock, pytest tooling
PyAssertpyThird-party Python package module — assertpy. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAtherisThird-party Python package module — atheris. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBehaveThird-party Python package module — behave. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyDoctestPython stdlib module — doctest. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Developer Tools
21distutils, venv, pdb, linters
PyBdbPython stdlib module — bdb. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyCprofilePython stdlib module — cProfile. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyDistutilsThird-party Python package module — distutils. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyEnsurepipPython stdlib module — ensurepip. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Data Science
14tensorflow, networkx, geopandas, openpyxl
PyEtXmlfileThird-party Python package module — et_xmlfile. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyGeopandasThird-party Python package module — geopandas. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyHnswlibThird-party Python package module — hnswlib. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyNetworkxThird-party Python package module — networkx. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
Utilities
59Miscellaneous modules without a dedicated category
PyAntigravityPython stdlib module — antigravity. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyAntlr4Third-party Python package module — antlr4. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyBraintreeThird-party Python package module — braintree. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
PyClickDefaultGroupThird-party Python package module — click_default_group. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
Search, filter by role, and find FQNs in the reference browser
API Reference
flows(), .method(), .tracks(), .where() and PropagationPresets documentation.
View API docs →