Official Python client for the Plaid API (bank account linking, transactions, identity, income verification). Auto-generated from OpenAPI spec. Updated monthly, major versions contain breaking changes. Only supports the 2020-09-14 API version (no version selection in client — API version is fixed per SDK release).
Install & Compatibility
Where this runs
tested against v39.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.925 runs
installs and imports cleanly · install 0.0s · import 0.398s · 77.4MB
glibcpy 3.10–3.925 runs
installs and imports cleanly · install 8.0s · import 0.346s · 78MB
78MB installed
● package 78MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
from plaid import Configuration
from plaid import ApiClient
from plaid.api_client import PlaidApi
Plaid uses strongly-typed request/response models. Each endpoint has its own request model (e.g. TransactionsSyncRequest). Import the specific model for each call.
import plaid
from plaid.api import plaid_api
from plaid.model.transactions_sync_request import TransactionsSyncRequest
import json
configuration = plaid.Configuration(
host=plaid.Environment.Sandbox, # or Production
api_key={
'clientId': 'your_client_id',
'secret': 'your_secret'
}
)
api_client = plaid.ApiClient(configuration)
client = plaid_api.PlaidApi(api_client)
# Sync transactions
request = TransactionsSyncRequest(access_token='access-sandbox-...')
response = client.transactions_sync(request)
transactions = response.added
# Error handling
try:
response = client.transactions_sync(request)
except plaid.ApiException as e:
error = json.loads(e.body)
print(error['error_code']) # e.g. 'ITEM_LOGIN_REQUIRED'
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.