{ "info": { "author": "Louis-Bertrand Varin", "author_email": "louisbvarin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Utilities" ], "description": "Confirm\n=======\n\n.. image:: https://api.travis-ci.org/louib/confirm.svg\n :target: https://travis-ci.org/louib/confirm\n.. image:: https://img.shields.io/pypi/v/confirm.svg\n :target: https://pypi.python.org/pypi/confirm/\n\nSimple Python configuration file management.\n\nConfirm validates a configuration file (.INI or YAML format) against a YAML\nconfiguration schema.\n\nInstallation\n------------\n\n.. code:: bash\n\n $ pip install confirm\n\n\nExample schema file\n-------------------\n\n.. code:: yaml\n\n \"system\":\n \"name\":\n \"required\": true\n \"description\": \"Name of the system associated with the server.\"\n \"type\": \"str\"\n \"http_server\":\n \"listen\":\n \"required\": true\n \"type\": \"str\"\n \"description\": \"Listening address of the HTTP server.\"\n \"default\": \"localhost\"\n \"port\":\n \"required\": true\n \"type\": \"int\"\n \"default\": 8088\n \"description\": \"Port of the HTTP server.\"\n \"threading\":\n \"initial_pool_size\":\n \"description\": \"Initial number of threads in the thread pool.\"\n \"type\": \"int\"\n \"default\": 10\n \"maximum_pool_size\":\n \"description\": \"Maximum number of threads in the thread pool.\"\n \"type\": \"int\"\n \"default\": 100\n \"deprecated\": true\n\n\nUsage\n-----\n\n.. code:: bash\n\n $ confirm validate examples/confirm.yaml project.conf\n Error : Missing required section system.\n Error : Missing required section http_server.\n Warning : Deprecated option maximum_pool_size is present in section threading!\n\n\nConfirm can also be used for validation as a Python library:\n\n.. code:: python\n\n from confirm.validator import validator_from_config_file\n ...\n\n result = validator_from_config_file(config_file_path, schema_file_path)\n result.validate()\n print(result.is_valid())\n\n\nLicense\n-------\nMIT License.", "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/louib/confirm", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "confirm", "package_url": "https://pypi.org/project/confirm/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/confirm/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/louib/confirm" }, "release_url": "https://pypi.org/project/confirm/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Simple Python configuration file management.", "version": "0.1.3" }, "last_serial": 2021194, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "c2ebecca458e3b09065b4909eaf56041", "sha256": "1c0ab45b712132e752c3646f96454e1a8a2cc8a5fb80dbd30bd5c1a03ed8b103" }, "downloads": -1, "filename": "confirm-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c2ebecca458e3b09065b4909eaf56041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5758, "upload_time": "2016-01-21T18:57:57", "url": "https://files.pythonhosted.org/packages/06/88/0457508e42450777a7bba9c708cc532ed8559c1241f298c8006bbd9cb31c/confirm-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "e92249f9eb38e9bd2dc2dd82b3696065", "sha256": "1719166c764d2c73716f754daf5be600d50cfb1247c968a7b69726d60579fc6b" }, "downloads": -1, "filename": "confirm-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e92249f9eb38e9bd2dc2dd82b3696065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2016-03-22T18:58:55", "url": "https://files.pythonhosted.org/packages/b7/99/589580700c1a67110a4bf999bb13f5a232fe2b9dcd5ef674dc6d060fae22/confirm-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e92249f9eb38e9bd2dc2dd82b3696065", "sha256": "1719166c764d2c73716f754daf5be600d50cfb1247c968a7b69726d60579fc6b" }, "downloads": -1, "filename": "confirm-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e92249f9eb38e9bd2dc2dd82b3696065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2016-03-22T18:58:55", "url": "https://files.pythonhosted.org/packages/b7/99/589580700c1a67110a4bf999bb13f5a232fe2b9dcd5ef674dc6d060fae22/confirm-0.1.3.tar.gz" } ] }