Pre-installed libraries - Amazon Bedrock AgentCore

Pre-installed libraries

The AgentCore Code Interpreter comes with a comprehensive set of pre-installed Python libraries to support various data analysis, machine learning, and development tasks. These libraries are available immediately without requiring additional installation.

Data Analysis and Visualization

Data Analysis and Visualization libraries
Library Description
pandasData manipulation and analysis
numpyNumerical computing
matplotlibPlotting and visualization
matplotlib-inlineMatplotlib backend for Jupyter
matplotlib-vennVenn diagram plotting
plotlyInteractive visualizations
bokehInteractive visualization library
scipyScientific computing
statsmodelsStatistical modeling
sympySymbolic mathematics
numbaJust-in-time compilation for numerical functions
pyarrowColumnar data processing
numexprFast numerical expression evaluator
mizaniScales for Python graphics
contourpyContour line generation
cyclerComposable style cycles
fonttoolsFont manipulation library
kiwisolverConstraint solver
pyparsingParsing library
python-dateutilDate/time utilities
pytzTimezone definitions
tzdataTimezone data
patsyStatistical model specification
threadpoolctlThread pool control
joblibParallel computing utilities
mpmathArbitrary-precision arithmetic
llvmliteLLVM binding for Numba

Machine Learning and AI

Machine Learning and AI libraries
Library Description
scikit-learnMachine learning algorithms
scikit-imageImage processing
torchPyTorch deep learning framework
torchvisionComputer vision for PyTorch
torchaudioAudio processing for PyTorch
xgboostGradient boosting framework
openaiOpenAI API client
spacyNatural language processing
spacy-legacyLegacy components for spaCy
spacy-loggersLogging utilities for spaCy
nltkNatural language toolkit
textblobText processing
catalogueTiny library for function registries
confectionConfiguration system
cymemMemory management for Cython
murmurhashCython bindings for MurmurHash
preshedCython hash tables
srslySerialization utilities
thincMachine learning library
wasabiLightweight console printing
weaselCommand-line interface for spaCy projects
blisBLAS-like linear algebra library
langcodesLanguage code utilities
language_dataLanguage data for langcodes
marisa-trieTrie data structure
absl-pyAbseil Python common libraries
mcpModel Context Protocol

Mathematical and Optimization

Mathematical and Optimization libraries
Library Description
cvxpyConvex optimization
ortoolsOperations research tools
pulpLinear programming
galoisGalois field arithmetic
z3-solverTheorem prover
python_constraint2Constraint satisfaction problems
gapstatisticsGap statistic for clustering
oeisOnline Encyclopedia of Integer Sequences
networkxNetwork analysis
igraphGraph analysis and visualization

Web and API Development

Web and API Development libraries
Library Description
requestsHTTP library
beautifulsoup4Web scraping
fastapiModern web framework
FlaskLightweight web framework
Flask-CorsCross-origin resource sharing for Flask
Flask-LoginUser session management for Flask
DjangoFull-featured web framework
httpxAsync HTTP client
httpcoreHTTP core library
starletteASGI framework
uvicornASGI server
gunicornWSGI HTTP server
HypercornASGI server
asgirefASGI reference implementation
WerkzeugWSGI utility library
Jinja2Template engine
MarkupSafeSafe string handling
itsdangerousCryptographic signing
blinkerSignal/event dispatching
click-pluginsClick plugin system
tornadoWeb framework and async networking
sqlparseSQL parser
greenletLightweight coroutines
aiosignalAsync signal dispatching
anyioAsync compatibility layer
certifiCertificate bundle
dnspythonDNS toolkit
email_validatorEmail validation
frozenlistImmutable list implementation
h11HTTP/1.1 protocol implementation
h2HTTP/2 protocol implementation
hpackHTTP/2 header compression
httptoolsFast HTTP parsing
hyperframeHTTP/2 framing layer
idnaInternationalized domain names
multidictMulti-value dictionary
priorityHTTP/2 priority tree
python-dotenvEnvironment variable management
python-multipartMultipart form data parser
shellinghamShell detection library
sniffioAsync library detection
sse-starletteServer-sent events for Starlette
urllib3HTTP client library
uvloopFast event loop for asyncio
watchfilesFile watching library
wsprotoWebSocket protocol implementation
yarlURL parsing library

Cloud and Database

Cloud and Database libraries
Library Description
boto3AWS SDK for Python (boto3)
duckdbIn-process SQL database
SQLAlchemySQL toolkit and ORM
pymongoMongoDB driver
redisRedis client
psycopg2-binaryPostgreSQL adapter

File Processing and Documents

