Share Python scripts, data analysis code, API snippets, or config files: encrypted before they leave your browser and readable by anyone with the link.
1import httpx2from dataclasses import dataclass3from typing import Optional45@dataclass6class User:7 id: int8 name: str9 email: str1011async def fetch_user(12 client: httpx.AsyncClient,13 user_id: int,14) -> Optional[User]:15 response = await client.get(f"/users/{user_id}")16 if response.status_code == 404:17 return None18 response.raise_for_status()19 data = response.json()20 return User(id=data["id"], name=data["name"], email=data["email"])Paste Python code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.
Deleted on first open. Can't be viewed twice.
Add a password for end-to-end encryption with no raw key stored.
Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.
No sign-up, no email, no ads. Paste and share in seconds.
Yes. Select Python when creating a paste and your code is rendered with full syntax highlighting server-side using Shiki: no client-side JavaScript needed.
textdrop.sh supports pastes up to 5 MB, which covers virtually any single Python file. For multi-file projects, paste the most relevant file and link to your repository for the rest.
Yes. AES-256-GCM encryption runs in your browser before upload. Non-password pastes store the raw data key server-side for simple sharing and raw access; password-protected pastes keep the raw key out of the server.