Skip to main content

A python library to update credentials for a connection in TablePlus macOS client without using GUI

Project description

tableplus-macos-update-creds

A python library to update credentials for a connection in TablePlus macOS client without using GUI

TablePlus is a neat SQL GUI client. As virtually any decent SQL client it allows juggling multiple connections, storing the credentials in a secure manner. However, updating a lot of ephemeral credentials via GUI may be somewhat annoying even though importing connections is supported.

This library's main goal is to allow updating credentials programmatically, without using GUI.

Please note that this project is not affiliated with TablePlus and all the techniques have been developed through (poor) reverse engineering. The library has only been tested against TablePlus 4.2.0 (build 388) on macOS 13.1 with python 3.7/3.8/3.9/3.10. The techniques employed may stop working if any of these happens:

  • TablePlus changes its connections config format
  • macOS changes ACL mechanics

Example

The following code may be used as a shell script

#!/usr/bin/env python3

from argparse import ArgumentParser
import sys

from tableplus_macos_update_creds import update_creds


def main():
    parser = ArgumentParser()
    parser.add_argument('--connection', dest='connection')
    parser.add_argument('--username', dest='username')
    parser.add_argument('--password', dest='password')
    args = parser.parse_args(sys.argv[1:])

    update_creds(args.connection, username=args.username, password=args.password)


if __name__ == '__main__':
    main()

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

tableplus_macos_update_creds-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file tableplus_macos_update_creds-0.1.1.tar.gz.

File metadata

File hashes

Hashes for tableplus_macos_update_creds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a0e485ec98fa3dd6aedb027befa0c08a497af3dd2e78db1911a95ba39e6f017
MD5 49bba5343693a82f4c8587b9d926a704
BLAKE2b-256 eab0ee3da67677e7f8775e10248fdca1cb3844af8b03d4e46c2cf494f30654a8

See more details on using hashes here.

File details

Details for the file tableplus_macos_update_creds-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tableplus_macos_update_creds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c014ebf3fee0d8e9a6587291ce0414b96d3694772965a29f69df4c94626ef1
MD5 cb6b68a8911bea4413b51ffcd1a04d86
BLAKE2b-256 3c71ea85ec471414a69f21b752e5453de3564d1fe11b4bca3aefb7249c812ee4

See more details on using hashes here.

Supported by

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