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
$ python3 -m pip install tableplus-db-urls
Usage
# --path should be your django project root
$ tableplus generate --path="." --name="DB Name" --ssh-user="user" --ssh-host="xxx.xxx.x.x"
NOTE: TablePlus DB URLs assumes you use an SSH Key to login and not password.
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
make pip_install_editable
Testing
make pytest
make coverage
make open_coverage
Issues
If you experience any issues, please create an issue on GitHub.
History
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.4 (2024-05-15)
- Too quick on the trigger! Bug fix with CLI implementation after
nameadded.
0.1.3 (2024-05-15)
- Bug fix with CLI implementation after
nameadded.
0.1.2 (2024-05-15)
- Added
nameargument to name the connection.
0.1.1 (2024-04-23)
- Moved from
argparsetoclick - Moved from
python-environtopython-dotenv - Fixed bug with production URL
0.1.0 (2024-04-09)
- First release
Metadata
Release files for tableplus-db-urls 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tableplus_db_urls-0.1.4.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tableplus_db_urls-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / tableplus_db_urls-0.1.4.tar.gz
| Download URL | tableplus_db_urls-0.1.4.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2c4cd3427a1b734f06edd9e195cff89b1da1b43cce789cc16fbe055827753cd
|
|
BLAKE2b-256 checksum How to use checksums |
573b9f25023ddc643030fea4be4cb7439251417812ec5840cd76fb4f202446d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|
Release files / tableplus_db_urls-0.1.4-py3-none-any.whl
| Download URL | tableplus_db_urls-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cee465efe3c2c99dbb548134eeef554b2a854ae0ea3474e9a8a443397e6b95c
|
|
BLAKE2b-256 checksum How to use checksums |
effe290d02672c9df41d390b03c1ad2e1ec5363c162f77387bf9da18abe313ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|