Python bindings for the docker credentials store API
Project description
# 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.list())
print(store.get('https://index.docker.io/v1/'))
store.erase('https://index.docker.io/v1/')
```
[![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.list())
print(store.get('https://index.docker.io/v1/'))
store.erase('https://index.docker.io/v1/')
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker-pycreds-0.4.0.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for docker_pycreds-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7266112468627868005106ec19cd0d722702d2b7d5912a28e19b826c3d37af49 |
|
MD5 | 1660c3aa07d9368af96749862f00976f |
|
BLAKE2b-256 | f5e8f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054 |