Skip to main content

A Python tool to abstract your Django infrastructure.

Project description

bridge


Automate your local and deployed infra in one line.

#todo add gif

[docs]

What is bridge?

Bridge enables you to seamlessly run and deploy all of the infrastructure you need for your python web application.

  • Out of the box support for Django, FastAPI, and Flask
  • One line of copy-paste configuration
  • Local postgres database automatically configured and connected
  • Local Redis and Celery instances automatically configured and connected
  • Easy one-command deploy configuration for Render and Heroku

Installation

pip install python-bridge

Usage

Adding bridge to your project is incredibly simple.

from bridge.framework.[framework] import configure

configure(locals())
Django Place this code snippet at the end of your `settings.py` file:
from bridge.framework.django import configure
configure(locals())
Flask Place this code snippet at the end of your `settings.py` file:
from bridge.flask import configure
configure(locals())
Fast API Place this code snippet at the end of your `settings.py` file:
from bridge.fastapi import configure
configure(locals())

The next time you start up your application, bridge will create and configure local infrastructure for you.

Deploys

Bridge can also handle deployed configuration for your app as well! Simply run

bridge init [heroku|render]

and bridge will create all of the configuration necessary for you to 1 click deploy onto either Heroku or Render's hosting solutions.

Advanced usage

  • turn on/off different services
  • specify environment variables?

TODO

  • add support for celery, redis, mailhog/mail, jupyter
  • add support for flask, fastapi, ...
  • add support for pip install python-bridge[redis,flask,etc]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-bridge-0.0.22.tar.gz (27.0 kB view hashes)

Uploaded Source

Built Distribution

python_bridge-0.0.22-py3-none-any.whl (33.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page