• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docker_pycreds.egg-info/H03-May-2022-6044

dockerpycreds/H29-Nov-2018-185151

tests/H29-Nov-2018-11292

LICENSEH A D29-Nov-201811.1 KiB203169

MANIFEST.inH A D29-Nov-2018118 65

PKG-INFOH A D29-Nov-20182 KiB6044

README.mdH A D29-Nov-2018822 3520

setup.cfgH A D29-Nov-2018108 117

setup.pyH A D29-Nov-20181.6 KiB5746

README.md

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