Py-ms

Latest version: v2.8.0

Safety actively analyzes 621876 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

3.0.2

info:
title: Testing
version: 1.0.0
description: Testing
termsOfService: http://swagger.io/terms/
contact:
name: Testing
email: testtest.com
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

2.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
Changed `CONFIGMAP_FILE` -> `PYMS_CONFIGMAP_FILE`, `KEY_FILE` -> `PYMS_KEY_FILE`
https://py-ms.readthedocs.io/en/latest/configuration/environments-variables-of-pyms

**Improvements**
* Added type hinting 167, 177 - Gavin

2.6.1

**Fixes**
- fix(metrics): use rule as path 150 - alexppg

2.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

2.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
python
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

2.5.0

**Features**

* Reverse proxy pattern 103
* Added AWS kms support 105
* Added patch method to request service 104 - LiangJQ

**Fixes**

* Don't enable services implicitly 106
When receiving a request, it will return the next error:
text
Tracer error: 'NoneType' object has no attribute 'tracer'

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.