Python

Share Python code online.

Share Python scripts, data analysis code, API snippets, or config files: encrypted before they leave your browser and readable by anyone with the link.

textdrop.sh/xk4mR2
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"])
Every paste includes

Python syntax highlighting

Paste Python code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.

Burn after read

Deleted on first open. Can't be viewed twice.

Password protection

Add a password for end-to-end encryption with no raw key stored.

Configurable expiry

Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.

No account needed

No sign-up, no email, no ads. Paste and share in seconds.

How it works
Plain Text
Markdown
Code
DB_HOST=db-01.prod.internal
DB_USER=api_svc
DB_PASS=xK9$mP2!qR7nLw2
REDIS_URL=redis://:abc@cache:6379
delete after setup — expires 1hr
7 days
Share
textdrop.sh/
7 days · plain text
Use cases
  • 01Share data analysis scripts with your team
  • 02Send API client code for async review
  • 03Distribute migration or deployment scripts securely
  • 04Share reproducible bug reports
  • 05Send one-off config or environment snippets
FAQ
Does textdrop.sh support Python syntax highlighting?+

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.

Can I share a large Python file?+

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.

Is my Python code encrypted?+

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.

Other languages
Drop your code