Generate TablePlus DB URLs from CookieCutter Django to make setting up connections easier.
Project description
TablePlus DB URLS
Overview
Generate TablePlus DB URLs from CookieCutter Django to make setting up connections easier. Yea, I'm that lazy!
It assumes you are using django-cookiecutter with the use_docker=y
option and that you are connecting to your Postgres DB over SSH using your private key (~/.ssh/config
) in production.
It is looking for your .postgres
env files that are generated by cookiecutter at
Installation
pip install tableplus-db-urls
Usage
# --path should be your django project root
$ tableplus --path="." --ssh-user="user" --ssh-host="xxx.xxx.x.x"
Then in TablePlus, on the main screen, right-click and choose New
> Connection from URL...
and use the URLs provided by the output.
Development
make env
make pip_install
python3 -m pip install -e .
Testing
make pytest
make coverage
make open_coverage
Issues
If you experience any issues, please create an issue on Bitbucket.
History
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.0.1 (2024-04-09)
- First release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for tableplus_db_urls-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b331475297f2695519ae3dec26fabafc9f93a3bf0cd8f588e1a03304968b113c |
|
MD5 | 107178798ab49030ce841e006069a14c |
|
BLAKE2b-256 | 7ca14e95675d92dd76b6d3a409d85faef6c16a2f0706e582a6b2352a7b1bd76e |