Data Structures
array
Provides space-efficient arrays of numeric values. Support Level: Full support Example:collections
Provides specialized container datatypes. Support Level: Partial (defaultdict, deque only) Supported:defaultdict- Dictionary with default factory functiondeque- Double-ended queue with fast appends/pops
heapq
Heap queue algorithm (priority queue). Support Level: Full support Example:bisect
Array bisection algorithms for maintaining sorted lists. Support Level: Full support Example:Text Processing
re
Regular expression operations using PCRE syntax. Support Level: Full support (PCRE-compatible) Example:re module.
string
Common string operations and constants. Support Level: Partial Supported: String constants (ascii_letters, digits, etc.) Not Supported: Format, Template classes Example:fnmatch
Unix filename pattern matching. Support Level: Full support Example:File and Data Processing
csv
CSV file reading and writing. Support Level: Partial (ASCII-only) Supported:reader- Read CSV fileswriter- Write CSV filesDictReader- Read CSV as dictionariesDictWriter- Write dictionaries as CSV
configparser
Configuration file parser. Support Level: Partial Supported: ConfigParser class Not Supported: SafeConfigParser (deprecated in Python 3) Example:struct
Interpret bytes as packed binary data. Support Level: Partial Supported: pack, unpack, calcsize functions Not Supported: Struct class, iter_unpack Example:base64
Base64 encoding and decoding. Support Level: Partial Supported: Standard base64 encoding/decoding Not Supported: base16, base32, base85 variants Example:binascii
Convert between binary and ASCII. Support Level: Partial Supported: hex, unhex, crc32, and other common functions Not Supported: base16, base32, base85 variantsMathematical Operations
math
Mathematical functions. Support Level: Full support Example:math.integer
Integer-specific mathematical operations. Support Level: Full support Example:random
Generate pseudo-random numbers. Support Level: Full support Example:--random flag for faster rand() generator.
colorsys
Conversions between color systems. Support Level: Full support Example:Algorithm Support
itertools
Functions creating iterators for efficient looping. Support Level: Partial Supported: count, cycle, repeat, chain, compress, dropwhile, filterfalse, groupby, islice, takewhile, tee, zip_longest, product, permutations, combinations, combinations_with_replacement, accumulate, pairwise, batched Not Supported: starmap Example:functools
Higher-order functions and operations on callable objects. Support Level: Minimal (reduce only) Supported: reduce function Not Supported: partial, lru_cache, wraps, and other decorators Example:System and OS
sys
System-specific parameters and functions. Support Level: Partial Supported:sys.argv- Command-line argumentssys.exit()- Exit programsys.stdin,sys.stdout,sys.stderr- Standard streamssys.maxsize- Largest integer
os
Miscellaneous operating system interfaces. Support Level: Partial Supported:- File operations:
os.remove(),os.rename(),os.listdir() - Directory operations:
os.mkdir(),os.rmdir(),os.getcwd(),os.chdir() - Process:
os.system(),os.getpid() - Environment:
os.getenv(),os.environ
os.path
Common pathname manipulations. Support Level: Full support Example:stat
Interpreting stat() results. Support Level: Full support Example:glob
Unix style pathname pattern expansion. Support Level: Partial Supported: Basic glob patterns Not Supported: escape, translate functions Example:getopt
C-style command-line option parser. Support Level: Full support Example:Date and Time
time
Time access and conversions. Support Level: Partial Supported:time.time()- Current time as floattime.sleep()- Sleep for secondstime.clock()- Process timetime.strftime()- Format time
datetime
Basic date and time types. Support Level: Partial (not well tested) Supported: date, time, datetime, timedelta classes Limitations: May have edge cases or incomplete functionality Example:I/O and Files
io
Core tools for working with streams. Support Level: Partial Supported:io.BytesIO- In-memory bytes bufferio.StringIO- In-memory string buffer
Networking
socket
Low-level networking interface. Support Level: Partial (not well tested) Supported: Basic socket operations for TCP/UDP Limitations: May be incomplete or unstable Example:select
I/O completion waiting. Support Level: Partial (not well tested) Example:Memory and System
gc
Garbage collector interface. Support Level: Minimal Supported:gc.enable()- Enable garbage collectiongc.disable()- Disable garbage collectiongc.collect()- Force collection
--nogc flag to disable entirely.
copy
Shallow and deep copy operations. Support Level: Partial Supported: copy, deepcopy functions Not Supported: replace function Example:mmap
Memory-mapped file support. Support Level: Partial (not well tested) Limitations: May have platform-specific issues Example:signal
Set handlers for asynchronous events. Support Level: Partial Supported: Basic signal handling on Unix-like systems Example:Usage in Programs
To use any supported module in your Shed Skin program, simply import it as you would in regular Python:Module Support Summary
| Module | Support Level | Notes |
|---|---|---|
| array | Full | Space-efficient numeric arrays |
| base64 | Partial | No base16/32/85 variants |
| binascii | Partial | No base16/32/85 variants |
| bisect | Full | Array bisection |
| collections | Partial | defaultdict, deque only |
| colorsys | Full | Color system conversions |
| configparser | Partial | No SafeConfigParser |
| copy | Partial | No replace function |
| csv | Partial | ASCII-only, no Sniffer |
| datetime | Partial | Not well tested |
| fnmatch | Full | Filename patterns |
| functools | Minimal | reduce only |
| gc | Minimal | enable, disable, collect |
| getopt | Full | Command-line parsing |
| glob | Partial | No escape, translate |
| heapq | Full | Priority queues |
| io | Partial | BytesIO, StringIO |
| itertools | Partial | No starmap |
| math | Full | Mathematical functions |
| math.integer | Full | Integer math operations |
| mmap | Partial | Not well tested |
| os | Partial | Core functions only |
| os.path | Full | Path manipulations |
| random | Full | Pseudo-random numbers |
| re | Full | PCRE-compatible regex |
| select | Partial | Not well tested |
| signal | Partial | Basic signal handling |
| socket | Partial | Not well tested |
| stat | Full | File statistics |
| string | Partial | No Format, Template |
| struct | Partial | No Struct, iter_unpack |
| sys | Partial | Core functionality |
| time | Partial | Basic time functions |
See Also
- Built-in Types - Documentation on built-in Python types
- Library Limitations - What’s not supported and why