{ "info": { "author": "nixargh", "author_email": "nixargh@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: System :: Systems Administration" ], "description": "**It's a fork of another fork** .\n\n**The very first origin is** .\n\n# Python client for [HashiCorp Consul](http://www.consul.io/)\n\n## Creators\nOriginal code belongs to [Andy Gayton](https://github.com/cablehead).\nAnd fork with community patches belongs to [Carlos](https://github.com/nzlosh).\n\n## Documentation\n[Original Library Documentation](https://python-consul.readthedocs.io)\n\n## Status\nI'm using some of its function in production, so it's not a complete junk.\n\n## Example\n``` {.sourceCode .python}\nimport consul\n\nc = consul.Consul()\n\n# poll a key for updates\nindex = None\nwhile True:\n index, data = c.kv.get('foo', index=index)\n print data['Value']\n\n# in another process\nc.kv.put('foo', 'bar')\n```\n\nAlternatively you can create a client from the same [environment\nvariables](https://www.consul.io/docs/commands/index.html#environment-variables) that the consul command line client uses. e.g.\nCONSUL\\_HTTP\\_ADDR, CONSUL\\_HTTP\\_TOKEN.\n\n``` {.sourceCode .python}\nimport consul\n\nc = consul.Consul.from_env()\n\nc.agent.self()\n```\n\n## Installation\n```\npip3 install consul\n```\n\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).\n\n## [1.3.0] - 2019-06-27\n### Changed\n- Package name **consul** => **consul-reborn**. Because name **Consul** is occupied at PyPi.\n\n## [1.2.5] - 2019-06-27\n### Removed\n- `tox.ini` flake8 and Python2.\n- `.travis.yml` flake8 and Python2.\n\n## [1.2.4] - 2019-06-27\n### Fixed\n- `setup.py`.\n\n## [1.2.3] - 2019-06-27\n### Fixed\n- `setup.py`.\n\n## [1.2.2] - 2019-06-27\n### Fixed\n- `README.md`.\n- `setup.py`.\n\n### Changed\n- `.travis.yml` remove sonar and deploy stages.\n\n### Removed\n- `.bumpversion.cfg`.\n- `sonar-project.properties`.\n- Support of Python2.\n\n## [1.2.1] - 2019-06-26\n### Fixed\n- `README.md`.\n\n## [1.2.0] - 2019-06-26\n### Fixed\n- `consul.base` All methods of **Session** class use agent token if exists.\n- `consul.base` Minor linting.\n\n### Changed\n- `README.md`, `CHANGELOG` Converted to markdown.\n- `setup.py` Adjust.\n\n\n## Old Versions\n\n1.1.0\n-----\n\n- add support for nodemeta to catalog and health end points\n (thanks @ibrahimmenem)\n- update Check.script to use args, as Consul 1.1 has dropped the\n script parameter\n\n1.0.1\n-----\n\n- Support for Python 3.4 dropped (sorry)\n- Add support for Consul 1.0.0 (thanks @matusvalo!)\n- Expose all 400 errors and add tests for common callback handler\n (thanks @bagerard)\n\n0.7.2\n-----\n\n- Add header parameter to http check (thanks @matusvalo)\n- Add basic Transaction HTTP API support (thanks @iandyh)\n- Fix invalid url error when specifying credentials via host (Issue\n \\#167)\n\n0.7.1\n-----\n\n- Add a common base client for shared functionality between different\n HTTP clients (thanks @abn!)\n- Fix request quoting issue (thanks @abn)\n- Fix installation issue due to aiohttp only being available for\n Python>=3.4.2 (thanks @abn)\n- Added support for current release of aiohttp (thanks @eaterek)\n- Improved Tornado example (thanks @chriswue)\n- Add and use ACL token in Event.fire (thanks @illenseer)\n- Add client side cert support (thanks @brocade-craig)\n- Add token params to catalog register (thanks @gregdurham)\n- Add support for DeregisterCriticalServiceAfter (thanks @daroot)\n- Improve reliability of test suite (thanks @daroot!)\n- Update CI: Add py35 and py36 to tests (thanks @Poogles)\n\n0.7.0\n-----\n\n### Features\n\n- Add Operator endpoint (thanks @bantonj!)\n\n0.6.2\n-----\n\n### Bug Fix\n\n- Tornado backend encoding bug related to None values\n (thanks @plredmond)\n- python-consul doesn't support python 2.6 (thanks @lowzj)\n\n### Maintenance\n\n- update max ttl to 86400 to conform to consul (thanks @philloooo)\n- Correct error message in ACL create/update (thanks @Crypto89)\n\n### Features\n\n- Catalog API should support tokens (thanks @racktear!)\n- Allow enable tag override (thanks @shalev67!)\n\n0.6.1\n-----\n\n### Features\n\n- Add the coordinate endpoint and near support on Catalog and Health\n Checks (thanks @shalev67!)\n- Rework all endpoints to use a common callback handler to help ensure\n consistent handling of responses (thanks @shalev67)\n- Add Query api support (thanks @shalev67)\n- Add token support for the Health endpoints (thanks @morpheu!)\n- Force to use UTF-8 encoding for the response with the request's\n client (thanks @maxnasonov)\n\n### Maintenance\n\n- Migrate readthedocs links from .org to .io (thanks @adamchainz)\n\n0.6.0\n-----\n\n### Features\n\n- Add support for the new TCP and Docker health checks (thanks @abn)\n- Add support for join and force-leave (thanks @abn)\n- Use standard consul environment variables to override configuration\n (thanks @amayausky)\n\n### Maintenance\n\n- Test binaries updated to Consul 0.6.4\n- Tweaks to fix small updates to Consul's API\n\n0.4.7\n-----\n\n### Features\n\n- Add ACL token support to agent.service.register and\n agent.check.register\n\n0.4.6\n-----\n\n### Features\n\n- Add health.checks endpoint, update health TODOs (thanks @cruatta!)\n- Improve error when a HTTP 503 status code is returned (thanks\n @raboof!)\n- Added index and wait parameter to event.list (thanks @max0d41!)\n\n0.4.5\n-----\n\n### Features\n\n- Allow SSL certificate verification to be disabled (thanks\n @jgadling!)\n- Use requests.session for performance (thanks @msabramo!)\n- Support 'wait' param for all blocking queries (thanks @rmt!)\n- deduplicate query string when doing deletes with the std (requests)\n library (thanks @sduthil!)\n\n0.4.4\n-----\n\n### Features\n\n- Support creation of ALCs with explicit ID. (thanks @KyleJamesWalker)\n\n0.4.3\n-----\n\n### Features\n\n- Support 'dc' argument to health endpoints (thanks @etuttle!)\n\n0.4.2\n-----\n\n### Features\n\n- Add status endpoints (thanks @cruatta!)\n\n0.4.1\n-----\n\n### Features\n\n- Add health.node (thanks @davidbirdsong!)\n\n0.4.0\n-----\n\n### API changes (backwards incompatible)\n\n- Deprecated old health.check.ttl\\_pass call has been removed\n- Deprecate loose parameters *script*, *interval*, *ttl*, *http* and\n *timeout*, to configure checks via agent.service.register and\n agent.check.register. Both methods now take a single argument to\n specify checks. A convenience consul.Check has been added to create\n checks.\n\n0.3.20\n------\n\n### Features\n\n- Add Node and Service Maintenance (thanks @cruatta!)\n\n### Bug Fix\n\n- Unclosed connector Exception in consul.aio (thanks @jettify!)\n\n0.3.19\n------\n\n### Bug Fix\n\n- Fix six dependency (thanks @pawlowskimichal!)\n\n0.3.18\n------\n\n### Features\n\n- Adding ability to register checks with services (thanks @cruatta!)\n\n### Bug Fix\n\n- Fix distribution for consul.aio for python3 (thanks @mbachry!)\n\n0.3.17\n------\n\n### Features\n\n- Add address param to agent.service.register\n\n0.3.16\n------\n\n### Features\n\n- Add cas param for kv.delete (thanks @qix)\n\n0.3.15\n------\n\n### Features\n\n- Add tag parameter to health.service() (thanks @reversefold)\n\n0.3.14\n------\n\n### Features\n\n- add the keys and separator params to kv.get (thanks @Heuriskein)\n- add support for the events api (thanks @Heuriskein!)\n\n0.3.13\n------\n\n### Features\n\n- add HTTP check support (thanks @JoeHazzers)\n- raise ConsulException on kv.get 500 response code (thanks @jjpersch)\n- add the wait argument to kv.get\n\n0.3.12\n------\n\n### Features\n\n- add behavior and ttl to session.create\n- add session.renew\n\n0.3.11\n------\n\n### Features\n\n- add the health.state endpoint (thanks @pete0emerson!)\n- bump test binaries to 0.5.0\n\n0.3.9\n-----\n\n### Bug Fix\n\n- Exclude consul.aio if asyncio isn't available, avoids an error\n message on install, trying to byte compile that module\n\n0.3.8\n-----\n\n### API changes (backwards incompatible)\n\n- Reorder named arguments to be more consistent. index is always the\n first named argument, if available, and dc is now always the last\n named argument.\n\n0.3.7\n-----\n\n### Features\n\n- Add dc support for kv calls; add ability to set the default dc for\n an entire client session (thanks @angad)\n- Add asyncio client (thanks @jettify)\n\n0.3.6\n-----\n\n### Features\n\n- Add https support (thanks @pete0emerson)\n- Add wan param to agent.members (thanks @sgargan)\n\n0.3.5\n-----\n\n### Bug Fix\n\n- Fix typo setting notes on a check (thanks @ShaheedHaque!)\n\n0.3.4\n-----\n\n### Features\n\n- Add support for the Agent.Check (thanks @sgargan and @ShaheedHaque)\n\n### Deprecated\n\n- health.check.ttl\\_pass has been moved to agent.check.ttl\\_pass\n\n0.3.3\n-----\n\n### Features\n\n- Add support for the Session API (Consul.Session)\n\n### Bug Fixes\n\n- Fix a bug retrieving folder nodes from the KV store\n \n Thanks @zacman85\n\n0.3.2\n-----\n\n### Features\n\n- Add support for Python 3.4\n\n0.3.1\n-----\n\n### Features\n\n- Add support for the Catalog API (Consul.Catalog)\n- Add ability to set a default consistency mode for an entire client\n session\n- Add the ability to pass the consistency mode with kv.get\n\n0.3.0\n-----\n\n### Features\n\n- Add support for ACLs (Consul.ACL)\n\n### API changes (backwards incompatible)\n\n- For Consul.Agent.Service.register, rename *check* argument to\n *script*\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nixargh/python-consul", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "consul-reborn", "package_url": "https://pypi.org/project/consul-reborn/", "platform": "", "project_url": "https://pypi.org/project/consul-reborn/", "project_urls": { "Homepage": "https://github.com/nixargh/python-consul" }, "release_url": "https://pypi.org/project/consul-reborn/1.3.0/", "requires_dist": [ "requests (>=2.0)", "requests-unixsocket (>=0.1.5)", "six (>=1.4)", "aiohttp ; extra == 'asyncio'", "tornado ; extra == 'tornado'", "twisted ; extra == 'twisted'", "treq ; extra == 'twisted'" ], "requires_python": "", "summary": "Fork of Python client for Consul (http://www.consul.io/) with some community and mine patches.", "version": "1.3.0" }, "last_serial": 5456211, "releases": { "1.3.0": [ { "comment_text": "", "digests": { "md5": "a46c78c61f82cdcf91f7563f5351003a", "sha256": "6d6d405f1c7cfa9429b197f805bec5ecb486c575c0982a8d41d588c0c54b3d6b" }, "downloads": -1, "filename": "consul_reborn-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a46c78c61f82cdcf91f7563f5351003a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26834, "upload_time": "2019-06-27T10:07:31", "url": "https://files.pythonhosted.org/packages/51/68/78e35d0c1edab5f7efe3ef96e9fb949e513f5a262ce5d5963958ad7d7334/consul_reborn-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "531b2e7d3a45e262d72c783c00ae867d", "sha256": "57faa20b860a210a4c7f9f9ca67e976ca0ef00b794aad1da51acaeefb2fa83e0" }, "downloads": -1, "filename": "consul-reborn-1.3.0.tar.gz", "has_sig": false, "md5_digest": "531b2e7d3a45e262d72c783c00ae867d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29254, "upload_time": "2019-06-27T10:07:33", "url": "https://files.pythonhosted.org/packages/e2/69/e6e06288102a3f1dbd708f8bbbb77a69281d43a32fadc42d94c4a5e8a825/consul-reborn-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a46c78c61f82cdcf91f7563f5351003a", "sha256": "6d6d405f1c7cfa9429b197f805bec5ecb486c575c0982a8d41d588c0c54b3d6b" }, "downloads": -1, "filename": "consul_reborn-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a46c78c61f82cdcf91f7563f5351003a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26834, "upload_time": "2019-06-27T10:07:31", "url": "https://files.pythonhosted.org/packages/51/68/78e35d0c1edab5f7efe3ef96e9fb949e513f5a262ce5d5963958ad7d7334/consul_reborn-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "531b2e7d3a45e262d72c783c00ae867d", "sha256": "57faa20b860a210a4c7f9f9ca67e976ca0ef00b794aad1da51acaeefb2fa83e0" }, "downloads": -1, "filename": "consul-reborn-1.3.0.tar.gz", "has_sig": false, "md5_digest": "531b2e7d3a45e262d72c783c00ae867d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29254, "upload_time": "2019-06-27T10:07:33", "url": "https://files.pythonhosted.org/packages/e2/69/e6e06288102a3f1dbd708f8bbbb77a69281d43a32fadc42d94c4a5e8a825/consul-reborn-1.3.0.tar.gz" } ] }