{"id":13542265,"url":"https://github.com/ptpb/pb","last_synced_at":"2026-03-15T10:42:36.788Z","repository":{"id":23937955,"uuid":"27319314","full_name":"ptpb/pb","owner":"ptpb","description":"pb is a formerly-lightweight pastebin and url shortener","archived":false,"fork":false,"pushed_at":"2024-10-31T11:15:34.000Z","size":319,"stargazers_count":551,"open_issues_count":26,"forks_count":52,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-31T12:22:18.250Z","etag":null,"topics":["flask","mongodb","pastebin","pastebin-service","pb","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ptpb.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-30T00:17:17.000Z","updated_at":"2024-10-31T11:16:28.000Z","dependencies_parsed_at":"2022-09-12T22:12:34.736Z","dependency_job_id":null,"html_url":"https://github.com/ptpb/pb","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptpb%2Fpb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptpb%2Fpb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptpb%2Fpb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptpb%2Fpb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptpb","download_url":"https://codeload.github.com/ptpb/pb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246789297,"owners_count":20834268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["flask","mongodb","pastebin","pastebin-service","pb","python"],"created_at":"2024-08-01T10:01:03.664Z","updated_at":"2025-12-18T03:45:27.316Z","avatar_url":"https://github.com/ptpb.png","language":"Python","readme":"==\npb\n==\n\n.. image:: https://img.shields.io/circleci/project/github/ptpb/pb.svg\n   :target: https://circleci.com/gh/ptpb/pb\n\n.. image:: https://img.shields.io/codecov/c/github/ptpb/pb.svg\n   :target: https://codecov.io/gh/ptpb/pb\n\n.. image:: https://img.shields.io/docker/automated/ptpb/pb.svg\n   :target: https://hub.docker.com/r/ptpb/pb\n\nOverview\n--------\n\n``pb`` is a lightweight pastebin and url shortener built using\n`flask \u003chttp://flask.pocoo.org/\u003e`_.\n\nThere is currently no known general-purpose public pb deployment. See `#246\n\u003chttps://github.com/ptpb/pb/issues/246\u003e`_ for details.\n\nFeatures\n--------\n\n* full paste and short-url CRUD\n* private pastes\n* tweakable syntax highlighting\n* terminal recording playback\n* markup rendering\n\nSuggested versions\n------------------\n\n- python \u003e= 3.6\n- mongodb \u003e= 3.2\n- docker \u003e= 17.04\n\nDevelopment\n-----------\n\npb comes with a ``Dockerfile`` and ``docker-compose.yaml`` to start development\nenvironments easily. Refer to relevant documentation for how to install ``docker``\nand ``docker-compose``.\n\nstart pb with::\n\n  docker-compose up\n\npb will be listening on ``http://localhost:10002``\n\nDeployment\n----------\n\nptpb.pw (the reference deployment) uses `ptpb-deploy\n\u003chttps://github.com/ptpb/ptpb-deploy\u003e`_, which includes TLS termination,\nautomatic x509 certificate rotation, and response caching.\n\nFor a simpler deployment, the included ``Dockerfile`` and\n``docker-compose.yaml`` can be used verbatim, and are easy to read/study.\n\nOther best practices include:\n\n- not using a shared/system python, when this is shared with packages other than pb\n\n  - using site-packages is fine/preferred inside a container or isolated\n    filesystem, otherwise use `venv\n    \u003chttps://docs.python.org/3/library/venv.html\u003e`_\n\n  - if you need/want a version of python other than what your distribution\n    packages, `pyenv \u003chttps://github.com/pyenv/pyenv\u003e`_ is a good option\n\n- not using debian or centos\n\n  - these provide severely outdated packages, and require additional work to\n    compensate for this\n","funding_links":[],"categories":["Python","Software","Pastebins"],"sub_categories":["Pastebins","Video Streaming","视频流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptpb%2Fpb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptpb%2Fpb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptpb%2Fpb/lists"}