{ "info": { "author": "Likid Geimfari (Isaak Uchakaev)", "author_email": "likid.geimfari@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development", "Topic :: Software Development :: Testing" ], "description": ".. image:: https://raw.githubusercontent.com/lk-geimfari/wasserstoff/master/media/wasserstoff_large.png.png\n :target: https://github.com/lk-geimfari/wasserstoff\n\n\n**Wasserstoff** - is a library that help you store your configurations\nfor applications in JSON files. The configuration will be easily loaded\nto the scope of configuration object. The library was written with the\nuse of tools from the standard Python library, and therefore, it does\nnot have any side dependencies.\n\n.. image:: https://travis-ci.org/lk-geimfari/wasserstoff.svg?branch=master\n :target: https://travis-ci.org/lk-geimfari/wasserstoff\n\t\n.. image:: https://badge.fury.io/py/wasserstoff.svg\n :target: https://badge.fury.io/py/wasserstoff\n\n.. image:: https://codecov.io/gh/lk-geimfari/wasserstoff/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/lk-geimfari/wasserstoff\n \n\nInstallation\n~~~~~~~~~~~~\n\n::\n\n \u279c ~ pip install wasserstoff\n\nor (when the project has been cloned):\n\n::\n\n \u279c make test\n \u279c make install\n\nUsage\n~~~~~\n\nContent of ``dev.json``:\n\n.. code:: json\n\n {\n \"smtp server\": [\n \"smtp.yandex.ru\",\n \"smtp.gmail.com\"\n ],\n \"port\": 456,\n \"ssl\": true,\n \"secret_key\": \"SECRET_KEY_HERE\"\n }\n\nContent of ``test.json``:\n\n.. code:: json\n\n {\n \"ssl\": false,\n \"secret_key\": \"001110110100101100101010100010111010\"\n }\n\nLoading configurations from the file:\n\n.. code:: python\n\n\n >>> from wasserstoff import (\n ... Config,\n ... Environment,\n ... )\n\n >>> env = Environment()\n\n >>> dev = Config(\n ... filename='dev',\n ... scope='dev',\n ... )\n\n >>> test = Config(\n ... filename='test',\n ... scope='test',\n ... )\n\n >>> env.patch(dev, test)\n >>> env.commit()\n\nNow you can access to your configurations:\n\n.. code:: python\n\n >>> env.dev.SMTP_SERVER\n ['smtp.yandex.ru', 'smtp.gmail.com']\n\n >>> env.dev.SSL\n True\n\n >>> env.dev.PORT\n 456\n\n >>> env.dev.SECRET_KEY\n 'SECRET_KEY_HERE'\n\n >>> env.test.SSL\n False\n\n >>> env.test.SECRET_KEY\n '001110110100101100101010100010111010'\n\nLicense\n~~~~~~~\n\nWasserstoff is licensed under the MIT License. See LICENSE for more\ninformation.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lk-geimfari/wasserstoff", "keywords": "wasserstoff,config,json,objects", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "wasserstoff", "package_url": "https://pypi.org/project/wasserstoff/", "platform": "", "project_url": "https://pypi.org/project/wasserstoff/", "project_urls": { "Homepage": "https://github.com/lk-geimfari/wasserstoff" }, "release_url": "https://pypi.org/project/wasserstoff/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Store your configurations for applications in JSON.", "version": "0.0.3" }, "last_serial": 3176730, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "25fb0d8eb425fba9eaa15da2db48952c", "sha256": "ee9418511850264d0006ca989f81b0675067a65fc5a631ddf69d2176cda222d4" }, "downloads": -1, "filename": "wasserstoff-0.0.1.tar.gz", "has_sig": false, "md5_digest": "25fb0d8eb425fba9eaa15da2db48952c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3687, "upload_time": "2017-09-15T15:03:58", "url": "https://files.pythonhosted.org/packages/63/51/e72d7e05579be4c737f491f202ecabc4a7a7427f2c4891aa84f4da8484b5/wasserstoff-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "67277d7a9ff93ea23728a005f1c72b28", "sha256": "453180ef934e8e0d5464d8c19190ddce1ac54a01bc519a98e58333cad31b257c" }, "downloads": -1, "filename": "wasserstoff-0.0.2.tar.gz", "has_sig": false, "md5_digest": "67277d7a9ff93ea23728a005f1c72b28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4057, "upload_time": "2017-09-15T15:10:59", "url": "https://files.pythonhosted.org/packages/ea/cd/f675db37b94c5371aaf8e3425cef5bc45daf1c1594f64f77aa1079fde081/wasserstoff-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d7ad3e63b6fb02f1462ae430ddb57283", "sha256": "99653d18ecdd5b6b2454c40b491ba8d596eb3a7d8fc5a473079b4ce0afd11296" }, "downloads": -1, "filename": "wasserstoff-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d7ad3e63b6fb02f1462ae430ddb57283", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3995, "upload_time": "2017-09-15T15:58:39", "url": "https://files.pythonhosted.org/packages/b8/d2/73000c0e1772097d0c330e2ffad025e8f01ffe292cca9024546e72b1d687/wasserstoff-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7ad3e63b6fb02f1462ae430ddb57283", "sha256": "99653d18ecdd5b6b2454c40b491ba8d596eb3a7d8fc5a473079b4ce0afd11296" }, "downloads": -1, "filename": "wasserstoff-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d7ad3e63b6fb02f1462ae430ddb57283", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3995, "upload_time": "2017-09-15T15:58:39", "url": "https://files.pythonhosted.org/packages/b8/d2/73000c0e1772097d0c330e2ffad025e8f01ffe292cca9024546e72b1d687/wasserstoff-0.0.3.tar.gz" } ] }