{ "info": { "author": "Jose Roberto Meza Cabrera", "author_email": "robertpro01@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pydbproperties 0.3\n==============\nWith this script, you can use store properties into a \nMySQL table, you can change the name of the table, and \nlist the properties into a output stream or file \nstream, etc.\n\nRight now it only works with MySQL Database, I will be\nworking in other databases.\n\nDependencies:\n=============\nMySQL-python (1.2.3)\nMysqlSimpleQueryBuilder (0.2.8)\n\nInstallation:\n=============\nMySQL-python has issues when installing by pip\nyou can install it with your package manage of\nyour distribution\n\nubuntu: sudo apt-get install python2.7-mysqldb\nCentos/RHEL/Fedora: yum install MySQL-python\n\nOnce MySQL-python is installed, you can install\nMysqlSimpleQueryBuilder:\n\n pip install MysqlSimpleQueryBuilder\n\nAnd now you are ready to install pydbproperties:\n\n pip install pydbproperties\n\nExample:\n========\n from pydbproperties import pydbproperties\n prop = pydbproperties()\n prop.set_table_name('my_table')\n for b in range(5):\n prop.set_property('key' + str(b), 'value' + str(b))\n\n config = {\n \"host\": 'localhost',\n \"user\": 'root',\n \"passwd\": '',\n \"db\": 'test_pydbproperties',\n }\n prop.conn(**config)\n # prop.load()\n prop.list()\n prop.set_property('key_test', 'value_test')\n prop.store()\n prop.list()\n \n ====================== \n Output:\n -- listing properties --\n key3=value3\n key2=value2\n key1=value1\n key0=value0\n key4=value4\n -- listing properties --\n key3=value3\n key2=value2\n key1=value1\n key0=value0\n key4=value4\n key_test=value_test\n\n =====================\n Table in MySQL:\n\n MariaDB [test_pydbproperties]> use test_pydbproperties\n Database changed\n MariaDB [test_pydbproperties]> show tables;\n +-------------------------------+\n | Tables_in_test_pydbproperties |\n +-------------------------------+\n | my_table |\n +-------------------------------+\n 1 row in set (0.00 sec)\n\n MariaDB [test_pydbproperties]> select * from my_table;\n +----------+------------+\n | key | value |\n +----------+------------+\n | key0 | value0 |\n | key1 | value1 |\n | key2 | value2 |\n | key3 | value3 |\n | key4 | value4 |\n | key_test | value_test |\n +----------+------------+\n 6 rows in set (0.00 sec)", "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/robertpro", "keywords": null, "license": "GPL v3", "maintainer": null, "maintainer_email": null, "name": "pydbproperties", "package_url": "https://pypi.org/project/pydbproperties/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydbproperties/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/robertpro" }, "release_url": "https://pypi.org/project/pydbproperties/0.3/", "requires_dist": null, "requires_python": null, "summary": "Store property in database, like pyjavaproperties(Property JAVA)", "version": "0.3" }, "last_serial": 1382655, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "90473777995dcac23373a30f3cbdae17", "sha256": "bf5afaef111b64e2bafe2b4fa267773e23b465542cb40c2e83856defdbb118fb" }, "downloads": -1, "filename": "pydbproperties-0.1-py2.7.egg", "has_sig": false, "md5_digest": "90473777995dcac23373a30f3cbdae17", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 10688, "upload_time": "2015-01-08T18:57:05", "url": "https://files.pythonhosted.org/packages/84/6f/b14a2696ae41957e042b87733191aba8cb4c50055890897afb5b94c7c353/pydbproperties-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ca8e6cdfcfc7c0ee2609bd7122568623", "sha256": "16ffe189642973c8c31398b0ba9f53cf0354ace5dce6e2f1d0c79d0dcd9e2134" }, "downloads": -1, "filename": "pydbproperties-0.1.tar.gz", "has_sig": false, "md5_digest": "ca8e6cdfcfc7c0ee2609bd7122568623", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5879, "upload_time": "2015-01-08T18:57:02", "url": "https://files.pythonhosted.org/packages/5c/52/bbccdfbf2cfd7123c8aa51c8517869f57715e6049674e18956c32244066c/pydbproperties-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4ec358397e937be0ee117c776036f0be", "sha256": "2c4a02d68ff9329582e0a14462bffeb59cb8dee5271a5d2890971dabff8aa0af" }, "downloads": -1, "filename": "pydbproperties-0.2-py2.7.egg", "has_sig": false, "md5_digest": "4ec358397e937be0ee117c776036f0be", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11108, "upload_time": "2015-01-09T21:34:05", "url": "https://files.pythonhosted.org/packages/d9/af/7ec62fc542c20b55de892e8fca42611138fa49de4333e7eb968e79276935/pydbproperties-0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "120e12256cca0e633e8aea875eefa2b8", "sha256": "d1006661e3aa56ecdea87e76752a890bd1c70d60435f4e71b86ebdd5034b6280" }, "downloads": -1, "filename": "pydbproperties-0.2.tar.gz", "has_sig": false, "md5_digest": "120e12256cca0e633e8aea875eefa2b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5957, "upload_time": "2015-01-09T21:34:03", "url": "https://files.pythonhosted.org/packages/71/50/81c75cb35cd5fa531b6e6edbb2e7d688cb1d0651140e2c8e0e08819f47f6/pydbproperties-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ab8c2522cca84b77c7d4a0289ed3e2f4", "sha256": "19b84e1f36b0472d365e22d958e35fd2e9774becfec88c5414c18292b8bea326" }, "downloads": -1, "filename": "pydbproperties-0.2.1-py2.7.egg", "has_sig": false, "md5_digest": "ab8c2522cca84b77c7d4a0289ed3e2f4", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11155, "upload_time": "2015-01-10T19:40:37", "url": "https://files.pythonhosted.org/packages/ac/cf/a12d1a88acb6cd461eb7dea11beb388664ff71fb4e02b56c1f41848b601f/pydbproperties-0.2.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "1282d8a3b4583d6eaa1976a2c589479b", "sha256": "11b7bfcf85b0d00d7ff7c78df05d51a1f0a93a74dd9a189cb6ccb124890a524c" }, "downloads": -1, "filename": "pydbproperties-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1282d8a3b4583d6eaa1976a2c589479b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7449, "upload_time": "2015-01-10T19:40:35", "url": "https://files.pythonhosted.org/packages/fc/72/371a0789f996cc89e0cfd486ddcf85c4e10912d38cc654cb03923ca069cd/pydbproperties-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "2d00517168d53ab3f6320089df0b9c8b", "sha256": "12ce90427d539779f694df37b5efb7e155b228e1974b60d419832adaeeade8ca" }, "downloads": -1, "filename": "pydbproperties-0.3-py2.7.egg", "has_sig": false, "md5_digest": "2d00517168d53ab3f6320089df0b9c8b", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11209, "upload_time": "2015-01-14T18:58:39", "url": "https://files.pythonhosted.org/packages/c7/d1/35a0350e7b96a3d053b221d6d6176c4df6012191c935e24ba44c6226d4d3/pydbproperties-0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "56cc9aaac0a79d77c93607f9e232d9b7", "sha256": "7fb1372864f37d6d7e8f900c87d8695f2c510c0f9fbdae3baf991fe2b365a019" }, "downloads": -1, "filename": "pydbproperties-0.3.tar.gz", "has_sig": false, "md5_digest": "56cc9aaac0a79d77c93607f9e232d9b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7468, "upload_time": "2015-01-14T18:58:37", "url": "https://files.pythonhosted.org/packages/c8/2e/dc89a709e474877614e506d85deabb05375a1424bbdff6861171d72687b2/pydbproperties-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2d00517168d53ab3f6320089df0b9c8b", "sha256": "12ce90427d539779f694df37b5efb7e155b228e1974b60d419832adaeeade8ca" }, "downloads": -1, "filename": "pydbproperties-0.3-py2.7.egg", "has_sig": false, "md5_digest": "2d00517168d53ab3f6320089df0b9c8b", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11209, "upload_time": "2015-01-14T18:58:39", "url": "https://files.pythonhosted.org/packages/c7/d1/35a0350e7b96a3d053b221d6d6176c4df6012191c935e24ba44c6226d4d3/pydbproperties-0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "56cc9aaac0a79d77c93607f9e232d9b7", "sha256": "7fb1372864f37d6d7e8f900c87d8695f2c510c0f9fbdae3baf991fe2b365a019" }, "downloads": -1, "filename": "pydbproperties-0.3.tar.gz", "has_sig": false, "md5_digest": "56cc9aaac0a79d77c93607f9e232d9b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7468, "upload_time": "2015-01-14T18:58:37", "url": "https://files.pythonhosted.org/packages/c8/2e/dc89a709e474877614e506d85deabb05375a1424bbdff6861171d72687b2/pydbproperties-0.3.tar.gz" } ] }