Python Activities
The Python adapter allows you to execute Python scripts from a pre-defined list. These activities do not use targets or account keys.
Note: Python scripts are limited to a maximum payload of 4 MB.
The Python adapter provides the following activity:
Python Modules
The following Python modules are available for use in this activity:
- __future__
- _abc
- _ast
- _asyncio
- _bisect
- _blake2
- _bootlocale
- _bz2
- _codecs
- _codecs_cn
- _codecs_hk
- _codecs_iso2022
- _codecs_jp
- _codecs_kr
- _codecs_tw
- _collections
- _collections_abc
- _compat_pickle
- _compression
- _contextvars
- _crypt
- _csv
- _ctypes
- _ctypes_test
- _curses
- _curses_panel
- _datetime
- _dbm
- _decimal
- _dummy_thread
- _elementtree
- _functools
- _gdbm
- _hashlib
- _heapq
- _imp
- _io
- _json
- _locale
- _lsprof
- _lzma
- _markupbase
- _md5
- _multibytecodec
- _multiprocessing
- _opcode
- _operator
- _osx_support
- _pickle
- _posixsubprocess
- _py_abc
- _pydecimal
- _pyio
- _queue
- _random
- _sha1
- _sha256
- _sha3
- _sha512
- _signal
- _sitebuiltins
- _socket
- _sqlite3
- _sre
- _ssl
- _stat
- _string
- _strptime
- _struct
- _symtable
- _sysconfigdata_m_linux_x86_64-linux-gnu
- _testbuffer
- _testcapi
- _testimportmultiple
- _testmultiphase
- _thread
- _threading_local
- _tkinter
- _tracemalloc
- _uuid
- _warnings
- _weakref
- _weakrefset
- _xxtestfuzz
- abc
- aifc
- antigravity
- argparse
- array
- ast
- astroid
- asynchat
- asyncio
- asyncore
- atexit
- attr
- audioop
- base64
- bdb
- binascii
- binhex
- bisect
- brain_argparse
- brain_attrs
- brain_boto3
- brain_builtin_inference
- brain_collections
- brain_crypt
- brain_curses
- brain_dataclasses
- brain_dateutil
- brain_fstrings
- brain_functools
- brain_gi
- brain_hashlib
- brain_http
- brain_io
- brain_mechanize
- brain_multiprocessing
- brain_namedtuple_enum
- brain_nose
- brain_numpy_core_fromnumeric
- brain_numpy_core_function_base
- brain_numpy_core_multiarray
- brain_numpy_core_numeric
- brain_numpy_core_numerictypes
- brain_numpy_core_umath
- brain_numpy_ndarray
- brain_numpy_random_mtrand
- brain_numpy_utils
- brain_pkg_resources
- brain_pytest
- brain_qt
- brain_random
- brain_re
- brain_responses
- brain_scipy_signal
- brain_six
- brain_ssl
- brain_subprocess
- brain_threading
- brain_typing
- brain_uuid
- builtins
- bz2
- calendar
- certifi
- cgi
- cgitb
- chardet
- chunk
- cmath
- cmd
- code
- codecs
- codeop
- collections
- colorsys
- compileall
- concurrent
- configparser
- contextlib
- contextvars
- copy
- copyreg
- cProfile
- crypt
- csv
- ctypes
- curses
- dataclasses
- datetime
- dbm
- decimal
- difflib
- dis
- distutils
- doctest
- dotenv
- dummy_threading
- easy_install
- encodings
- ensurepip
- entrypoints
- enum
- errno
- faulthandler
- fcntl
- filecmp
- fileinput
- fnmatch
- formatter
- fractions
- ftplib
- functools
- gc
- genericpath
- getopt
- getpass
- gettext
- glob
- grp
- gzip
- hashlib
- heapq
- hmac
- html
- http
- idlelib
- idna
- imaplib
- imghdr
- imp
- importlib
- importlib_metadata
- inspect
- io
- ipaddress
- isort
- itertools
- json
- keyword
- lazy_object_proxy
- lib2to3
- linecache
- locale
- logging
- lzma
- macpath
- mailbox
- mailcap
- marshal
- math
- mccabe
- mimetypes
- mmap
- modulefinder
- more_itertools
- multiprocessing
- netrc
- nis
- nntplib
- ntpath
- nturl2path
- numbers
- opcode
- operator
- optparse
- os
- ossaudiodev
- packaging
- parser
- pathlib
- pdb
- pickle
- pickletools
- pip
- pipes
- pkg_resources
- pkgutil
- platform
- plistlib
- pluggy
- poplib
- posix
- posixpath
- pprint
- profile
- pstats
- pty
- pwd
- py
- py_compile
- pyclbr
- pycodestyle
- pydoc
- pydoc_data
- pyexpat
- pyflakes
- pyparsing
- queue
- quopri
- random
- re
- readline
- reprlib
- requests
- resource
- responses
- rlcompleter
- runpy
- sched
- secrets
- select
- selectors
- setuptools
- shelve
- shlex
- shutil
- signal
- site
- six
- smtpd
- smtplib
- sndhdr
- socket
- socketserver
- spwd
- sqlite3
- sre_compile
- sre_constants
- sre_parse
- ssl
- stat
- statistics
- string
- stringprep
- struct
- subprocess
- sunau
- symbol
- symtable
- sys
- sysconfig
- syslog
- tabnanny
- tarfile
- telnetlib
- tempfile
- termios
- tests
- textwrap
- this
- threading
- time
- timeit
- tkinter
- token
- tokenize
- toml
- trace
- traceback
- tracemalloc
- tty
- turtle
- turtledemo
- typed_ast
- types
- typing
- unicodedata
- unittest
- urllib
- urllib3
- uu
- uuid
- venv
- warnings
- wave
- wcwidth
- weakref
- webbrowser
- wheel
- wrapt
- wsgiref
- xdrlib
- xml
- xmlrpc
- xxlimited
- xxsubtype
- yaml
- zipapp
- zipfile
- zipimport
- zipp
- zlib