English ▼
Skip to page content Skip to main navigation
e.g. "templates" or "datastore"

# Google App Engine Python Library Support

Many Native C Python modules are disabled with Google App Engine. The Python 2.7 runtime supports more modules than the Python 2.5 runtime. A list of Python modules can be found on Python.org.

## C Modules Supported in Python 2.7

The following is a list of those C modules that are not allowed with the Python 2.7 runtime:

- ctypes
- sqlite
- ssl/_ssl
- fcntl
- spwd
- pwd
- grp
- syslog
- select
- _socket

## C Modules Supported in Python 2.5

The following is a list of those C modules that are allowed with the Python 2.5 runtime:

- array
- binascii
- bz2
- cmath
- collections
- crypt
- cStringIO
- datetime
- errno
- exceptions
- gc
- itertools
- math
- md5
- operator
- posix
- posixpath
- pyexpat
- sha
- struct
- sys
- time
- timing
- unicodedata
- zlib
- _bisect
- _codecs
- _codecs_cn
- _codecs_hk
- _codecs_iso2022
- _codecs_jp
- _codecs_kr
- _codecs_tw
- _csv
- _elementtree
- _functools
- _hashlib
- _heapq
- _locale
- _lsprof
- _md5
- _multibytecodec
- _random
- _sha
- _sha256
- _sha512
- _sre
- _struct
- _types
- _weakref
- __main__

The following is a list of modules that are partially enabled:

- gc
  - 'enable',
  - disable
  - isenabled
  - collect
  - get_debug
  - set_threshold
  - get_threshold
  - get_count
os

- altsep
- curdir
- defpath
- devnull
- environ
- error
- extsep
- EX_NOHOST
- EX_NOINPUT
- EX_NOPERM
- EX_NOUSER
- EX_OK
- EX_OSERR
- EX_OSFILE
- EX_PROTOCOL
- EX_SOFTWARE
- EX_TEMPFAIL
- EX_UNAVAILABLE
- EX_USAGE
- F_OK
- getcwd
- getcwdu
- getenv
- listdir
- lstat
- name
- NGROUPS_MAX
- O_APPEND
- O_CREAT
- O_DIRECT
- O_DIRECTORY
- O_DSYNC
- O_EXCL
- O_LARGEFILE
- O_NDELAY
- O_NOCTTY
- O_NOFOLLOW
- O_NONBLOCK
- O_RDONLY
- O_RDWR
- O_RSYNC
- O_SYNC
- O_TRUNC
- O_WRONLY
- pardir
- path
- pathsep
- R_OK
- SEEK_CUR
- SEEK_END
- SEEK_SET
- sep
- stat
- stat_float_times
- stat_result
- strerror
- TMP_MAX
- urandom
- walk
- WCOREDUMP
- WEXITSTATUS
- WIFEXITED
- WIFSIGNALED
- WIFSTOPPED
- WNOHANG
- WSTOPSIG
- WTERMSIG
- WUNTRACED
- W_OK
- X_OK

The following modules can be imported, but are empty:

- imp
- ftplib
- select
- socket
- tempfile