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
Built Distribution
File details
Details for the file tableplus_macos_update_creds-0.1.1.tar.gz
.
File metadata
- Download URL: tableplus_macos_update_creds-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a0e485ec98fa3dd6aedb027befa0c08a497af3dd2e78db1911a95ba39e6f017 |
|
MD5 | 49bba5343693a82f4c8587b9d926a704 |
|
BLAKE2b-256 | eab0ee3da67677e7f8775e10248fdca1cb3844af8b03d4e46c2cf494f30654a8 |
File details
Details for the file tableplus_macos_update_creds-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: tableplus_macos_update_creds-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c014ebf3fee0d8e9a6587291ce0414b96d3694772965a29f69df4c94626ef1 |
|
MD5 | cb6b68a8911bea4413b51ffcd1a04d86 |
|
BLAKE2b-256 | 3c71ea85ec471414a69f21b752e5453de3564d1fe11b4bca3aefb7249c812ee4 |