{ "info": { "author": "Andrei Surzhan", "author_email": "surzhan.a.y@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Other Audience", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows :: Windows 10", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Utilities" ], "description": "Description\n-----------\n\nUtility that allows to read and parse json config files.\n\nPossible to specify links to the default values in the config (See Usage\nsection).\n\nInstallation\n------------\n\n1. Install python 3.6+\n2. Ensure pip, setuptools, and wheel are installed and up to date\n\n``python -m pip install --upgrade pip setuptools wheel``\n\n3. Create virtual enviroment (make sure that is not part of the project)\n\n``python -m venv ``\n\nor\n\n``python -m venv %path%\\to\\``\n\n4. Active virtual enviroment\n\n``%path%\\to\\\\Script\\activate``\n\n5. Install all project dependencies if needed\n\n``pip install -r requirements.txt``\n\n6. Install pandoc and pypandoc.\n `Instruction `__\n\n``pip install pypandoc``\n\nUsage\n-----\n\nExample of the config file:\n\n::\n\n C:\\User\\test\\qa_hotfix_config.json\n\n {\n \"defaults\": {\n \"dataBaseUrl\": \"http://db:5000\"\n },\n \"dataBase1\": \"\",\n \"dataBase2\": \"\"\n }\n\n1. Specify that lib in your project dependencies\n2. Import\n ``from jsonconfigparser.json_config_reader import JsonConfigReader``\n3. Create an instance of the class passing config folder path and\n options\n\n::\n\n config_path = 'C:\\User\\test\\qa_config.json'\n json_config_reader = JsonConfigReader(config_path)\n config = json_config_reader.get()\n file_path = json_config_reader.get_config_file_path()\n print(config['dataBase1'])\n print(file_path)\n\n >> http://db:5000\n >> C:\\User\\test\\qa_config.json\n\nUploading project to PyPi\n-------------------------\n\n1. Change version in ``setup.py``\n2. Upload changes to PyPi server\n\n``python setup.py sdist upload -r ``\n\nRun unit tests (Example for Visual Studio)\n------------------------------------------\n\n1. From Visual Studio\n\n 1. Click ``Test`` -> ``Run`` -> ``All Test``\n 2. View Test run in ``Test Explorer``\n\n2. From CLI\n\n 1. Navigate into project directory\n 2. ``python -m unittest``\n\nGenerate docs and updating docs\n-------------------------------\n\n1. Run ``easy_install -U sphinx``\n2. Navigate to ``docs`` folder\n3. Run ``sphinx-quickstart``\n4. `Follow\n instruction `__", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AndreySurzhan/jsonconfigreader", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "jsonconfigreader", "package_url": "https://pypi.org/project/jsonconfigreader/", "platform": "", "project_url": "https://pypi.org/project/jsonconfigreader/", "project_urls": { "Homepage": "https://github.com/AndreySurzhan/jsonconfigreader" }, "release_url": "https://pypi.org/project/jsonconfigreader/1.3.1/", "requires_dist": null, "requires_python": "", "summary": "Python JSON configuration reader and parser", "version": "1.3.1" }, "last_serial": 3655485, "releases": { "1.1.7": [ { "comment_text": "", "digests": { "md5": "41dd5c011ba8ce17928eb508d9d28c53", "sha256": "4b4ba6589b0be4af750dc846d2149479bebaa26484387085007b802e845525c1" }, "downloads": -1, "filename": "jsonconfigreader-1.1.7.tar.gz", "has_sig": false, "md5_digest": "41dd5c011ba8ce17928eb508d9d28c53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3937, "upload_time": "2017-12-31T17:01:13", "url": "https://files.pythonhosted.org/packages/70/16/9fd638a16f35b3d790c172f576c756303fcb3d5e23a7c17909755683a918/jsonconfigreader-1.1.7.tar.gz" } ], "1.1.8": [ { "comment_text": "", "digests": { "md5": "1cb8525164c7ef1c669051ffdceb4425", "sha256": "3b88a2ea11d6bae66902426faca6fe28703730a455bbafa7dee8a3294fb5fba5" }, "downloads": -1, "filename": "jsonconfigreader-1.1.8.tar.gz", "has_sig": false, "md5_digest": "1cb8525164c7ef1c669051ffdceb4425", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3970, "upload_time": "2017-12-31T18:33:21", "url": "https://files.pythonhosted.org/packages/2e/6d/6d14ac867aa414200aabff65b93ee1d6761b2ae67262c648f8ffb8d7aedc/jsonconfigreader-1.1.8.tar.gz" } ], "1.1.9": [ { "comment_text": "", "digests": { "md5": "32f079006775edc8c92c6332b9def75a", "sha256": "f108fdf52ae2b85353de08714c479d43514314eeaf8fcb6093c04080c0db9350" }, "downloads": -1, "filename": "jsonconfigreader-1.1.9.tar.gz", "has_sig": false, "md5_digest": "32f079006775edc8c92c6332b9def75a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3668, "upload_time": "2018-02-06T19:08:13", "url": "https://files.pythonhosted.org/packages/a9/db/e522e4ee73aa60c635f8320e2bae42bf36c8085acc33f4d4de210796cef8/jsonconfigreader-1.1.9.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "a4d9a6df08c0581eb318b7b1c4d7c270", "sha256": "d7df399160a919e797a7f127fdfd0ea754f2e4b448337e3e511e2f3324bbb7d9" }, "downloads": -1, "filename": "jsonconfigreader-1.2.1.tar.gz", "has_sig": false, "md5_digest": "a4d9a6df08c0581eb318b7b1c4d7c270", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3673, "upload_time": "2018-02-23T20:46:36", "url": "https://files.pythonhosted.org/packages/1c/f6/27b212613c503c6c31af05e785e384f521fcbf1680d709b83606cb6e3a5b/jsonconfigreader-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "3c471a819679ad91199406915c7d2984", "sha256": "f1b962cd54d41659208741c0b5f79753a584a9e1fcaa37f22a5fea9a8f0c185f" }, "downloads": -1, "filename": "jsonconfigreader-1.2.2.tar.gz", "has_sig": false, "md5_digest": "3c471a819679ad91199406915c7d2984", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3668, "upload_time": "2018-02-23T20:53:27", "url": "https://files.pythonhosted.org/packages/2b/c3/0b6b40112060adb253ad4beb14d500a3814167332461caf4a40e62c01e90/jsonconfigreader-1.2.2.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "a62c45ab35b3423f372764c90227a4d5", "sha256": "bee024ea5f25e401e60ef45c82bb6584f4fa67b6404821832d677d5193dd9f4a" }, "downloads": -1, "filename": "jsonconfigreader-1.3.0.tar.gz", "has_sig": false, "md5_digest": "a62c45ab35b3423f372764c90227a4d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3942, "upload_time": "2018-02-28T18:26:45", "url": "https://files.pythonhosted.org/packages/f6/c5/4c907133cd1ce1a5f318c03fb8803c28262bded1eb31a7fac862a21c1eaa/jsonconfigreader-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "2e9d93a1701af14ac0bcdbb035e8823a", "sha256": "0e1825f26e6b5394123827fa6356007daff1dac035bc1f35c9031ce50507d726" }, "downloads": -1, "filename": "jsonconfigreader-1.3.1.tar.gz", "has_sig": false, "md5_digest": "2e9d93a1701af14ac0bcdbb035e8823a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4095, "upload_time": "2018-03-09T20:14:13", "url": "https://files.pythonhosted.org/packages/55/40/05f563b81cdab6b9b44f4e062c30b9848d6c5d9e45ded02025d8e4f9a033/jsonconfigreader-1.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2e9d93a1701af14ac0bcdbb035e8823a", "sha256": "0e1825f26e6b5394123827fa6356007daff1dac035bc1f35c9031ce50507d726" }, "downloads": -1, "filename": "jsonconfigreader-1.3.1.tar.gz", "has_sig": false, "md5_digest": "2e9d93a1701af14ac0bcdbb035e8823a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4095, "upload_time": "2018-03-09T20:14:13", "url": "https://files.pythonhosted.org/packages/55/40/05f563b81cdab6b9b44f4e062c30b9848d6c5d9e45ded02025d8e4f9a033/jsonconfigreader-1.3.1.tar.gz" } ] }