Skip to main content

A simple python real-time remote configuration framework.

Project description


A simple Python lib for manage remote server configuration.

  • Configuration remote unified management center.
  • When the configuration changes, pushed to client in real time.


pip install rtconfig

Server deploy

You can start server directly by single process.

python -m rtconfig.server

Command options:

  • --host: server host
  • --port: server port
  • --auto-reload: if auto reload
  • --store-type: rtconfig server store type
  • --broker-url: rtconfig server broker url

Or you can start server multiprocess by Gunicorn.

gunicorn rtconfig.server:app -b -k alita.GunicornWorker -w 2

Login account

Both of initial user name and password is admin. If you want to change password or add new account, you need use command like this:

python -m rtconfig.cli update_user {name} {password}

Client connection

Create a new python module, then write code like this:

from rtconfig import RtConfigClient
client = RtConfigClient('demo',ws_url='ws://',config_module=globals())

So, you can use real time configuration like this:



You can create python file in current directory.

Configuration options:

config name default description
DEBUG false debug mode
MAX_CONNECTION 1024 max client connections
STORE_TYPE json_file data store type
BROKER_URL data store broker url

Config data store method broker url


BROKER_URL = "~/rtconfig" (默认可不填)


BROKER_URL = "redis://"


BROKER_URL = "mongodb://"


  • json_file store type not support multiprocess deploy.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtconfig-0.1.5.tar.gz (809.4 kB view hashes)

Uploaded Source

Built Distribution

rtconfig-0.1.5-py3-none-any.whl (874.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page