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
Release history Release notifications | RSS feed
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.18.tar.gz
(26.0 kB
view hashes)
Built Distribution
Close
Hashes for python_bridge-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16031d36a2cda49ba3c9c096475457953612c941ca45d9c367c38c9edd1bf720 |
|
MD5 | 8eab0170b31c5d62dac33f495d27813b |
|
BLAKE2b-256 | e2834b1af9ae2776519999d4f5867f8adcedc1d1bd8a3f3d6e5d71f9246cb113 |