Skip to main content

Gumo Core Library

Project description

gumo-core

CircleCI

Configuration

from gumo.core import configure as core_configure

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

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


# 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()

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

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

EntityKey

from gumo.core import EntityKey
from gumo.core import EntityKeyFactory

key = EntityKeyFactory().build(kind='Book', name='978-1-4028-9462-6')

assert isinstance(key, EntityKey)
assert key.key_literal() == "Key('Book', '978-1-4028-9462-6')"
assert key.key_path() == 'Book:978-1-4028-9462-6'
assert key.key_url() == 'Book/978-1-4028-9462-6'

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

gumo-core-0.1.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

gumo_core-0.1.4-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file gumo-core-0.1.4.tar.gz.

File metadata

  • Download URL: gumo-core-0.1.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for gumo-core-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f4e3d8edbff46f43a12bd87e1bda8307c9487b94c72cd57e70ed5f8c2ac5563c
MD5 d59b9356cf8c0e711536c40ccafdace5
BLAKE2b-256 95491e97347002d8676b2e045ff2093798d36e0fa3aa408ca96f7e1f963a4bd9

See more details on using hashes here.

File details

Details for the file gumo_core-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gumo_core-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for gumo_core-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2154b51c20025ca2b39dae46b6b97eb427d7c80599e21f5dbdcd1b4d01fba652
MD5 201359b84a5fed3b28aa26e6f2f9dcbc
BLAKE2b-256 800079b620854e51116c99988dd8f276efe14dcbfcb37c621c4eaec004f8a143

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page