{ "info": { "author": "Casimir Nowak", "author_email": "nowakcasimir@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "discord-config\n==============\n\n``discord-config`` is a Python library to help saving and loading configuration files.\n\nWarning: Still in development, so use with care!\n\nInstallation\n------------\n\ndiscord-config is available on PyPI under ``discord_config``:\n\n.. code-block:: bash\n\n $ pip install -U discord_config\n\nOr for the latest development version:\n\n.. code-block:: bash\n\n $ pip install -U git+https://github.com/nowakcasimir/discord-config.git#egg=discord_config\n\nBasic Example\n-------------\n\n.. code-block:: python3\n\n from discord_config import Settings\n\n # (settings will be saved by default to settings.json, if it is not defined)\n settings = Settings()\n\n print (settings)\n print (settings.token) #> \"...yourtoken...\"\n print (settings.server_id) #> \"123123123\"\n\n settings.clear() # Clears the settings\n\n # You can define arbitrary settings to Settings object defaults\n settings = Settings(defaults = {\n \"token\": \"...yourtoken...\",\n \"botname\": \"MyDiscordBot\",\n \"joinservers\": False,\n \"idleTimer\": 100\n })\n\n print (settings)\n print (settings.token) #> \"...yourtoken...\"\n print (settings.botname) #> \"...MyDiscordBot...\"\n print (settings.joinservers) #> False\n print (settings.idleTimer) #> 100\n\n # Defaults were overwritten\n try:\n print (settings.server_id)\n except Exception as e:\n #> AttributeError: 'Settings' object has no attribute 'server_id'\n pass\n\n settings.set('id', 'broker')\n\n print (settings.id) #> 100\n\n settings.save() # outputs settings.json by default\n\n settings = Settings() # Now it loads settings.json\n\n print (settings)\n\n settings.clear()\n\nDocumentation\n-------------\n\nSee the documentation at https://discord-rnn.neocities.org/.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nowakcasimir/discord-config", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "discord-config", "package_url": "https://pypi.org/project/discord-config/", "platform": "", "project_url": "https://pypi.org/project/discord-config/", "project_urls": { "Homepage": "https://github.com/nowakcasimir/discord-config" }, "release_url": "https://pypi.org/project/discord-config/0.0.2/", "requires_dist": [ "appdirs" ], "requires_python": "", "summary": "Easy config module for Discord bots", "version": "0.0.2" }, "last_serial": 4636233, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "438e49b671592dfb72fd1797fc2bf1ca", "sha256": "21304971d1ce6856973d5f7416f37e2e2747afe53541483abed28dd56fa6d258" }, "downloads": -1, "filename": "discord_config-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "438e49b671592dfb72fd1797fc2bf1ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6667, "upload_time": "2018-12-26T21:24:05", "url": "https://files.pythonhosted.org/packages/ea/2a/7355aa9d5a8e9fb4656a904f5b535c73f1e30753bee21b79452782d714eb/discord_config-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd3170248e2c43b4a6c7d89cddd26fd9", "sha256": "98a13e442606752bd452ec66c8bd2805d49ddf40039b480808c56bbf8cd52f6e" }, "downloads": -1, "filename": "discord_config-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dd3170248e2c43b4a6c7d89cddd26fd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4443, "upload_time": "2018-12-26T21:24:07", "url": "https://files.pythonhosted.org/packages/26/73/0e9eb2c866f0ba8ac02b26cb04e2c0de202054a58cfe52697104bf24b3a0/discord_config-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e068070e534372ae0f322cd6a23d986a", "sha256": "b51e3ad6dd2b7bc0ee616e9a5ead644714ed07c3c3df1057e645229e9cb5569f" }, "downloads": -1, "filename": "discord_config-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e068070e534372ae0f322cd6a23d986a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6673, "upload_time": "2018-12-26T21:36:28", "url": "https://files.pythonhosted.org/packages/d9/41/631b0911fc955e319efecb87be1f37b7e2cd2a576d1f7d804797e5338ee2/discord_config-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04eb052e5b1c31d82f53e898495cd0cd", "sha256": "542904b5deda56002dc0cc0c28be10a75c98b01a02166876c4d5164ca55ac76c" }, "downloads": -1, "filename": "discord_config-0.0.2.tar.gz", "has_sig": false, "md5_digest": "04eb052e5b1c31d82f53e898495cd0cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4441, "upload_time": "2018-12-26T21:36:30", "url": "https://files.pythonhosted.org/packages/72/f0/7b65473076b840e1ea4fae9d2ba48541d84c8a68ea159274a110ba40790d/discord_config-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e068070e534372ae0f322cd6a23d986a", "sha256": "b51e3ad6dd2b7bc0ee616e9a5ead644714ed07c3c3df1057e645229e9cb5569f" }, "downloads": -1, "filename": "discord_config-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e068070e534372ae0f322cd6a23d986a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6673, "upload_time": "2018-12-26T21:36:28", "url": "https://files.pythonhosted.org/packages/d9/41/631b0911fc955e319efecb87be1f37b7e2cd2a576d1f7d804797e5338ee2/discord_config-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04eb052e5b1c31d82f53e898495cd0cd", "sha256": "542904b5deda56002dc0cc0c28be10a75c98b01a02166876c4d5164ca55ac76c" }, "downloads": -1, "filename": "discord_config-0.0.2.tar.gz", "has_sig": false, "md5_digest": "04eb052e5b1c31d82f53e898495cd0cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4441, "upload_time": "2018-12-26T21:36:30", "url": "https://files.pythonhosted.org/packages/72/f0/7b65473076b840e1ea4fae9d2ba48541d84c8a68ea159274a110ba40790d/discord_config-0.0.2.tar.gz" } ] }