Awesome Open Source
Awesome Open Source

== pb

.. image:: :target:

.. image:: :target:

.. image:: :target:


pb is a lightweight pastebin and url shortener built using flask <>_.

There is currently no known general-purpose public pb deployment. See #246 <>_ for details.


  • full paste and short-url CRUD
  • private pastes
  • tweakable syntax highlighting
  • terminal recording playback
  • markup rendering

Suggested versions

  • python >= 3.6
  • mongodb >= 3.2
  • docker >= 17.04


pb comes with a Dockerfile and docker-compose.yaml to start development environments easily. Refer to relevant documentation for how to install docker and docker-compose.

start pb with::

docker-compose up

pb will be listening on http://localhost:10002

Deployment (the reference deployment) uses ptpb-deploy <>_, which includes TLS termination, automatic x509 certificate rotation, and response caching.

For a simpler deployment, the included Dockerfile and docker-compose.yaml can be used verbatim, and are easy to read/study.

Other best practices include:

  • not using a shared/system python, when this is shared with packages other than pb

    • using site-packages is fine/preferred inside a container or isolated filesystem, otherwise use venv <>_

    • if you need/want a version of python other than what your distribution packages, pyenv <>_ is a good option

  • not using debian or centos

    • these provide severely outdated packages, and require additional work to compensate for this

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (51,899
mongodb (788
flask (508
pastebin (30

Find Open Source By Browsing 7,000 Topics Across 59 Categories