Using bitbucket-cloud-client with bitbucket.org

Python integration

Install
pip install bitbucket-cloud-client
Quick start
import bitbucket-cloud-client

# Set your API key
client = bitbucket_cloud_client.Client(api_key="YOUR_API_KEY")
Get current user
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/user
List snippets
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/snippets
List workspaces for user
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/workspaces
SDK on GitHub 📄 API Docs
SDK
bitbucket-cloud-client
Python
API
bitbucket.org
bitbucket.org
At a glance
Language Python
Endpoints303
Base URLhttps://api.bitbucket.org/2.0