{ "info": { "author": "Pal", "author_email": "ipal0can@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Wrapper Class around Psycopg2 for PostgreSQL\n\tIn psycopg2 after connecting to the database, for every read execute statement the data needs to be fetched and for evey write execute statement the data needs to be committed. But this class eliminates these requirements and make it simple to read and write to the database.\n\n\nFiles:\n\tpalpg/__init__.py\n\n\nInstallation:\n\tsudo pip3 install palpg\n\n\nUsage Examples:\n\timport palpg\n\t\n\tdb = palpg.db(\"host=HOST port=PORT dbname=DBNAME user=USER password=PASSWORD\") ##-connect to the database\n\n\tdb.read(\"sql statement\") ##-returns the read data from database with flat=True\n\n\tdb.read(\"select item from table\", flat=False) ##-returns the raw read data \n\t\n\tdb.read(\"select item from table where item = %s\", (sub1,)) ##-read with string substitution\n\t\n\tdb.read1(\"sql statement\") ##-returns the first read data similar to fetchone\n\t\n\tdb.write(\"sql statement\") ##-writes the data and commits to the database\n\t\n\tdb.clear() #-to reconnect if any transaction error\n\n\nFor other psycopg connection commands use the connection class\n\tdb.conn....\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ipal0/palpg", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "palpg", "package_url": "https://pypi.org/project/palpg/", "platform": "", "project_url": "https://pypi.org/project/palpg/", "project_urls": { "Homepage": "https://github.com/ipal0/palpg" }, "release_url": "https://pypi.org/project/palpg/2.3/", "requires_dist": null, "requires_python": "", "summary": "Postgres Wrapper Class using psycopg2", "version": "2.3" }, "last_serial": 5256906, "releases": { "1.8": [ { "comment_text": "", "digests": { "md5": "f65592d6cbf87d8c7c99380644784390", "sha256": "9776b2f88144f89257b26819dcc7cb54a5762231784c80750c638ecc78f76048" }, "downloads": -1, "filename": "palpg-1.8.tar.gz", "has_sig": false, "md5_digest": "f65592d6cbf87d8c7c99380644784390", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1689, "upload_time": "2018-05-10T19:48:13", "url": "https://files.pythonhosted.org/packages/78/4d/ff5ba00883126cbf8623a71247d221c54208c48affe36009d0387edce110/palpg-1.8.tar.gz" } ], "1.9": [ { "comment_text": "", "digests": { "md5": "8c317e6cbb607cf4338253332dab429a", "sha256": "c8e745407c3244624fc0c217e7c696991cc1a3dfa0ae3580baf6b9c02a98a1ae" }, "downloads": -1, "filename": "palpg-1.9.tar.gz", "has_sig": false, "md5_digest": "8c317e6cbb607cf4338253332dab429a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1746, "upload_time": "2018-05-10T20:06:14", "url": "https://files.pythonhosted.org/packages/f0/14/38273fc0bbe36046a5173c4ac9602bff941cac46489fa5916785aab05389/palpg-1.9.tar.gz" } ], "1.95": [ { "comment_text": "", "digests": { "md5": "0e6daa4a1f31c99a0386604815d23314", "sha256": "e67423b6587fdf6d37e164d2cece1359e0d221d57410084e1dbf02004e5cc78e" }, "downloads": -1, "filename": "palpg-1.95.tar.gz", "has_sig": false, "md5_digest": "0e6daa4a1f31c99a0386604815d23314", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1810, "upload_time": "2018-05-10T20:11:13", "url": "https://files.pythonhosted.org/packages/90/a7/7acf1a5ef5474b33c0208e93e88401e3718ee27349a8f2bd7e7a722d08bc/palpg-1.95.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "52ca77a74a171cb422ffc68fde3ae726", "sha256": "7981d765295ed692f9c287111bae16b279910606e07c2012c01503ad9bea7fd7" }, "downloads": -1, "filename": "palpg-2.0.tar.gz", "has_sig": false, "md5_digest": "52ca77a74a171cb422ffc68fde3ae726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1806, "upload_time": "2018-05-10T20:13:48", "url": "https://files.pythonhosted.org/packages/77/e2/fc3212526a89229959a628c72d92fd8fa6e0bd3ad4861ec6c90dd070b2bd/palpg-2.0.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "e3282c4ceb023c40c06848bf41316d71", "sha256": "64bb5e9a326ddd6c4222d03f6401f28d21df1512b995b1190d446bc414d53220" }, "downloads": -1, "filename": "palpg-2.1.tar.gz", "has_sig": false, "md5_digest": "e3282c4ceb023c40c06848bf41316d71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1836, "upload_time": "2018-05-10T20:16:17", "url": "https://files.pythonhosted.org/packages/db/af/992a188318d2c80bbe2f6f966e2fc73cbddc9c3df78a64b664b666461141/palpg-2.1.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "fa67fb57794c8a09098fca26419fa89f", "sha256": "2ec9422adeccfa95cd9b67818e94a1bde76e40cc9df026cdfe68c89887176d13" }, "downloads": -1, "filename": "palpg-2.2.tar.gz", "has_sig": false, "md5_digest": "fa67fb57794c8a09098fca26419fa89f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1828, "upload_time": "2018-05-16T19:15:37", "url": "https://files.pythonhosted.org/packages/92/e7/5133384d88ca9f405744185ea4f050e30ad6d994b229799b32f3c04c1cfb/palpg-2.2.tar.gz" } ], "2.3": [ { "comment_text": "", "digests": { "md5": "188e92a4b37eb9071d98e03dacbcf671", "sha256": "f343c08a1ac0899e3caa2b1919fbbbced54be62e0c534b0aa96bd07a4b1d1e15" }, "downloads": -1, "filename": "palpg-2.3.tar.gz", "has_sig": false, "md5_digest": "188e92a4b37eb9071d98e03dacbcf671", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1865, "upload_time": "2019-05-11T18:42:15", "url": "https://files.pythonhosted.org/packages/13/68/71a675da090dc79ac2d30ef8b97aff075850d5b970ad574ebee43894d4d9/palpg-2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "188e92a4b37eb9071d98e03dacbcf671", "sha256": "f343c08a1ac0899e3caa2b1919fbbbced54be62e0c534b0aa96bd07a4b1d1e15" }, "downloads": -1, "filename": "palpg-2.3.tar.gz", "has_sig": false, "md5_digest": "188e92a4b37eb9071d98e03dacbcf671", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1865, "upload_time": "2019-05-11T18:42:15", "url": "https://files.pythonhosted.org/packages/13/68/71a675da090dc79ac2d30ef8b97aff075850d5b970ad574ebee43894d4d9/palpg-2.3.tar.gz" } ] }