Vercel Python SDK

0.4.0 · active · verified Tue Mar 17

Official Vercel Python SDK. Current version is 0.4.0 (Feb 2026), released as beta Oct 2025. PyPI package is 'vercel', imports as 'vercel'. SDK only covers Blob, Sandbox, Runtime Cache, and OIDC — it does NOT wrap the Vercel REST API (deployments, projects, domains). Five competing PyPI packages exist for Vercel-related Python work: vercel (official), vercel-sdk (official alias), vercel_blob (community), vercel_storage (community), vercelpy (community). Most tutorials predate the official SDK and use community packages.

Warnings

Install

Imports

Quickstart

Blob upload/list/delete and Runtime Cache using official vercel SDK v0.4.x.

import os
from vercel.blob import BlobClient

# Requires BLOB_READ_WRITE_TOKEN env var
client = BlobClient()  # reads BLOB_READ_WRITE_TOKEN automatically

# Upload
uploaded = client.put(
    'assets/hello.txt',
    b'hello from python',
    access='public',
    content_type='text/plain',
)
print(uploaded.url)

# List
listing = client.list_objects(prefix='assets/')
for blob in listing.blobs:
    print(blob.url)

# Download and delete
content = client.get(uploaded.url)
client.delete([uploaded.url])

# Runtime Cache
from vercel.cache import get_cache
cache = get_cache(namespace='my-app')
cache.set('key', {'value': 42}, {'ttl': 60, 'tags': ['my-tag']})
result = cache.get('key')  # dict or None
cache.expire_tag('my-tag')

view raw JSON →