# python
Configfacets python client library
## Usage
```
from configfacets.configuration import Configuration
config = Configuration(
apiUrl="https://configfacets.com/apis/repos/configfacets/core-concepts/applications-0.0.1/resources/collections/api-configurations/exec?format=json",
apiKey="<your_api_key>",
postBody={"facets": ["env:nonprod", "cluster:internal"]},
)
config.fetch()
resp = config.get_resp()
rabbitMQHost = config.get_value("rabbitmq.host")
rabbitMQPort = config.get_value("rabbitmq.port")
print("RabbitMQ Host:{}, Port:{}".format(rabbitMQHost, rabbitMQPort))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/configfacets/python",
"name": "configfacets",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Gokul Nathan",
"author_email": "gokul@configfacets.com",
"download_url": "https://files.pythonhosted.org/packages/c4/8b/5c7d68e4bfa95bbd31be349571585bc71ca29c51956879ad502128dd2008/configfacets-0.0.1.tar.gz",
"platform": null,
"description": "# python\n\nConfigfacets python client library\n\n## Usage\n\n```\nfrom configfacets.configuration import Configuration\n\nconfig = Configuration(\n apiUrl=\"https://configfacets.com/apis/repos/configfacets/core-concepts/applications-0.0.1/resources/collections/api-configurations/exec?format=json\",\n apiKey=\"<your_api_key>\",\n postBody={\"facets\": [\"env:nonprod\", \"cluster:internal\"]},\n)\nconfig.fetch()\nresp = config.get_resp()\n\nrabbitMQHost = config.get_value(\"rabbitmq.host\")\nrabbitMQPort = config.get_value(\"rabbitmq.port\")\n\nprint(\"RabbitMQ Host:{}, Port:{}\".format(rabbitMQHost, rabbitMQPort))\n\n\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Package for generating application configuration",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/configfacets/python"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8d34b6c10139986202aa20dcf90a9687f55335ef13876626542d1f24b6c9b235",
"md5": "8879e696aa4799d720989732c7717a17",
"sha256": "a72b0c8506d7a225e0caa5c521742d1669c39c0dfdbb284757d3d824d064fafd"
},
"downloads": -1,
"filename": "configfacets-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8879e696aa4799d720989732c7717a17",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3914,
"upload_time": "2025-02-06T09:32:53",
"upload_time_iso_8601": "2025-02-06T09:32:53.804972Z",
"url": "https://files.pythonhosted.org/packages/8d/34/b6c10139986202aa20dcf90a9687f55335ef13876626542d1f24b6c9b235/configfacets-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c48b5c7d68e4bfa95bbd31be349571585bc71ca29c51956879ad502128dd2008",
"md5": "c63eae56918880801743bcf5ae420975",
"sha256": "a3fd9cdaa2b415becd9a2da70ec1362eaa1e4489a66ab6285ec7004329deaecc"
},
"downloads": -1,
"filename": "configfacets-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c63eae56918880801743bcf5ae420975",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3146,
"upload_time": "2025-02-06T09:32:55",
"upload_time_iso_8601": "2025-02-06T09:32:55.630569Z",
"url": "https://files.pythonhosted.org/packages/c4/8b/5c7d68e4bfa95bbd31be349571585bc71ca29c51956879ad502128dd2008/configfacets-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-06 09:32:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "configfacets",
"github_project": "python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "configfacets"
}