Pre-installed libraries
The AgentCore Code Interpreter comes with pre-installed libraries for both Python and Node.js. These libraries are available immediately without requiring additional installation.
Python libraries
The AgentCore Code Interpreter includes a comprehensive set of pre-installed Python libraries to support various data analysis, machine learning, and development tasks.
Data Analysis and Visualization
| Library | Description |
|---|---|
|
|
Data manipulation and analysis |
|
|
Numerical computing |
|
|
Plotting and visualization |
|
|
Matplotlib backend for Jupyter |
|
|
Venn diagram plotting |
|
|
Interactive visualizations |
|
|
Interactive visualization library |
|
|
Scientific computing |
|
|
Statistical modeling |
|
|
Symbolic mathematics |
|
|
Just-in-time compilation for numerical functions |
|
|
Columnar data processing |
|
|
Fast numerical expression evaluator |
|
|
Scales for Python graphics |
|
|
Contour line generation |
|
|
Composable style cycles |
|
|
Font manipulation library |
|
|
Constraint solver |
|
|
Parsing library |
|
|
Date/time utilities |
|
|
Timezone definitions |
|
|
Timezone data |
|
|
Statistical model specification |
|
|
Thread pool control |
|
|
Parallel computing utilities |
|
|
Arbitrary-precision arithmetic |
|
|
LLVM binding for Numba |
Machine Learning and AI
| Library | Description |
|---|---|
|
|
Machine learning algorithms |
|
|
Image processing |
|
|
PyTorch deep learning framework |
|
|
Computer vision for PyTorch |
|
|
Audio processing for PyTorch |
|
|
Gradient boosting framework |
|
|
OpenAI API client |
|
|
Natural language processing |
|
|
Legacy components for spaCy |
|
|
Logging utilities for spaCy |
|
|
Natural language toolkit |
|
|
Text processing |
|
|
Tiny library for function registries |
|
|
Configuration system |
|
|
Memory management for Cython |
|
|
Cython bindings for MurmurHash |
|
|
Cython hash tables |
|
|
Serialization utilities |
|
|
Machine learning library |
|
|
Lightweight console printing |
|
|
Command-line interface for spaCy projects |
|
|
BLAS-like linear algebra library |
|
|
Language code utilities |
|
|
Language data for langcodes |
|
|
Trie data structure |
|
|
Abseil Python common libraries |
|
|
Model Context Protocol |
Mathematical and Optimization
| Library | Description |
|---|---|
|
|
Convex optimization |
|
|
Operations research tools |
|
|
Linear programming |
|
|
Galois field arithmetic |
|
|
Theorem prover |
|
|
Constraint satisfaction problems |
|
|
Gap statistic for clustering |
|
|
Online Encyclopedia of Integer Sequences |
|
|
Network analysis |
|
|
Graph analysis and visualization |
Web and API Development
| Library | Description |
|---|---|
|
|
HTTP library |
|
|
Web scraping |
|
|
Modern web framework |
|
|
Lightweight web framework |
|
|
Cross-origin resource sharing for Flask |
|
|
User session management for Flask |
|
|
Full-featured web framework |
|
|
Async HTTP client |
|
|
HTTP core library |
|
|
ASGI framework |
|
|
ASGI server |
|
|
WSGI HTTP server |
|
|
ASGI server |
|
|
ASGI reference implementation |
|
|
WSGI utility library |
|
|
Template engine |
|
|
Safe string handling |
|
|
Cryptographic signing |
|
|
Signal/event dispatching |
|
|
Click plugin system |
|
|
Web framework and async networking |
|
|
SQL parser |
|
|
Lightweight coroutines |
|
|
Async signal dispatching |
|
|
Async compatibility layer |
|
|
Certificate bundle |
|
|
DNS toolkit |
|
|
Email validation |
|
|
Immutable list implementation |
|
|
HTTP/1.1 protocol implementation |
|
|
HTTP/2 protocol implementation |
|
|
HTTP/2 header compression |
|
|
Fast HTTP parsing |
|
|
HTTP/2 framing layer |
|
|
Internationalized domain names |
|
|
Multi-value dictionary |
|
|
HTTP/2 priority tree |
|
|
Environment variable management |
|
|
Multipart form data parser |
|
|
Shell detection library |
|
|
Async library detection |
|
|
Server-sent events for Starlette |
|
|
HTTP client library |
|
|
Fast event loop for asyncio |
|
|
File watching library |
|
|
WebSocket protocol implementation |
|
|
URL parsing library |
Cloud and Database
| Library | Description |
|---|---|
|
|
AWS SDK for Python (boto3) |
|
|
In-process SQL database |
|
|
SQL toolkit and ORM |
|
|
MongoDB driver |
|
|
Redis client |
|
|
PostgreSQL adapter |
File Processing and Documents
| Library | Description |
|---|---|
|
|
Excel file processing |
|
|
Excel file reading |
|
|
Excel file writing |
|
|
Excel binary format reader |
|
|
XML file handling for openpyxl |
|
|
PDF processing |
|
|
PDF text extraction |
|
|
PDF to image conversion |
|
|
HTML to PDF conversion |
|
|
PDF processing library |
|
|
PDF text extraction |
|
|
PDF reader/writer |
|
|
Word document processing |
|
|
Word document text extraction |
|
|
PDF generation |
|
|
Simple PDF generation |
|
|
RAR archive processing |
|
|
XML processing |
|
|
SVG to PDF/bitmap conversion |
|
|
SVG creation library |
|
|
Progress logging |
|
|
Lazy module loading |
Image and Media Processing
| Library | Description |
|---|---|
|
|
Image processing |
|
|
Computer vision |
|
|
Image I/O |
|
|
FFmpeg plugin for imageio |
|
|
Video editing |
|
|
FFmpeg wrapper |
|
|
FFmpeg wrapper |
|
|
Audio manipulation |
|
|
Google Text-to-Speech |
|
|
Audio metadata handling |
|
|
ImageMagick binding |
|
|
HTML to image conversion |
|
|
PNG image processing |
|
|
Wavelet transforms |
|
|
TIFF file processing |
Development Tools and Utilities
| Library | Description |
|---|---|
|
|
Data validation using type hints |
|
|
Settings management for Pydantic |
|
|
Core validation logic for Pydantic |
|
|
JSON schema validation |
|
|
YAML processing |
|
|
Fast JSON library |
|
|
Ultra fast JSON encoder/decoder |
|
|
Command line interface creation |
|
|
Modern CLI framework |
|
|
Progress bars |
|
|
Logging library |
|
|
Rich text and beautiful formatting |
|
|
Interactive Python shell |
|
|
Fake data generation |
|
|
QR code generation |
|
|
Retry decorator |
|
|
Retry library |
|
|
Backoff and retry |
|
|
Additional iterator tools |
|
|
Cryptographic recipes and primitives |
|
|
Password hashing |
|
|
Networking and Cryptography library |
|
|
OpenSSL wrapper |
|
|
C Foreign Function Interface |
|
|
C parser in Python |
|
|
Reusable constraint types |
|
|
Backported typing features |
|
|
Runtime inspection of typing |
|
|
AST to source code converter |
|
|
Annotate AST with source tokens |
|
|
Get currently executing AST node |
|
|
Safe evaluation of expressions |
|
|
Extract data from stack frames |
|
|
Decorator utilities |
|
|
Discover entry points |
|
|
Code completion library |
|
|
Python parser |
|
|
Interactive command line toolkit |
|
|
Configuration system |
|
|
Terminal width calculation |
|
|
Syntax highlighting |
|
|
URL utilities for Markdown |
|
|
Text table formatting |
|
|
Source of XYZ tile services |
|
|
Classes without boilerplate |
|
|
Extensible memoizing collections |
|
|
Cloud storage path library |
|
|
Pickle for cloud computing |
|
|
Linux distribution information |
|
|
Platform independent file locking |
|
|
Filesystem specification |
|
|
Python 2/3 compatibility |
|
|
Server-sent events for HTTPX |
|
|
Library metadata access |
|
|
Resource access for packages |
|
|
JSON Schema specifications |
|
|
Core utilities for Python packages |
|
|
Expect-like subprocess control |
|
|
Platform-specific directories |
|
|
Pseudoterminal utilities |
|
|
JSON reference resolution |
|
|
Persistent data structures |
|
|
Python 2/3 compatibility utilities |
|
|
Utils for streaming large files |
|
|
Backport of pathlib-compatible object wrapper |
Text and Markup Processing
| Library | Description |
|---|---|
|
|
Markdown parser |
|
|
Markdown processor |
|
|
HTML to Markdown converter |
|
|
XML and HTML processing |
|
|
CSS selector implementation |
|
|
CSS parser |
|
|
Character encoding for web |
|
|
CSS selector library |
|
|
Alternative regular expression module |
|
|
Character encoding detection |
|
|
Character encoding detection |
Geospatial and Mapping
| Library | Description |
|---|---|
|
|
Geometric objects manipulation |
|
|
Shapefile library |
|
|
HTML/JS template library for maps |
Document Processing Support
| Library | Description |
|---|---|
|
|
Create and update PowerPoint (.pptx) files |
|
|
XML bomb protection for Python stdlib modules |
|
|
Convert various file formats to Markdown |
|
|
Write data and formatting information to Excel files |
|
|
API for OpenDocument Format documents |
|
|
Mail merge for Word documents |
|
|
Compose Word documents by concatenating/appending |
|
|
Standards-compliant library for parsing and serializing HTML |
|
|
Convert XML to Python dictionaries |
|
|
Extract tables from PDF files |
|
|
Python wrapper for Pandoc document converter |
|
|
Pure Python PDF library for splitting, merging, cropping |
For a complete list of all pre-installed Python libraries with their specific versions, you can run the following code in your Code Interpreter session:
import pkg_resources installed_packages = [d for d in pkg_resources.working_set] for package in sorted(installed_packages, key=lambda x: x.project_name.lower()): print(f"{package.project_name}=={package.version}")
Node.js packages/libraries
The following Node.js packages/libraries are pre-installed in the AgentCore Code Interpreter environment.
| Package/Library | Description |
|---|---|
|
|
Promise-based HTTP client |
|
|
Utility library for common programming tasks |
|
|
UUID generation |
|
|
TypeScript-first schema validation |
|
|
HTML parsing and manipulation |