Changelogs » Config-client

Config-client

0.5.0

**changelog**
- Fix the method to append `.json` extension to URL;

**issues resolved**
- [how to use a diff config server in Cloud Foundry?](https://github.com/amenezes/config-client/issues/20)
- resolved by [PR-21](https://github.com/amenezes/config-client/pull/21) merged.

0.4.0

**changelog**

- initial setup to use [mypy](http://www.mypy-lang.org/);
- config-client now can be used on [Cloud Foundry](https://github.com/amenezes/config-clientcloudfoundry-integration);
- Now to create singleton class use [`create_config_client`](https://github.com/amenezes/config-clientcreate-singleton-instance) method.

**issues resolved**

- [Cloud Foundry integration](https://github.com/amenezes/config-client/issues/15)

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.