{ "info": { "author": "Alex Gaudio", "author_email": "agaudio@sailthru.com", "bugtrack_url": null, "classifiers": [], "description": "Use Consulconf to get or set key:value data from json files or consul.\n\nThis tool supports the concept of inheritance, where one namespace of\nkey:value pairs can inherit one or more keys from another namespace.\nThis is particularly useful if, for instance, you wish to manage\nenvironment variables for several applications that may share certain\nvariables in common. Currently, though, parent namespaces (ie any\nnamespace with children) cannot inherit from other namespaces. It may\nbe worth changing this behavior if someone can come up with a good\nreason.\n\nYou don't necessarily need consul to use this tool.\n\nInstall:\n\n```\npip install consulconf\n```\n\n\nUsage:\n\n```\nbasic usage\nconsulconf -h\n```\n\n```\nmkdir json_files\n\n# basic examples\necho '{\"MYVAR\": \"123\", \"OTHERVAR\": 456}' > ./json_files/namespace.json\nconsulconf -i ./json_files --dry_run\nconsulconf -i ./json_files --app namespace env\nconsulconf -i ./json_files --app namespace echo \\$MYVAR\n\n# namespace filtering\necho '{\"app1\": {\"AVAR\": 1}, \"app2\": {\"AVAR\": 2}}' > ./json_files/apps.json\nconsulconf -i ./json_files --dry_run\nconsulconf -i ./json_files --dry_run --filterns '^apps/.*[12]$'\n\n\n# inheritance\necho '{\"_inherit\": [\"namespace.MYVAR\"], \"nines\": 999}' > ./json_files/ns2.json\nconsulconf -i ./json_files --dry_run --filterns 'ns2'\nconsulconf -i ./json_files --app ns2 env\n\n# push namespaces to consul (you need to have a consul agent installed)\nconsulconf -i ./json_files -p 127.0.0.1:8500/v1/kv/my_namespaces\n\n# get namespaces from consul\nconsulconf -i http://127.0.0.1:8500/v1/kv/my_namespaces --dry_run\nconsulconf -i http://127.0.0.1:8500/v1/kv/my_namespaces --app ns2 env\n```\n\nAdditionally, you can use this tool to raw copy the contents of json\nfiles into consul. If you run the below commands and then navigate to\nconsul, you will see the data in your json files copied to consul.\n\n```\nconsulconf -i ./json_files --dry_run --raw\nconsulconf -i ./json_files -p http://127.0.0.1:8500/v1/kv/rawdata --raw\nconsulconf -i http://127.0.0.1:8500/v1/kv/my_namespaces --dry_run --raw\n```\n\nNOTE: Some of the examples above assume a consul agent is running on\nyour computer. To get consul working, you could run something like:\n\nhttp://www.consul.io/intro/getting-started/agent.html\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sailthru/consulconf", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "consulconf", "package_url": "https://pypi.org/project/consulconf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/consulconf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sailthru/consulconf" }, "release_url": "https://pypi.org/project/consulconf/0.0.11/", "requires_dist": null, "requires_python": null, "summary": "Code to configure consul key:value store for applications", "version": "0.0.11" }, "last_serial": 1553333, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d8a9277f4542890a88f2e0c387cd52d4", "sha256": "e1e839cad4d2c721eee8f3db544ded60f1a8072ffc7e531868c076a6c779680c" }, "downloads": -1, "filename": "consulconf-0.0.1.zip", "has_sig": false, "md5_digest": "d8a9277f4542890a88f2e0c387cd52d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7717, "upload_time": "2014-10-27T17:09:32", "url": "https://files.pythonhosted.org/packages/b6/3d/d8066591161f23c1a72c6e24c928a3564fa267f9d92ea11b33491c30317c/consulconf-0.0.1.zip" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "69f898fac036c40a671af0abecaf0442", "sha256": "58d657ea5c0ac9c21c50a3aae0b21b8dc52c6cc83b986a0e4ba8fc9b8e40a7f1" }, "downloads": -1, "filename": "consulconf-0.0.10.zip", "has_sig": false, "md5_digest": "69f898fac036c40a671af0abecaf0442", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11236, "upload_time": "2015-03-26T21:04:40", "url": "https://files.pythonhosted.org/packages/ba/04/7dc499a69b7d711b9a7b7e065c5aab9c1c216a868a1aa730d4a8ab694700/consulconf-0.0.10.zip" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "71ae0e2e06459e4f79e48684cd48fd57", "sha256": "0b0a73abe69c4cf819bab3222f34f6f6354037856d1e77254144f3d65c4d4d6f" }, "downloads": -1, "filename": "consulconf-0.0.11.zip", "has_sig": false, "md5_digest": "71ae0e2e06459e4f79e48684cd48fd57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11323, "upload_time": "2015-05-19T16:43:43", "url": "https://files.pythonhosted.org/packages/ec/08/a5ee3677f2f79eef45fbd68c91fad0434d4978600031eeaed2bceead39ec/consulconf-0.0.11.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a2bbc69ba0b5197d9132d6a4fcb903db", "sha256": "74dae7c743d4dcb9af59ae50c70f241401dad475325847926e4148fc69de457f" }, "downloads": -1, "filename": "consulconf-0.0.2.zip", "has_sig": false, "md5_digest": "a2bbc69ba0b5197d9132d6a4fcb903db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7905, "upload_time": "2014-10-28T02:05:01", "url": "https://files.pythonhosted.org/packages/40/24/3c6be1952c5dcdad93519d9dee09dc94edb95d3784787510a5337a51c747/consulconf-0.0.2.zip" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "48879ff5cea902ac60524c42176c474d", "sha256": "7cdad4ab6d34160421b763929b863f491fe775c015aa17621c9da2a77b1b4d04" }, "downloads": -1, "filename": "consulconf-0.0.3.zip", "has_sig": false, "md5_digest": "48879ff5cea902ac60524c42176c474d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10503, "upload_time": "2014-10-29T05:37:08", "url": "https://files.pythonhosted.org/packages/2e/92/18faaff7cacdbc9c2a83045105ec542ed9b00cf2515fdc26801bc6dec9c0/consulconf-0.0.3.zip" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "b78dbd25357e2190a4277ef93e26f53f", "sha256": "73e5bb7cf49baabe8c85cc81b80a26c49ac4a34a1bc59f1c8a5cb829dc65a356" }, "downloads": -1, "filename": "consulconf-0.0.4.zip", "has_sig": false, "md5_digest": "b78dbd25357e2190a4277ef93e26f53f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10804, "upload_time": "2014-10-29T21:11:56", "url": "https://files.pythonhosted.org/packages/50/5e/eba6f46baaf0af3a887213d1a340f23979c55277c3c05274fb689e3572e2/consulconf-0.0.4.zip" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "ae256ed5c61cf65f11109129f3ac3fe1", "sha256": "5f8875f17ffa04f4f922ee5360214357770c3f074d5cbf8c3f8780159edbd707" }, "downloads": -1, "filename": "consulconf-0.0.5.zip", "has_sig": false, "md5_digest": "ae256ed5c61cf65f11109129f3ac3fe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10811, "upload_time": "2014-10-30T01:32:03", "url": "https://files.pythonhosted.org/packages/09/b5/c86ff832eede12c12b7daa436914769c2d40a984bad61f3a9549c35a1e36/consulconf-0.0.5.zip" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "2230416bb436689dd4b43ff87498786c", "sha256": "8d5f1be336716a298fa5c3f5777d0d9a23dcc62cbbd2225bdf42f9a97f3bb743" }, "downloads": -1, "filename": "consulconf-0.0.6.zip", "has_sig": false, "md5_digest": "2230416bb436689dd4b43ff87498786c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11662, "upload_time": "2014-10-30T20:36:50", "url": "https://files.pythonhosted.org/packages/d8/65/8442d89f10ca19c216a2c5e22fcb7422328fbabbfb715418aa334c3a6b5e/consulconf-0.0.6.zip" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "7978992405f9043b7dee4d01a26bb38e", "sha256": "5513e40a566638cdd32f3e38e244072eca0edb267265485fef330296674a0c96" }, "downloads": -1, "filename": "consulconf-0.0.7.zip", "has_sig": false, "md5_digest": "7978992405f9043b7dee4d01a26bb38e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11794, "upload_time": "2014-11-12T20:55:37", "url": "https://files.pythonhosted.org/packages/7a/4d/1e3cb657975c6515e5b3febcfba47586e02f3d6f17f2384fdc670ec94a65/consulconf-0.0.7.zip" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "0bd78b68f0cfcd5f39feab8127bc60fe", "sha256": "ffb44096144acca32c1357a235fd72962768ee75bf574152c2d1176d60080a72" }, "downloads": -1, "filename": "consulconf-0.0.8.zip", "has_sig": false, "md5_digest": "0bd78b68f0cfcd5f39feab8127bc60fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11806, "upload_time": "2014-11-13T00:49:47", "url": "https://files.pythonhosted.org/packages/da/70/5b274b4f8fcd3bf0b7b64ccdef7de626226d404ad61cb1c6f54e1b1c6163/consulconf-0.0.8.zip" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "f1cc06dbd198000ef45fcc406693e93e", "sha256": "33659c18190fee06b751bc682fccbd5b98a8454aade373b717a1220ad6bd8473" }, "downloads": -1, "filename": "consulconf-0.0.9.zip", "has_sig": false, "md5_digest": "f1cc06dbd198000ef45fcc406693e93e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10338, "upload_time": "2015-03-10T21:59:23", "url": "https://files.pythonhosted.org/packages/b0/e3/9bfa1e4b7b189b70f83952fb7f6f2fd2451691309c50f55a51938f203ec3/consulconf-0.0.9.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "71ae0e2e06459e4f79e48684cd48fd57", "sha256": "0b0a73abe69c4cf819bab3222f34f6f6354037856d1e77254144f3d65c4d4d6f" }, "downloads": -1, "filename": "consulconf-0.0.11.zip", "has_sig": false, "md5_digest": "71ae0e2e06459e4f79e48684cd48fd57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11323, "upload_time": "2015-05-19T16:43:43", "url": "https://files.pythonhosted.org/packages/ec/08/a5ee3677f2f79eef45fbd68c91fad0434d4978600031eeaed2bceead39ec/consulconf-0.0.11.zip" } ] }