Skip to main content
An Opus Code task runs your Python in a secure environment that ships with a curated set of packages. You can import any of the packages below directly in your code—alongside the Opus SDK—without installing anything.
The Opus SDK itself (the Opus object) is always available inside Opus Code without an import. See the Opus SDK overview for what it exposes.

Standard Library

These modules ship with Python and are available in every Opus Code task.
CategoryPackages
Datajson, csv, collections, dataclasses, enum, copy
Textre, string, html
Mathmath, statistics, random, decimal, fractions
Timedatetime, time
Utilitiesitertools, functools, typing, uuid
Encodinghashlib, base64
Markup & Archivesxml, zipfile
Advancedabc, warnings, contextlib, concurrent, concurrent.futures

Third-Party Packages

These packages are pre-installed and ready to import. Where the import name differs from the package name, both are shown.
CategoryPackages
HTTPrequests
Office Documentsopenpyxl, docx (python-docx), pptx (python-pptx)
PDFPyPDF2, pdfplumber, fitz (pymupdf), reportlab, fpdf (fpdf2), pdf2docx, pdf2image
ImagesPIL (pillow), cv2 (opencv-python-headless)
Utilitiesmagic (python-magic), dateutil (python-dateutil), toon_format (toon-format)
For packages with an import alias, use the import name on the left in your code—for example import fitz for pymupdf, or import cv2 for opencv-python-headless. See File Formats for which formats the SDK reads and writes directly.

Opus SDK Overview

Learn what the always-available Opus object exposes.

File Formats

See which file formats the SDK can read and write.

Opus Code

Write custom Python logic inside a workflow.