Changelogs » Config-client

PyUp Safety actively tracks 262,873 Python packages for vulnerabilities and notifies you when to upgrade.

Config-client

0.11.0

**changelog**
  
  - Added [Encryption](https://config-client.amenezes.net/docs/1.-overview/encryption) and [Decryption](https://config-client.amenezes.net/docs/1.-overview/decryption) API support [36]
  - Updated [documentation](https://config-client.amenezes.net).

0.10.0

**changelog**
  
  - Fixed issue related to travis-ci:  [pull requests and security restrictions](https://docs.travis-ci.com/user/pull-requests/pull-requests-and-security-restrictions).
  - Added support to configure request parameters on **config_client** [decorator](https://config-client.amenezes.net/docs/client/2.-decorator/using-custom-values). [[PR-33]](https://github.com/amenezes/config-client/pull/33).
  - contribution of luiscoms :muscle:
  - Updated documentation.

0.9.1

**changelog**
  
  - Execution of `isort` and `black` disabled from the CI :beetle:
  - Merge [PR-31](https://github.com/amenezes/config-client/pull/31) - Change logging to logger
  - contribution of luiscoms :muscle:
  
  Now it's possible disable `config-client` logging in a simpler way from your application if you want.
  - Added [contributing.md](https://github.com/amenezes/config-client/blob/master/docs/contributing.md) page in docs.

0.9.0

**changelog**
  
  - merge [PR-30 - Added support for recovering remote file](https://github.com/amenezes/config-client/pull/30)
  - contribution of luiscoms :clap:
  
  Usage:
  
  python
  from config.spring import ConfigClient
  
  config_client = ConfigClient(app_name='my_app')
  response = config_client.get_file('nginx.conf')
  
  print(response)
  
  
  via CLI
  
  python
  python -m config client simpleweb000 nginx.conf --file
  ⏳ contacting server...
  file saved: nginx.conf
  
  or
  
  python
  config client simpleweb000 nginx.conf --file
  ⏳ contacting server...
  file saved: nginx.conf

0.8.0

**changelog**
  
  - Test code refactored;
  - Import modules back to absolute path format. For example:
  
  > **old style**
  python
  from config import ConfigClient
  
  
  > **new style**
  python
  from config.spring import ConfigClient
  
  For more details check the docs: [https://config-client.amenezes.net](https://config-client.amenezes.net)
  - [PR-29 - Add get config timeout](https://github.com/amenezes/config-client/pull/29) merged.
  - contribution of luiscoms :clap:
  
  Now it's possible pass requests `**kwargs` to `get_config` method. For example:
  
  python
  myclient.get_config(timeout=1.0, headers={"Accept": "*/*"})

0.7.2

**changelog**
  
  - Fix `fail_fast` property set via environment variable. :bug:
  
  **issues resolved**
  
  - [CONFIG_FAIL_FAST=False does not work](https://github.com/amenezes/config-client/issues/26)

0.7.1

**changelog**
  - fix `profile`configuration on CF class.
  - contribution of atuldalvi 👏
  
  **issue resolved**
  - [Cloud Foundry - Space name not used to set profile](https://github.com/amenezes/config-client/issues/25)

0.7.0

**changelog**
  
  - `config-client` now enables the use integrated with [Flask](https://flask.palletsprojects.com/en/1.1.x/) and [AIOHTTP](https://docs.aiohttp.org/en/stable/). All previous methods are supported but for users of this frameworks the use will be more natural.
  
  Documentation with an example of use is available in the links below:
  - Flask: https://config-client.amenezes.net/docs/integrations/1.-flask/
  - AIOHTTP: https://config-client.amenezes.net/docs/integrations/2.-aiohttp/

0.6.0

**changelog**
  
  - added command line 💻
  
  instalation:
  
  bash
  pip install config-client[cli]
  
  usage:
  
  bash
  show help
  config -h
  
  show help from client subcommand
  config client -h
  
  - code refactored
  - added tox to simplify local tests on python versions:
  - current versions suported: 3.6, 3.7, 3.8 and pypy3
  - tests migrated to pytest
  
  **issues resolved**
  
  - [Please allow us to omit the .json extension](https://github.com/amenezes/config-client/issues/18)
  - [Local Configuration Support](https://github.com/amenezes/config-client/issues/19)

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. (contribution of anishp55)

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.