How do I use Code Buckets from Python?
import os, requests
CB = "https://api.codebuckets.clatterlabs.xyz"
H = {"Authorization": f"Bearer {os.environ['CLATTER_API_KEY']}",
"X-Clatter-Account": os.environ["CLATTER_ACCOUNT_ID"]}
projects = requests.get(f"{CB}/v1/projects", headers=H).json()["data"]
print([p["name"] for p in projects])
For uploads, copy the complete uploader from the Uploads guide: it sends 4 chunks in parallel, checks SHA-256 and can resume.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.