File Processing and Documents libraries
Library Description
openpyxlExcel file processing
xlrdExcel file reading
XlsxWriterExcel file writing
pyxlsbExcel binary format reader
et-xmlfileXML file handling for openpyxl
PyPDF2PDF processing
pdfplumberPDF text extraction
pdf2imagePDF to image conversion
pdfkitHTML to PDF conversion
pypdfium2PDF processing library
pdfminer.sixPDF text extraction
pdfrwPDF reader/writer
python-docxWord document processing
docx2txtWord document text extraction
reportlabPDF generation
fpdfSimple PDF generation
rarfileRAR archive processing
xml-pythonXML processing
svglibSVG to PDF/bitmap conversion
svgwriteSVG creation library
proglogProgress logging
lazy_loaderLazy module loading

Image and Media Processing

Image and Media Processing libraries
Library Description
pillowImage processing
opencv-pythonComputer vision
imageioImage I/O
imageio-ffmpegFFmpeg plugin for imageio
moviepyVideo editing
ffmpeg-pythonFFmpeg wrapper
ffmpyFFmpeg wrapper
pydubAudio manipulation
gttsGoogle Text-to-Speech
mutagenAudio metadata handling
WandImageMagick binding
imgkitHTML to image conversion
pypngPNG image processing
PyWaveletsWavelet transforms
tifffileTIFF file processing

Development Tools and Utilities

Development Tools and Utilities libraries
Library Description
pydanticData validation using type hints
pydantic-settingsSettings management for Pydantic
pydantic_coreCore validation logic for Pydantic
jsonschemaJSON schema validation
PyYAMLYAML processing
orjsonFast JSON library
ujsonUltra fast JSON encoder/decoder
clickCommand line interface creation
typerModern CLI framework
tqdmProgress bars
loguruLogging library
richRich text and beautiful formatting
ipythonInteractive Python shell
FakerFake data generation
qrcodeQR code generation
retryingRetry decorator
tenacityRetry library
backoffBackoff and retry
more_itertoolsAdditional iterator tools
cryptographyCryptographic recipes and primitives
bcryptPassword hashing
PyNaClNetworking and Cryptography library
pyOpenSSLOpenSSL wrapper
cffiC Foreign Function Interface
pycparserC parser in Python
annotated-typesReusable constraint types
typing_extensionsBackported typing features
typing_inspectionRuntime inspection of typing
astorAST to source code converter
asttokensAnnotate AST with source tokens
executingGet currently executing AST node
pure-evalSafe evaluation of expressions
stack-dataExtract data from stack frames
decoratorDecorator utilities
entrypointsDiscover entry points
jediCode completion library
parsoPython parser
prompt_toolkitInteractive command line toolkit
traitletsConfiguration system
wcwidthTerminal width calculation
PygmentsSyntax highlighting
mdurlURL utilities for Markdown
texttableText table formatting
xyzservicesSource of XYZ tile services
attrsClasses without boilerplate
cachetoolsExtensible memoizing collections
cloudpathlibCloud storage path library
cloudpicklePickle for cloud computing
distroLinux distribution information
filelockPlatform independent file locking
fsspecFilesystem specification
futurePython 2/3 compatibility
httpx-sseServer-sent events for HTTPX
importlib_metadataLibrary metadata access
importlib_resourcesResource access for packages
jsonschema-specificationsJSON Schema specifications
packagingCore utilities for Python packages
pexpectExpect-like subprocess control
platformdirsPlatform-specific directories
ptyprocessPseudoterminal utilities
referencingJSON reference resolution
rpds-pyPersistent data structures
sixPython 2/3 compatibility utilities
smart-openUtils for streaming large files
zippBackport of pathlib-compatible object wrapper

Text and Markup Processing

Text and Markup Processing libraries
Library Description
markdown-it-pyMarkdown parser
markdown2Markdown processor
markdownifyHTML to Markdown converter
lxmlXML and HTML processing
cssselect2CSS selector implementation
tinycss2CSS parser
webencodingsCharacter encoding for web
soupsieveCSS selector library
regexAlternative regular expression module
chardetCharacter encoding detection
charset-normalizerCharacter encoding detection

Geospatial and Mapping

Geospatial and Mapping libraries
Library Description
shapelyGeometric objects manipulation
pyshpShapefile library
brancaHTML/JS template library for maps

Document Processing Support

Document Processing Support libraries
Library Description
python-pptxCreate and update PowerPoint (.pptx) files
defusedxmlXML bomb protection for Python stdlib modules
markitdownConvert various file formats to Markdown
xlwtWrite data and formatting information to Excel files
odfpyAPI for OpenDocument Format documents
docx-mailmergeMail merge for Word documents
docxcomposeCompose Word documents by concatenating/appending
html5libStandards-compliant library for parsing and serializing HTML
xmltodictConvert XML to Python dictionaries
tabula-pyExtract tables from PDF files
pypandocPython wrapper for Pandoc document converter
pypdfPure Python PDF library for splitting, merging, cropping

For a complete list of all pre-installed 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}")