【文件属性】:
文件名称:stashy:Atlassian Stash REST API的Python API客户端
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-06 21:41:01
Python
藏匿
Atlassian Bitbucket Server(以前称为Stash)Python客户端。 支持Python 2.6、2.7、3.5、3.6和3.7
安装
pip install stashy
测验
tox
用法
import stashy
stash = stashy . connect ( "http://localhost:7990/stash" , "admin" , "admin" )
例子
检索所有组
stash . admin . groups . list ()
检索与给定过滤器匹配的所有用户
stash . admin . users . list ( filter = "admin" )
将用户添加到组
stash . admin . groups . add_user ( 'stash-users' , 'admin' )
遍历所有项目(您有权访问)
【文件预览】:
stashy-master
----test-requirements.txt(25B)
----.gitignore(80B)
----README.md(7KB)
----CHANGELOG.md(393B)
----tests()
--------test_client.py(536B)
--------resources()
--------test_pullrequests.py(1KB)
--------__init__.py(0B)
----stashy()
--------ssh.py(2KB)
--------allrepos.py(413B)
--------errors.py(2KB)
--------permissions.py(8KB)
--------pullrequests.py(11KB)
--------compat.py(347B)
--------diffs.py(2KB)
--------settings.py(2KB)
--------fileinfo.py(1KB)
--------repos.py(14KB)
--------builds.py(1KB)
--------default_reviewers.py(3KB)
--------projects.py(5KB)
--------admin()
--------__init__.py(450B)
--------pullrequestdiffs.py(2KB)
--------helpers.py(6KB)
--------branch_permissions.py(4KB)
--------client.py(4KB)
----docs()
--------conf.py(8KB)
--------index.rst(1KB)
--------api.rst(667B)
--------Makefile(5KB)
----LICENSE(559B)
----requirements.txt(65B)
----MANIFEST.in(56B)
----setup.py(1KB)
----.travis.yml(225B)
----tox.ini(319B)