没有项目描述
saram的Python项目详细描述
萨拉姆比
saramPy
是saram api的python绑定。它提供了一个从python脚本使用的python模块,以及一个名为saram
的命令行实用程序。
要求
可能必须使用sudo安装,以确保saram位于路径上。 在使用sarampy之前,请确保设置api密钥。最简单的设置方法是运行 请参阅有关如何使用python模块的文档。 Documentation is on readthedocs 要手动设置文档,请从
saram目录 然后打开saramPy
仅与python 3.7+一起编写和工作
安装
pip3 install saramPy
使用pip安装开发版本
git clone https://github.com/securisec/saramPy.git
cd saramPy
pip3 install -e .
# to update future versions without reinstalling, use from inside saramPy folder
git pull
用法
初始值
saram --init yourapikey
脚本
命令行工具
$ saram --help
usage: saram [-h] -t TOKEN [-l][--comment COMMENT][-c ... | -f FILE][--baseurl BASEURL]
optional arguments:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
Token for the entry
-l, --local Dev mode. Use localhost
--comment COMMENT Add an optional comment
-c ..., --command ...
Command to run inside quotes
-f FILE, --file FILE Read a file and send it to the server
--baseurl BASEURL
文档
pip3 install sphinx
cd docs/
make clean html
_build/html/index.html
推荐PyPI第三方库