All Projects → ptpb → Pb

ptpb / Pb

Licence: other
pb is a formerly-lightweight pastebin and url shortener

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pb

Todo List Using Flask And Mongodb
Simple implementation of ToDo List using Flask and MongoDB along with Dockerfile and Kubernetes yaml files #Flask #Example #Docker #Kubernetes #k8s
Stars: ✭ 61 (-86.38%)
Mutual labels:  mongodb, flask
Origami
🔓 🔑 🔐 Origami: Artificial Intelligence as a Service
Stars: ✭ 140 (-68.75%)
Mutual labels:  mongodb, flask
Flask Restful Authentication
An example for RESTful authentication using nginx, uWSGI, Flask, MongoDB and JSON Web Token(JWT).
Stars: ✭ 63 (-85.94%)
Mutual labels:  mongodb, flask
Restfulapi
flask-restful 中小型项目实例
Stars: ✭ 50 (-88.84%)
Mutual labels:  mongodb, flask
Bepasty Server
binary pastebin server
Stars: ✭ 111 (-75.22%)
Mutual labels:  pastebin, flask
Openclubhouse
A third-part web application based on flask to play Clubhouse audio.
Stars: ✭ 1,061 (+136.83%)
Mutual labels:  mongodb, flask
Yspider
yspider -- 轻量级爬虫系统
Stars: ✭ 125 (-72.1%)
Mutual labels:  mongodb, flask
Social Listener
Python project used to collect tweets and social-network data from Social's API
Stars: ✭ 9 (-97.99%)
Mutual labels:  mongodb, flask
Machine Learning
Web-interface + rest API for classification and regression (https://jeff1evesque.github.io/machine-learning.docs)
Stars: ✭ 235 (-47.54%)
Mutual labels:  mongodb, flask
Quokka
LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
Stars: ✭ 2,198 (+390.63%)
Mutual labels:  mongodb, flask
Docker Flask Mongodb Example
Uses docker compose with a python flask microservice and MongoDB instance to make a sample application
Stars: ✭ 49 (-89.06%)
Mutual labels:  mongodb, flask
Data Driven Web Apps With Flask
Course demo code and other hand-out materials for our data-driven web apps in Flask course
Stars: ✭ 388 (-13.39%)
Mutual labels:  mongodb, flask
P2p
一个基于 python 的 flask 框架的资讯网站, http://119.29.100.53:8086/
Stars: ✭ 28 (-93.75%)
Mutual labels:  mongodb, flask
Eve Building Restful Mongodb Backed Apis Course
Course materials and handouts for EVE: Building RESTful MongoDB-backed APIs course
Stars: ✭ 53 (-88.17%)
Mutual labels:  mongodb, flask
Bibi
An e-commerce fullstack solution for Flask 出口电商全栈解决方案
Stars: ✭ 914 (+104.02%)
Mutual labels:  mongodb, flask
Blogreworkpro
Rework the BlogRework, a SEO friendly SPA, build with flask, react, redux, mongodb...
Stars: ✭ 86 (-80.8%)
Mutual labels:  mongodb, flask
Osroom
[很多问题在维修中, 作者疫情期间忙碌,很多问题无法及时处理] 准备v3.0 Beta, v2.2维护少| OS鹿 | Python Flask开源网站
Stars: ✭ 557 (+24.33%)
Mutual labels:  mongodb, flask
Eve
REST API framework designed for human beings
Stars: ✭ 6,421 (+1333.26%)
Mutual labels:  mongodb, flask
Appkernel
API development made easy: a smart Python 3 API framework
Stars: ✭ 152 (-66.07%)
Mutual labels:  mongodb, flask
Bgp Dashboard
BGP Dashboard and Monitoring Web Application
Stars: ✭ 268 (-40.18%)
Mutual labels:  mongodb, flask

== pb

.. image:: https://img.shields.io/circleci/project/github/ptpb/pb.svg :target: https://circleci.com/gh/ptpb/pb

.. image:: https://img.shields.io/codecov/c/github/ptpb/pb.svg :target: https://codecov.io/gh/ptpb/pb

.. image:: https://img.shields.io/docker/automated/ptpb/pb.svg :target: https://hub.docker.com/r/ptpb/pb

Overview

pb is a lightweight pastebin and url shortener built using flask <http://flask.pocoo.org/>_.

There is currently no known general-purpose public pb deployment. See #246 <https://github.com/ptpb/pb/issues/246>_ for details.

Features

  • 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

Development

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

ptpb.pw (the reference deployment) uses ptpb-deploy <https://github.com/ptpb/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 <https://docs.python.org/3/library/venv.html>_

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

  • not using debian or centos

    • these provide severely outdated packages, and require additional work to compensate for this
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].