aperture-data / aperturedb-python

ApertureDB Python Client
Other
7 stars 3 forks source link

Add --from-json to adb config create #502

Closed bovlb closed 1 month ago

bovlb commented 1 month ago

[ Recreation of https://github.com/aperture-data/aperturedb-python/pull/501 with lower-case branch name ]

Part of a set of changes to optimize quick start, etc. This change adds a --from-json option to adb config create. If specified, then the normal connection parameters are ignored and instead we look for a JSON string in one of three places:

The environment variable APERTUREDB_JSON An entry for APERTUREDB_JSON in a .env file In interactive mode, the user will be prompted to enter the JSON string. This is treated like a password.