Supported Python Modules

The following TechSmart-specific libraries are supported:

  • tsapp
    • The TechSmart Graphics Application library. See this article for more information.
  • tsk
    • The TechSmart general support library. Provides the tsk.Sprite and tsk.ImageSheet classes and utility functions for graphical programs.

The following PyPI libraries are supported:

  • pp (pp-ez 0.2.0)
    • An alias for the pprintpp package, plus a bit of magic so it can be called directly. Example usage.
  • pprintpp 0.4.0
    • A drop-in replacement for the pprint package with prettier output. Example usage.
  • pygame 1.9.2 
    • Supports drawing graphics, playing sounds, and other functionality. Implements a subset of the PyGame API. See this article for more information.
  • requests 2.25.1
    • Supports making HTTP requests to an allowlist of domains maintained by TechSmart. See the Web APIs Teacher's Guide for more information about allowed domains, rate limits, and how to request that new domains be allowed. Implements a subset of the Requests API.

Supported Python standard library modules

The following Python standard library modules are importable and work as expected on the TechSmart Platform:

__future__
__main__
abc
aifc
argparse
array
ast
base64
bdb
binascii
bisect
builtins
bz2
calendar
cgitb
chunk
cmd
code
codecs
codeop
collections
collections.abc
colorsys
compileall
concurrent
concurrent.futures
configparser
contextlib
contextvars
copy
copyreg
csv
dataclasses
datetime
decimal
difflib
dis
doctest
encodings
encodings.aliases
encodings.utf_8
encodings.utf_8_sig
enum
errno
faulthandler
filecmp
fileinput
fnmatch
fractions
functools
gc
getopt
gettext
glob
graphlib
gzip
hashlib *
heapq
hmac
html
html.entities
html.parser
imghdr
importlib
importlib.abc
importlib.machinery
importlib.readers
importlib.resources
importlib.resources.abc
importlib.resources.readers
importlib.resources.simple
importlib.simple
importlib.util
inspect
io
ipaddress
itertools
json
json.decoder
json.encoder
json.scanner
json.tool
keyword
linecache
locale
logging
logging.config
logging.handlers
mailcap
marshal
math
mimetypes
modulefinder
netrc
numbers
opcode
operator
optparse
os
os.path
pathlib
pdb
pickle
pickletools
pkgutil
platform
pprint
profile
pstats
py_compile
pyclbr
pydoc †
queue
quopri
random
re
reprlib
rlcompleter
runpy
sched
secrets
select
selectors
shelve
shlex
shutil
signal
site
sndhdr
stat
statistics
string
struct
sunau
symtable
sys
sysconfig
tabnanny
tarfile
tempfile
textwrap
this
time
timeit
token
tokenize
tomllib
trace
traceback
tracemalloc
types
typing
unittest
unittest.mock
urllib
urllib.error
urllib.parse
urllib.response
uu
uuid
warnings
wave
weakref
wsgiref
wsgiref.handlers
wsgiref.headers
wsgiref.types
wsgiref.util
wsgiref.validate
xdrlib
zipapp
zipimport
zlib

* Hash algorithms that depend on OpenSSL are not available. See Python hashlib documentation for a list of algorithms that are dependent on OpenSSL.

† Help messages for Python builtins (via the help() function) are not available to reduce the initial download size.

 

Unsupported standard Python library modules

The following Python standard library modules do not work as expected on the TechSmart Platform:

antigravity
asyncio ‡
atexit ‡
cgi
cProfile
crypt
curses
dbm
ensurepip
fcntl
ftplib ‡
getpass ‡
grp
idlelib
imaplib ‡
importlib.metadata
lib2to3
mailbox
msvcrt
multiprocessing ‡
nntplib
pipes ‡
plistlib
poplib ‡
pty
pwd
resource
smtplib
socket ‡
socketserver ‡
stringprep
subprocess ‡
syslog
telnetlib ‡
termios
threading ‡
tkinter
tty
turtle
turtledemo
urllib.request
urllib.robotparser
venv
webbrowser ‡
winreg
winsound
wsgiref.simple_server
xmlrpc.client
xmlrpc.server
zipfile ‡
zoneinfo ‡

‡ these modules can be imported but their functionality does not work

 

Suggested Articles:

tsapp vs PyGame Libraries

What version of Python/PyGame does the TechSamart Platform use?