Gumo Core Library
Project description
gumo-core
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
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
gumo-core-0.0.30.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gumo-core-0.0.30.tar.gz.
File metadata
- Download URL: gumo-core-0.0.30.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68831b7e677d9f7f9fe0f213ff232ee73e17482b3e1867cbba2a584923f6a4e5
|
|
| MD5 |
6eb212d0a35983ecfa9c4b28c936773b
|
|
| BLAKE2b-256 |
a2081859d464a4efde71dbe11dccf95d9558d3f1c446d784521e86462601d9fb
|
File details
Details for the file gumo_core-0.0.30-py3-none-any.whl.
File metadata
- Download URL: gumo_core-0.0.30-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639115b5d8950467c1e933aa0d41acc82e5094ee419d94d3ac6bb8c05a1f51ae
|
|
| MD5 |
7aff1fe4cddce919d1ce7808ba6edc05
|
|
| BLAKE2b-256 |
b49eb5991eeb1a1a7dc28d1feeb29423b65ad8096ad94ce75b19ffeb86a42b87
|