Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
docker_pycreds.egg-info/ | H | 03-May-2022 | - | 60 | 44 | |
dockerpycreds/ | H | 29-Nov-2018 | - | 185 | 151 | |
tests/ | H | 29-Nov-2018 | - | 112 | 92 | |
LICENSE | H A D | 29-Nov-2018 | 11.1 KiB | 203 | 169 | |
MANIFEST.in | H A D | 29-Nov-2018 | 118 | 6 | 5 | |
PKG-INFO | H A D | 29-Nov-2018 | 2 KiB | 60 | 44 | |
README.md | H A D | 29-Nov-2018 | 822 | 35 | 20 | |
setup.cfg | H A D | 29-Nov-2018 | 108 | 11 | 7 | |
setup.py | H A D | 29-Nov-2018 | 1.6 KiB | 57 | 46 |
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