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
$ pyenv virtualenv 3.7.2 gumo-core
$ pyenv local 3.7.2/envs/gumo-core
$ make setup
Build and Test
$ make build
$ make test
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.10.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for gumo_core-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed0b7bb187ccccd9802aefbaae634ed5fa6de0d5aa49fa0495ac3542bb9ac70 |
|
MD5 | a90fcf85c11611f5975288bbe33b6fc6 |
|
BLAKE2b-256 | b9849bac9a8b5af88bef90854b286cb8e027d9da229c88e1d8fcd7989e5d4c6d |