Use the Python SDK
to interact with Contracts APIs, which
allow you interact with smart contracts on the blockchain using the Developer
Services platform.This page provides short examples of how to install and use the Smart Contract
Platform SDK. For complete examples, see the Sample Projects
page. For more information see the Contracts documentation.
Pydantic v2 upgradeStarting from major version 9, the Python SDK uses Pydantic v2. This change
brings performance improvements, enhanced features, and bug fixes.If you are already using the SDK, and choose to upgrade to major version 9, you
may need to make some changes to your code.For more information, see
Server-side SDK Pydantic v2 upgrade.
Although not a requirement for using the SDK, Circle recommends that you
use a virtual environment
for development. A Python virtual environment is an isolated environment that
you can use to silo your project from the global Python environment.