{
"info": {
"author": "Philipp Hack",
"author_email": "philipp.hack@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3"
],
"description": "Click config file\n=================\n\nEasily add configuration file support to your\n`Click `_ applications by adding a single\nno-arguments decorator.\n\n.. image:: https://badge.fury.io/py/click-config-file.svg\n :target: https://badge.fury.io/py/click-config-file\n.. image:: https://travis-ci.org/phha/click_config_file.svg?branch=master\n :target: https://travis-ci.org/phha/click_config_file\n\nBasic usage\n-----------\n\nclick-config-file is designed to be a usable by simply adding the\nappropriate decorator to your command without having to supply any\nmandatory arguments. It comes with a set of sensible defaults that\nshould just work for most cases.\n\nGiven this application:\n\n.. code-block:: python\n\n @click.command()\n @click.option('--name', default='World', help='Who to greet.')\n @click_config_file.configuration_option()\n def hello(name):\n click.echo('Hello {}!'.format(name))\n\nRunning ``hello --help`` will give you this::\n\n Usage: hello [OPTIONS]\n\n Options:\n --name TEXT Who to greet.\n --config PATH Read configuration from PATH.\n --help Show this message and exit.\n\nIf the configuration file does not exist, running ``hello`` will do what\nyou expect::\n\n Hello World!\n\nWith this configuration file::\n\n name=\"Universe\"\n\nCalling ``hello`` will also do what you expect::\n\n Hello Universe!\n\nCalling ``hello --name Multiverse`` will override the configuration file\nsetting, as it should::\n\n Hello Multiverse!\n\nThe default name for the configuration file option is ``--config``.\n\nCommand line and environment options will override the configuration\nfile options. Configuration file options override default options. So\nthe resolution order for a given option is: CLI > Environment >\nConfiguration file > Default.\n\nOptions\n-------\n\nAlthough ``configuration_option`` is designed to work without any mandatory\narguments, some optional parameters are supported:\n\n``implicit``\n Default: ``True``\n\n By default ``configuration_option`` will look for a configuration file\n even if no value for the configuration option was provided either via\n a CLI argument or an environment variable. In this case the value will\n be set implicitly from ``cmd_name`` and ``config_file_name`` as\n described below.\n\n If set to ``False`` the configuration file settings will only be applied\n when a configuration file argument is provided.\n\n``cmd_name``\n Default: ``ctx.cmd_info``\n\n The name of the decorated command. When implicitly creating a\n configuration file argument, the application directory containing the\n configuration file is resolved by calling ``click.get_app_dir(cmd_name)``.\n\n This defaults to the name of the command as determined by click.\n\n``config_file_name``\n Default: ``config``\n\n When ``implicit`` is set to ``True``, this argument provides the name of the\n configuration file inside the application directory.\n\nIn addition to the arguments above, all arguments for ``click.option()`` and\n``click.File()`` are supported.\n\nSupported file formats\n----------------------\n\nBy default click-config-file supports files formatted according to\n`Configobj's unrepr\nmode `_.\n\nYou can add support for additional configuration providers by setting\nthe ``provider`` keyword argument. This argument expects a callable that\nwill take the configuration file path and command name as arguments and\nreturns a dictionary with the provided configuration options.\n\nThe command name is passed in order to allow for a shared configuration\nfile divided by sections for each command.\n\nFor example, this will read the configuration options from a shared JSON\nfile:\n\n.. code-block:: python\n\n def myprovider(file_path, cmd_name):\n with open(file_path) as config_data:\n return json.load(config_data)[cmd_name]\n\n @click.command()\n @click.option('--name', default='World')\n @click_config_file.configuration_option(provider=myprovider)\n def hello(name):\n click.echo('Hello {}!'.format(name))\n\n\nInstallation\n------------\n\n``pip install click-config-file``\n\nWhy?\n----\n\nThere are several existing implementations of config file support for\nClick, however they seem to lack one or more of the following features:\n\n- Sensible defaults\n- Proper handling of resolution order\n- Support for multi value options, multiple options or a combination\n of both\n\nIn contrast this module may lack some more sophisticated features of the\nother implementations. This is a deliberate choice as this module is\nintended to be a simple option that Just Works with sensible defaults.\n\n\n",
"description_content_type": "text/x-rst",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://github.com/phha/click_config_file",
"keywords": "",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "click-config-file",
"package_url": "https://pypi.org/project/click-config-file/",
"platform": "",
"project_url": "https://pypi.org/project/click-config-file/",
"project_urls": {
"Homepage": "http://github.com/phha/click_config_file"
},
"release_url": "https://pypi.org/project/click-config-file/0.5.0/",
"requires_dist": [
"click (>=6.7)",
"configobj (>=5.0.6)"
],
"requires_python": "",
"summary": "Configuration file support for click applications.",
"version": "0.5.0"
},
"last_serial": 5181894,
"releases": {
"0.4.0": [
{
"comment_text": "",
"digests": {
"md5": "1e50ca0673909f4ffd36d78fa8667f10",
"sha256": "41683e594f5978e78e45e648fe49e15b2a2388ae099b0c0128544e65551c4ea6"
},
"downloads": -1,
"filename": "click_config_file-0.4.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e50ca0673909f4ffd36d78fa8667f10",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4624,
"upload_time": "2018-01-22T12:57:40",
"url": "https://files.pythonhosted.org/packages/8d/57/d894f1665a460740be84f5e636be5e555f5631b9c013c92c2bd561a37df5/click_config_file-0.4.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "3a65e5479502cd8033de38ca608fd881",
"sha256": "426a41fd6c3141109357c662a62073b89eda4bb7ee882587c9ac9a48b7ef9bb4"
},
"downloads": -1,
"filename": "click_config_file-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "3a65e5479502cd8033de38ca608fd881",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3643,
"upload_time": "2018-01-22T12:57:42",
"url": "https://files.pythonhosted.org/packages/e0/f8/8604a79e3e02d5aead642cb1255dad1cad2b4d7760959ca74efecb15caf8/click_config_file-0.4.0.tar.gz"
}
],
"0.4.1": [
{
"comment_text": "",
"digests": {
"md5": "9cabe83bc13cab6642315d27fae14cde",
"sha256": "018e21db110de835b8dd3f1691ebb32bd4637f256ce2173dd058dfe062b278e7"
},
"downloads": -1,
"filename": "click_config_file-0.4.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "9cabe83bc13cab6642315d27fae14cde",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 7256,
"upload_time": "2018-01-23T19:40:12",
"url": "https://files.pythonhosted.org/packages/62/4a/0bc76c789c33d4177aea5bc9244b7a68ebf0aa75767b714a1cb894eba099/click_config_file-0.4.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "630b85cf6d6ed616434a73b326e6021e",
"sha256": "5c74bbfa2c2d601caf2e0afaad7de8212c0f0af1c1431a7528950a9caef2cc73"
},
"downloads": -1,
"filename": "click_config_file-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "630b85cf6d6ed616434a73b326e6021e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4029,
"upload_time": "2018-01-23T19:40:15",
"url": "https://files.pythonhosted.org/packages/ff/d1/e12bd92ccaba01dc8f526d47b3773b94f3af8155dee46816672bab491d3d/click_config_file-0.4.1.tar.gz"
}
],
"0.4.2": [
{
"comment_text": "",
"digests": {
"md5": "491aae9e6c4fac87b0f7abdf858a6112",
"sha256": "ebf56c68a92131c1def52a4d6ccec02b814f21aa1b72dd94687195d46eec1636"
},
"downloads": -1,
"filename": "click_config_file-0.4.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "491aae9e6c4fac87b0f7abdf858a6112",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 7302,
"upload_time": "2018-01-23T20:01:12",
"url": "https://files.pythonhosted.org/packages/bb/c9/98a416e1d94289227bd09832bf23aa96977d340a74cf5943042e088fe7d3/click_config_file-0.4.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "bc59d04c3ec8624227478fced27752c8",
"sha256": "6411fd1b79ca005de41bce940fdcdbba29e131b567d3ae627eed7d2cb9547a5f"
},
"downloads": -1,
"filename": "click_config_file-0.4.2.tar.gz",
"has_sig": false,
"md5_digest": "bc59d04c3ec8624227478fced27752c8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4051,
"upload_time": "2018-01-23T20:01:14",
"url": "https://files.pythonhosted.org/packages/ce/52/55b73994ff984ca6bf17950b3855e2ee5b4937d15bb6f69d216b3063a0dd/click_config_file-0.4.2.tar.gz"
}
],
"0.4.3": [
{
"comment_text": "",
"digests": {
"md5": "244d048f0935cb23175efac912bdffe1",
"sha256": "0c6c7598a9f7121394f2e3896ee8c6f4c9c2d3e7c19ee619652897885e1a9e3a"
},
"downloads": -1,
"filename": "click_config_file-0.4.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "244d048f0935cb23175efac912bdffe1",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 7348,
"upload_time": "2018-03-01T13:54:43",
"url": "https://files.pythonhosted.org/packages/2a/3f/91946b67f239c389a71ebcdce58a23e6afa8cdbd4dbe525cb81a8c8f1a7d/click_config_file-0.4.3-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "537660465d3bd26037904d8335d2ec8b",
"sha256": "b467bb4a7e3227ce349bd776062466c89ea6bdab39f4e54a179b52a0cc9c2a08"
},
"downloads": -1,
"filename": "click_config_file-0.4.3.tar.gz",
"has_sig": false,
"md5_digest": "537660465d3bd26037904d8335d2ec8b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4171,
"upload_time": "2018-03-01T13:54:44",
"url": "https://files.pythonhosted.org/packages/7d/0d/0be444a028f9d617a697ad8ca45639f12294c9550982c7ea15bf2217a6f8/click_config_file-0.4.3.tar.gz"
}
],
"0.4.4": [
{
"comment_text": "",
"digests": {
"md5": "0354120ad86f749101b92ea87393bc40",
"sha256": "0f8a67df07bdabd7c96c85c854a8ab96c9f9097adebb30c37ffb455737d9700a"
},
"downloads": -1,
"filename": "click_config_file-0.4.4-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "0354120ad86f749101b92ea87393bc40",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5047,
"upload_time": "2019-04-18T11:16:37",
"url": "https://files.pythonhosted.org/packages/c3/b6/cfcf4399c606d600b4b7e9b8e1edd1eb064dee101c7c327cb994502f405d/click_config_file-0.4.4-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "67a51ee09f1f8d43d85fe6bacdf5de47",
"sha256": "b728c9bfe5bcac39d3ac3acfe75b32bf7aae88829ab84b7c4b2aaea609e19420"
},
"downloads": -1,
"filename": "click_config_file-0.4.4.tar.gz",
"has_sig": false,
"md5_digest": "67a51ee09f1f8d43d85fe6bacdf5de47",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4812,
"upload_time": "2019-04-18T11:16:39",
"url": "https://files.pythonhosted.org/packages/99/0d/d216cc69d97fb42290e7e25d84d8adc33e4cd03f9cc29f36da1b0e894564/click_config_file-0.4.4.tar.gz"
}
],
"0.4.5": [
{
"comment_text": "",
"digests": {
"md5": "23750da13b49c898af247637d428eb66",
"sha256": "a535d358639fcafdab1fc1686e36c013bd932e80e92bcc2fd4545bb905c61286"
},
"downloads": -1,
"filename": "click_config_file-0.4.5-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "23750da13b49c898af247637d428eb66",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5042,
"upload_time": "2019-04-18T11:28:28",
"url": "https://files.pythonhosted.org/packages/b1/1f/429f2fd918172d779c00a7cd9e6d8fdaffd6c766514e1e0c940950390e4c/click_config_file-0.4.5-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "5d8ba42f72017cc30a12c8607fdc41a6",
"sha256": "12bc380aa39734749a070b498a21d8d0b2314e38f9320b592fe213a316be5354"
},
"downloads": -1,
"filename": "click_config_file-0.4.5.tar.gz",
"has_sig": false,
"md5_digest": "5d8ba42f72017cc30a12c8607fdc41a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4812,
"upload_time": "2019-04-18T11:28:29",
"url": "https://files.pythonhosted.org/packages/e5/5e/ef2e6249bac5f21c9de3cefe4ae922d63d49ed97f1003b6f0d922ba72cfd/click_config_file-0.4.5.tar.gz"
}
],
"0.5.0": [
{
"comment_text": "",
"digests": {
"md5": "375dae090f95f14d4fd99b0098c3d08b",
"sha256": "3d6918c55b24e59cc002fbf963e2c0b76a766841e560ecba04f5825e123c4694"
},
"downloads": -1,
"filename": "click_config_file-0.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "375dae090f95f14d4fd99b0098c3d08b",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5842,
"upload_time": "2019-04-24T11:57:39",
"url": "https://files.pythonhosted.org/packages/8f/7c/9080885c60dd7e0076b3d9df7c4d55501c33c497d32a6329e6231aa7cf7f/click_config_file-0.5.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "0e1f23323fcae4bce6c3d1bd9d95e74e",
"sha256": "1d61213ee216168e8433b9c76029f1d51694d7d9ab0f301c1ef1e4f4a65137a9"
},
"downloads": -1,
"filename": "click_config_file-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "0e1f23323fcae4bce6c3d1bd9d95e74e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5668,
"upload_time": "2019-04-24T11:57:40",
"url": "https://files.pythonhosted.org/packages/a9/93/ae15cd72b5b075094364ac8c99f867c9f8d55f9ccd00a5173c5f2189db99/click_config_file-0.5.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "375dae090f95f14d4fd99b0098c3d08b",
"sha256": "3d6918c55b24e59cc002fbf963e2c0b76a766841e560ecba04f5825e123c4694"
},
"downloads": -1,
"filename": "click_config_file-0.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "375dae090f95f14d4fd99b0098c3d08b",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5842,
"upload_time": "2019-04-24T11:57:39",
"url": "https://files.pythonhosted.org/packages/8f/7c/9080885c60dd7e0076b3d9df7c4d55501c33c497d32a6329e6231aa7cf7f/click_config_file-0.5.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "0e1f23323fcae4bce6c3d1bd9d95e74e",
"sha256": "1d61213ee216168e8433b9c76029f1d51694d7d9ab0f301c1ef1e4f4a65137a9"
},
"downloads": -1,
"filename": "click_config_file-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "0e1f23323fcae4bce6c3d1bd9d95e74e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5668,
"upload_time": "2019-04-24T11:57:40",
"url": "https://files.pythonhosted.org/packages/a9/93/ae15cd72b5b075094364ac8c99f867c9f8d55f9ccd00a5173c5f2189db99/click_config_file-0.5.0.tar.gz"
}
]
}