gpt4 book ai didi

python - 在 Python 中使用 credstash

转载 作者:可可西里 更新时间:2023-11-01 10:03:53 26 4
gpt4 key购买 nike

我已经安装了 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com