{"id":41777843,"url":"https://github.com/teklynk/pastebin","last_synced_at":"2026-01-25T03:33:04.668Z","repository":{"id":306484976,"uuid":"1025973391","full_name":"teklynk/pastebin","owner":"teklynk","description":"Simple Python pastebin solution. Python, Flask, SQLite, Docker","archived":false,"fork":false,"pushed_at":"2025-12-28T02:08:19.000Z","size":3252,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-30T07:45:21.738Z","etag":null,"topics":["docker","docker-compose","flask-application","pastebin","pastebin-service","python","self-hosted"],"latest_commit_sha":null,"homepage":"https://paste.teklynk.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teklynk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-25T05:38:14.000Z","updated_at":"2025-12-28T02:08:22.000Z","dependencies_parsed_at":"2025-08-31T00:16:58.367Z","dependency_job_id":"07e35935-ffa7-424e-9c67-fc4c1635afb7","html_url":"https://github.com/teklynk/pastebin","commit_stats":null,"previous_names":["teklynk/pastebin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teklynk/pastebin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teklynk%2Fpastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teklynk%2Fpastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teklynk%2Fpastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teklynk%2Fpastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teklynk","download_url":"https://codeload.github.com/teklynk/pastebin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teklynk%2Fpastebin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28742975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","flask-application","pastebin","pastebin-service","python","self-hosted"],"created_at":"2026-01-25T03:33:04.052Z","updated_at":"2026-01-25T03:33:04.664Z","avatar_url":"https://github.com/teklynk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Pastebin\n\nA simple, self-hosted pastebin web application built with Flask.  \nSupports rate limiting, CSRF protection, encrypted contents and automatic cleanup of old pastes.\n\n[pastebin_demo.webm](https://github.com/user-attachments/assets/6f51e04f-1be2-40f3-b7f8-697d5c20d878)\n\n## Features\n\n- Create and share text pastes with unique URLs\n- View raw paste content\n- Rate limiting per IP address\n- CSRF protection for POST requests\n- Encrypted pastes\n- Automatic deletion of pastes older than (user defined)\n- Burn after reading\n- Configurable via environment variables\n- Runs locally or in Docker\n\n## Getting Started\n\n### Local Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/teklynk/python_paste.git\n   cd python_paste\n   ```\n\n2. **Create a virtual environment:**\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate\n   ```\n\n3. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure environment variables:**\n   - Rename `sample.env` to `.env`\n   - Edit `.env` and set your `SECRET_KEY` and `ALLOWED_DOMAIN`\n\n5. **Run the application:**\n   ```bash\n   python3 python_paste.py\n   ```\n\n6. **Deactivate the virtual environment (optional):**\n   ```bash\n   deactivate\n   ```\n\n### Docker Setup\n\n1. **Configure environment variables:**\n   - Rename `sample.docker-compose.yml` to `docker-compose.yml`\n   - Edit `docker-compose.yml` and set your `SECRET_KEY`, `ALLOWED_DOMAIN` and `ENCRYPTION_KEY` under the `environment` section\n\n2. **Build and run the container:**\n   ```bash\n   docker-compose up --build\n   ```\n\n## Notes\n- On first run, the app will generated a `ENCRYPTION_KEY` and save it to the `.env` if it does not already exist. Fernet key must be 32 url-safe base64-encoded bytes.\n- If running locally, ensure `.env` is present and configured. `ENCRYPTION_KEY` key must be 32 url-safe base64-encoded bytes.\n- If using Docker, configure environment variables in `docker-compose.yml`. Do not use the `.env` file with docker. The `.env` is only needed when running the app locally with `python3 python_paste.py`.\n- Pastes older than 90 days are deleted automatically if not defined in `PASTEBIN_EXPIRATION_DAYS`.\n- `BURN_AFTER_READING_VIEWS` is set to 3 views by default if not defined in `.env` or `docker-compose.yml`.\n- The app is designed to work behind a reverse proxy (e.g., Nginx, Cloudflare) and supports real client IP detection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteklynk%2Fpastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteklynk%2Fpastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteklynk%2Fpastebin/lists"}