Skip to content

MarkAntipin/dynamic-settings-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Settings Client

Dynamic Settings Client is a python client for dynamic-settings project, allowing you to update your application’s settings on the fly without redeploying code.

📦 Installation

Install the package via pip:

pip install dynamic-settings

🛠 Running the Dynamic Settings Server

To use the client, you need to have the Dynamic Settings server running. You can start the server using Docker:

docker run -d -p 18100:18100 -v db_data:/app/db -e API_KEY=api-key markantipin12/dynamic-settings

📖 Usage

from dynamic_settings import DynamicSettings

settings = DynamicSettings(
    api_key='api-key',
    url='http://localhost:18100'
)


hello_message = settings.get('HELLO_MESSAGE', default='Hello, World!')
is_enabled = settings.get('IS_ENABLED', default=False)

🔗 Resources

Releases

No releases published

Packages

No packages published

Languages