Datastore Viewer for emulator
Project description
datastore-viewer
datastore-viewer is a simple viewer of Google Cloud Datastore Emulator.
Quickstart using docker-compose
A example of docker-compose.yml:
version: "3"
services:
datastore_emulator:
image: quay.io/gumo/datastore-emulator
environment:
DATASTORE_PROJECT_ID: test-project
DATASTORE_LISTEN_ADDRESS: 0.0.0.0:8081
ports:
- "8081:8081"
volumes:
- datastore-emulator-storage:/opt/data
# command: start-datastore --no-store-on-disk --consistency=1.0
datastore_viewer:
image: quay.io/gumo/datastore-viewer
environment:
DATASTORE_VIEWER_HOST: 0.0.0.0
DATASTORE_VIEWER_PORT: 18081
GOOGLE_CLOUD_PROJECT: test-project
DATASTORE_EMULATOR_HOST: datastore_emulator:8081
depends_on:
- datastore_emulator
ports:
- "18081:18081"
volumes:
datastore-emulator-storage:
driver: local
Execute docker containers:
docker-compose up
Please access to: http://127.0.0.1:18081
for Developers
Setup
Create new venv:
$ python -m venv venv
$ source venv/bin/activate
Upgrade pip and install building tools:
$ pip install --upgrade pip
$ pip install twine wheel pytest pip-tools
Install dependency packages:
$ pip install -r requirements.txt
Run
$ export DATASTORE_EMULATOR_HOST=127.0.0.1:8081
$ make run
Package Build
$ make build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datastore-viewer-0.2.0.tar.gz
(779.2 kB
view hashes)
Built Distribution
Close
Hashes for datastore_viewer-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1a3a9f79b9bc9210186d1dc496de0a3c6441ceb3ffae10ba9e119e507f7072 |
|
MD5 | 8874264781bc1ca221f148f58e90bf13 |
|
BLAKE2b-256 | 61d227fc2c4fd197ec3ff4498972e748c13cab97e0cf2675b48fb8da5ea5c56e |