1# docker-pycreds
2
3[![CircleCI](https://circleci.com/gh/shin-/dockerpy-creds/tree/master.svg?style=svg)](https://circleci.com/gh/shin-/dockerpy-creds/tree/master)
4
5Python bindings for the docker credentials store API
6
7## Credentials store info
8
9[Docker documentation page](https://docs.docker.com/engine/reference/commandline/login/#/credentials-store)
10
11## Requirements
12
13On top of the dependencies in `requirements.txt`, the `docker-credential`
14executable for the platform must be installed on the user's system.
15
16## API usage
17
18```python
19
20import dockerpycreds
21
22store = dockerpycreds.Store('secretservice')
23store.store(
24    server='https://index.docker.io/v1/', username='johndoe',
25    secret='hunter2'
26)
27
28print(store.list())
29
30print(store.get('https://index.docker.io/v1/'))
31
32
33store.erase('https://index.docker.io/v1/')
34```
35