Supported Python Modules and Functions

Last updated on Aug 07, 2023

Hevo supports the use of most modules and functions from the standard Python libraries in your Transformation scripts. However, it restricts a few Python modules and built-in functions to make your scripts more secure. Refer to the sections below for the details.

Python modules allowed by Hevo in the Transformation script

array
binascii
copy
datetime
heapq
itertools
math
random
unicodedata

Built-in Python functions allowed by Hevo in the Transformation script

abs
all
any
basestring
bin
bool
bytearray
callable
chr
classmethod
cmp
complex
delattr
dict
divmod
enumerate
filter
float
format
frozenset
getattr
hasattr
hash
hex
id
int
isinstance
issubclass
iter
len
list
long
map
max
min
next
object
oct
ord
pow
range
raw_input
reduce
repr
reversed
round
set
setattr
slice
sorted
staticmethod
str
sum
super
tuple
type
unichr
unicode
xrange
zip

Python modules restricted by Hevo in the Transformation script

__builtin__
__future__
__main__
_winreg
abc
aepack
aetools
aetypes
aifc
al
AL
anydbm
applesingle
argparse
ast
asynchat
asyncore
atexit
audioop
autoGIL
base64
BaseHTTPServer
Bastion
bdb
binhex
bisect
bsddb
buildtools
bz2
calendar
Carbon
Carbon.*
cd
cfmfile
cgi
CGIHTTPServer
cgitb
chunk
cmath
cmd
code
codecs
codeop
collections
ColorPicker
colorsys
commands
compileall
compiler
compiler.ast
compiler.visitor
ConfigParser
contextlib
Cookie
cookielib
copy_reg
cPickle
cProfile
crypt
cStringIO
csv
ctypes
curses
curses.ascii
curses.panel
curses.textpad
dbhash
dbm
DEVICE
difflib
dircache
dis
distutils
distutils.*
dl
doctest
DocXMLRPCServer
dumbdbm
dummy_thread
dummy_threading
EasyDialogs
email
email.*
encodings
encodings.idna
encodings.utf_8_sig
ensurepip
errno
exceptions
fcntl
filecmp
fileinput
findertools
fl
FL
flp
fm
fnmatch
formatter
fpectl
fpformat
fractions
FrameWork
ftplib
functools
future_builtins
gc
gdbm
gensuitemodule
getopt
getpass
gettext
gl
GL
glob
grp
gzip
hmac
hotshot
hotshot.stats
htmlentitydefs
htmllib
HTMLParser
httplib
ic
icopen
imageop
imaplib
imgfile
imghdr
imp
importlib
imputil
inspect
io
jpeg
json
keyword
lib2to3
linecache
locale
logging
logging.config
logging.handlers
macerrors
MacOS
macostools
macpath
macresource
mailbox
mailcap
marshal
md5
mhlib
mimetools
mimetypes
MimeWriter
mimify
MiniAEFrame
mmap
modulefinder
msilib
msvcrt
multifile
multiprocessing
multiprocessing.*
mutex
Nav
netrc
new
nis
nntplib
numbers
operator
optparse
os
os.path
ossaudiodev
parser
pdb
pickle
pickletools
pipes
PixMapWrapper
pkgutil
platform
plistlib
popen2
poplib
posix
posixfile
pprint
profile
pstats
pty
pwd
py_compile
pyclbr
pydoc
Queue
quopri
re
readline
resource
rexec
rfc822
rlcompleter
robotparser
runpy
sched
ScrolledText
select
sets
sgmllib
sha
shelve
shlex
shutil
signal
SimpleHTTPServer
SimpleXMLRPCServer
site
smtpd
smtplib
sndhdr
socket
SocketServer
spwd
sqlite3
ssl
stat
statvfs
StringIO
stringprep
struct
subprocess
sunau
sunaudiodev
SUNAUDIODEV
symbol
symtable
sys
sysconfig
syslog
tabnanny
tarfile
telnetlib
tempfile
termios
test
test.support
textwrap
thread
threading
time
timeit
Tix
Tkinter
token
tokenize
trace
traceback
ttk
tty
turtle
types
unittest
urllib
urllib2
urlparse
user
UserDict
UserList
UserString
uu
uuid
videoreader
W
warnings
wave
weakref
webbrowser
whichdb
winsound
wsgiref
wsgiref.handlers
wsgiref.headers
wsgiref.simple_server
wsgiref.util
wsgiref.validate
xdrlib
xml
xml.*
xmlrpclib
zipfile
zipimport
zlib

Built-in Python functions restricted by Hevo in the Transformation script

__import__
builtins
breakpoint
compile
dir
eval
execfile
file
globals
help
input
locals
memoryview
open
print
property
reload
vars



Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Aug-07-2023 NA Updated the page to improve the readability.
Apr-25-2023 NA New document.

Tell us what went wrong