-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor config * Fix flake8 * Disabled services with key "enabled" without remove code block * Fix pylint error
- Loading branch information
Showing
32 changed files
with
293 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
pyms: | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
ms: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" | ||
request_variable_test: "this is a test" | ||
MyVar: "this is MyVar" | ||
test1: "ttest1" | ||
test2: "ttest2" | ||
services: | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
config: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" | ||
request_variable_test: "this is a test" | ||
MyVar: "this is MyVar" | ||
test1: "ttest1" | ||
test2: "ttest2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from pyms.flask.app import Microservice | ||
|
||
ms = Microservice(service="my-ms", path=__file__) | ||
ms = Microservice(path=__file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
pyms: | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
my-ms: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" | ||
services: | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
config: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
pyms: | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
url: "ws-doc/" | ||
my-ms: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" | ||
services: | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
url: "ws-doc/" | ||
config: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from pyms.flask.app import Microservice | ||
|
||
ms = Microservice(service="my-ms", path=__file__) | ||
ms = Microservice(path=__file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
pyms: | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
tracer: | ||
client: "jaeger" | ||
host: "localhost" | ||
component_name: "Python Microservice" | ||
my-ms: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" | ||
services: | ||
metrics: true | ||
requests: | ||
data: "" | ||
swagger: | ||
path: "" | ||
file: "swagger.yaml" | ||
tracer: | ||
client: "jaeger" | ||
host: "localhost" | ||
component_name: "Python Microservice" | ||
config: | ||
DEBUG: true | ||
TESTING: false | ||
APP_NAME: "Python Microservice" | ||
APPLICATION_ROOT: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
my-minimal-microservice: | ||
DEBUG: true | ||
TESTING: false | ||
SWAGGER: true | ||
APP_NAME: business-glossary | ||
APPLICATION_ROOT : "" | ||
SECRET_KEY: "gjr39dkjn344_!67#" | ||
pyms: | ||
config: | ||
DEBUG: true | ||
TESTING: false | ||
SWAGGER: true | ||
APP_NAME: business-glossary | ||
APPLICATION_ROOT : "" | ||
SECRET_KEY: "gjr39dkjn344_!67#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pyms: | ||
config: | ||
app_name: "Python Microservice" | ||
environment: "I'm running in docker" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
my-minimal-microservice: | ||
APP_NAME: "Python Microservice" | ||
environment: "I'm running in a local machine" | ||
pyms: | ||
config: | ||
app_name: "Python Microservice" | ||
environment: "I'm running in a local machine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
CONFIGMAP_FILE_ENVIRONMENT = "CONFIGMAP_FILE" | ||
SERVICE_ENVIRONMENT = "CONFIGMAP_SERVICE" | ||
|
||
LOGGER_NAME = "pyms" | ||
|
||
SERVICE_BASE = "pyms" | ||
CONFIG_BASE = "pyms.config" | ||
|
||
SERVICE_BASE = "pyms.services" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.