Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gumo-datastore

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gumo-datastore

Gumo Datastore Library

  • 0.2.0
  • PyPI
  • Socket score

Maintainers
2

gumo-datastore

CircleCI

Configuration

from gumo.core import configure as core_configure
from gumo.datastore import configure as datastore_configure

core_configure(
    google_cloud_project='<Google Cloud Platform Project Name>',
    google_cloud_location='<Project Main Location (Region)>',
)

datastore_configure(
    use_local_emulator=True,
    emulator_host='datastore_emulator:8081',
    namespace=None,
)

If you need to load environment variables of app.yaml:

import os
import flask
from gumo.core import MockAppEngineEnvironment
# from gumo.core import configure as core_configure
# from gumo.datastore import configure as datastore_configure


# The call to MockAppEngineEnvironment must precede any other initialization code.
if __name__ == '__main__':
    app_yaml_path = os.path.join(
        os.path.dirname(os.path.abspath(__file__)),
        'app.yaml'
    )
    MockAppEngineEnvironment.load_app_yaml(app_yaml_path=app_yaml_path)

# core_configure(...)
# datastore_configure(...)

# Application Configurations ...
app = flask.Flask(__name__)

# TODO: Add a sample of Repository implementation using DatastoreRepositoryMixin.

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080, debug=True)

Setup Development Environment

$ git clone https://github.com/gumo-py/gumo-core.git
$ cd gumo-core

$ make setup

Build and Test

$ make build

$ make test

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc