Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
.. image:: https://travis-ci.org/deliveryhero/distconfig.svg?branch=master :target: https://travis-ci.org/deliveryhero/distconfig
.. image:: https://readthedocs.org/projects/distconfig/badge/?version=latest :target: https://readthedocs.org/projects/distconfig/?badge=latest :alt: Documentation Status
Library to manage distributed configuration using either ZooKeeper <https://zookeeper.apache.org/>
_ or
Etcd <https://github.com/coreos/etcd>
_ or Consul <http://www.consul.io/>
_.
When you have to manage configuration of a given services that are distributed across nodes, you may want to consider using either one of the distributed configuration managers e.g. zookeeper, etcd, consul ..., this library goal is to give developers an easy access to configuration stored in the previous backends.
To use ZooKeeper as backend you should install distconfig
using ::
$ pip install distconfig[zookeeper]
with etcd::
$ pip install distconfig[etcd]
with consul::
$ pip install distconfig[consul]
Example using zookeeper as a backend ::
from kazoo import client
from distconfig import Proxy
client = client.KazooClient()
# The user must call ``KazooClient.start()`` before using this particular
# backend
client.start()
proxy = Proxy.configure(
'distconfig.backends.zookeeper.ZooKeeperBackend',
client=client,
)
# config is a read only mapping-like object.
config = proxy.get_config('/distconfig/service_name/config')
print config['key']
# Getting nested values works by supplying key seperated by '/' char.
print config['key/inner']
# You can assert key value type by using typed get function e.g.
# get_int, get_float, get_unicode, get_bytes ... .
print config.get_int('key/inner/int_key')
# Getting a inner config.
print config.get_config('key/inner/dict_key')
Start by installing dependencies ::
$ pip install -r requirements/dev.txt requirements/base.txt
To run unit test use tox ::
$ tox
To run integration test, we recommend you to install docker <https://www.docker.com/>
_ and then run ::
$ ./run-tests.sh
The above script will setup docker container for each of the backend and run the integration tests on them.
FAQs
Library to manage configuration using Zookeeper, Etcd, Consul
We found that distconfig demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.