[英]Using credstash in Python
I've installed credstash on my computer. 我已经在计算机上安装了credstash 。 I'm able to use commands like "credstash get [credential]" while in the command prompt.
在命令提示符下,我可以使用“ credstash get [credential]”之类的命令。
However, when in a python interpreter, after I use "import credstash" I am getting syntax errors when attempting to use the "credstash get [credential]" command: 但是,当在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()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.