跳至主要内容

Docker凭据存储API的Python绑定

项目描述

# docker-pycreds

[![CircleCI](https://circleci.com/gh/shin-/dockerpy-creds/tree/master.svg?style=svg)](https://circleci.com/gh/shin-/dockerpy-creds/tree/master)

Docker凭据存储API的Python绑定

## 凭据存储信息

[Docker文档页面](https://docs.docker.net.cn/engine/reference/commandline/login/#/credentials-store)

## 要求

除了`requirements.txt`中的依赖项之外,用户系统上必须安装适用于平台的`docker-credential`
可执行文件。

## API使用

```python

import dockerpycreds

store = dockerpycreds.Store('secretservice')
store.store(
server='https://index.docker.io/v1/', username='johndoe',
secret='hunter2'
)

print(store.list())

print(store.get('https://index.docker.io/v1/'))


store.erase('https://index.docker.io/v1/')
```


项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

docker-pycreds-0.4.0.tar.gz (8.8 kB 查看哈希值)

上传时间 源代码

构建分发

docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB 查看哈希值)

上传时间 Python 2 Python 3

支持者