我已经安装了credstash在我的电脑上。我可以在命令提示符下使用“credstash get [credential]”等命令。
但是,在 python 解释器中,使用“import credstash”后,尝试使用“credstash get [credential]”命令时出现语法错误:
>>> import credstash
>>> credstash get credstash
File "<stdin>", line 1
credstash get credstash
^
SyntaxError: invalid syntax
最佳答案
该语法适用于命令行,对于Python,您应该使用credstash.getAllSecrets()
或credstash.getSecret()
关于python - 在 Python 中使用 credstash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40765742/