File: README.md

package info (click to toggle)
docker-pycreds 0.3.0-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 156 kB
  • sloc: python: 251; makefile: 6
file content (30 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# docker-pycreds

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

Python bindings for the docker credentials store API

## Credentials store info

[Docker documentation page](https://docs.docker.com/engine/reference/commandline/login/#/credentials-store)

## Requirements

On top of the dependencies in `requirements.txt`, the `docker-credential`
executable for the platform must be installed on the user's system.

## API usage

```python

import dockerpycreds

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

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