Releases: python-microservices/pyms
Releases · python-microservices/pyms
v2.9.0rc1
v2.8.0
v2.7.0
Features
- Updated dependencies #158
- Added config reload endpoint #174 - @lcd1232
https://py-ms.readthedocs.io/en/latest/configuration/#reload-configuration-without-stopping-your-services - Support multiprocessing metrics #179 - @Agalin
- Added namespace on env vars with backward compatibility #191 - @rapejim
ChangedCONFIGMAP_FILE
->PYMS_CONFIGMAP_FILE
,KEY_FILE
->PYMS_KEY_FILE
https://py-ms.readthedocs.io/en/latest/configuration/#environments-variables-of-pyms
Improvements
v2.6.1
v2.6.0
Features
- Ability to use segmented API Specification (Swagger) included, ie, could have the following structure #115 - @f-arruza
- components/ - domain01/ - responses.yaml - schemas.yaml - responses.yaml - schemas.yaml - info.yaml - servers.yaml - swagger.yaml **(main)**
- Feature bundled specs command
pyms merge-swagger
#116 - @f-arruza
v2.5.1
Fixes
- Fix init services in tests #114
If you import config()from pyms.flask.app import config
and initialize the config file inside a function like
@pytest.fixture
def app():
"""
Return app for testing
"""
base_dir = os.path.dirname(os.path.abspath(__file__))
os.environ[CONFIGMAP_FILE_ENVIRONMENT] = os.path.join(base_dir, "config-test.yml")
The singleton pattern not reinitializes the services correctly
v2.5.0
v2.4.3
Fixes
- Dependency error when not install py-ms with
[all]
. Raise this error:
Traceback:
[...]
from pyms.flask.app import config
../../.local/share/virtualenvs/lib/python3.7/site-packages/pyms/flask/app/__init__.py:1: in <module>
from .create_app import Microservice
../../.local/share/virtualenvs/lib/python3.7/site-packages/pyms/flask/app/create_app.py:6: in <module>
from flask_opentracing import FlaskTracing
ModuleNotFoundError: No module named 'flask_opentracing'```
v2.4.1
Fixes
- Connexion path in OpenAPI 3.0
In some case, with the last version of Connexion, doesn`t understand relative path to swagger. For example, f you use OpenAPI 3 in your swagger yaml file:
---
openapi: 3.0.2
info:
title: Testing
version: 1.0.0
description: Testing
termsOfService: http://swagger.io/terms/
contact:
name: Testing
email: [email protected]
servers:
- url: http://localhost:8080/test/path/
description: ""
paths:
/test-url:
and in your configuration file APPLICATION_ROOT
is defined like
config:
DEBUG: false
TESTING: false
APP_NAME: Films&Actors
APPLICATION_ROOT : ""
The servers.url in swagger file override the base path of your application
v2.4.0
Features
- Metrics fixes - @alexppg
- Add http status code to latency metrics
- Also, change some metrics and labels name to make them more standard.
- Removed required param
path
in Microservice Class. Autodetect the current directory, If you want to deploy the microservice to production with gunicorn we recommended usepath
Fixes
- Connexion path
In some case, with the last version of Connexion, doesn`t understand relative path to swagger