Python Pastebin
Python Pastebin is a self-hosted lightweight text sharing application based on Flask and SQLite. It supports encrypted storage, IP-level speed limits, CSRF protection, burn-after-read and automatic cleanup. It can be run locally or quickly deployed through Docker. It is suitable for individuals and teams to securely share text fragments on the intranet or behind reverse proxy.
- Text sharing: Create a unique URL that can be shared, support web viewing and original text mode - Encrypted storage: Use Fernet to encrypt content to ensure that data is unreadable in the library - CSRF protection: POST requests have built-in CSRF check to reduce the risk of cross-site requests - Rate limit: Control the submission frequency by IP to prevent abuse and library swiping - Burn after reading: You can set the upper limit of browsing times and automatically delete if exceeded - Automatic cleanup: Support regular cleanup of expired pastes by days (default 90 days) - Environment configuration: Configure secret keys, domain names, expiration days and number of times after reading through environment variables



