Config-client

Latest version: v1.4.0

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

Scan your dependencies

Page 5 of 5

0.3.2

**changelog**

- Class `ConfigServer` now it's `ConfigClient`;
- On `url` property all extensions format will be converted to `.json`;
- `requests` library removed from dependencies.

**issues resolved**

- [Python Client (config-client 0.3.1) to get yml configuration from Spring Boot config-server](https://github.com/amenezes/config-client/issues/14)
- added log messages;
- rewritten error and log messages to be clearer.

0.3.1

**changelog**

- `config_client` decorator now support parameters.

python
from config import spring

spring.config_client(app_name='myapp', branch='dev')
def test_config(co=None):
return co

c = test_config()
c.config
c.url

0.3.0

**changelog**

- Now the remote configuration call will happen just on `get_config()` method.
python
from config.spring import ConfigServer

c = ConfigServer(app_name='myapp') no remote call here
c.get_config() remote call here

- Internal adjusts.

0.2.1

**changelog**

- `ConfigServer` now is a singleton.
- decorator `config_client` available.

`python
with decorator
from config import spring

spring.config_client
def test_method(my_config=None):
print(f'Config injected via decorator: {type(my_config)}')
print(my_config.config)
`

or

`python
without decorator
from config import spring

my_config = spring.ConfigServer()
my_config.config
`

**issues resolved**

- [supported python versions issue](https://github.com/amenezes/config-client/issues/9)

0.2.0

**changelog**

- added `config_client` decorator;
- added singleton decorator to class `ConfigServer`.

0.1.0

First public release.

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.