Skip to main content

TablePlus DB URLS

Coverage

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 name added.

0.1.3 (2024-05-15)

  • Bug fix with CLI implementation after name added.

0.1.2 (2024-05-15)

  • Added name argument to name the connection.

0.1.1 (2024-04-23)

  • Moved from argparse to click
  • Moved from python-environ to python-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)

Source distribution for tableplus-db-urls 0.1.4
File Size Uploaded
tableplus_db_urls-0.1.4.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tableplus-db-urls 0.1.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page