{ "info": { "author": "Eau de Web", "author_email": "office@eaudeweb.ro", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Database :: Front-Ends" ], "description": ".. role:: class\n\n\nHTables\n=======\n\nHTables is a library for storing string-to-string mapping objects in a\ndatabase. Two backends are supported so far:\n:class:`~htables.PostgresqlDB` and :class:`~htables.SqliteDB`.\n\n.. _hstore: http://www.postgresql.org/docs/current/static/hstore.html\n.. _psycopg2: http://initd.org/psycopg/\n\n::\n\n >>> import htables\n >>> db = htables.SqliteDB(':memory:')\n >>> with db.session() as dbs:\n ... dbs['tweet'].create_table()\n ... dbs['tweet'].new(text=\"Hello world!\")\n ... dbs.commit()\n\nTables are collections of Rows. A row is basically a dictionary with an\nextra ``id`` property. Its keys and values must be strings.\n\n::\n\n >>> with db.session() as dbs:\n ... tweet = dbs['tweet'].find_first()\n ... tweet['author'] = '1337 h4x0r'\n ... tweet.save()\n ... dbs.commit()\n\nThere are many ways of retrieving rows. The following all fetch the\nsame record::\n\n >>> with db.session() as dbs:\n ... tweet_table = dbs['tweet']\n ... [tweet] = list(tweet_table.find())\n ... [tweet] = list(tweet_table.find(author='1337 h4x0r'))\n ... tweet = tweet_table.find_first()\n ... tweet = tweet_table.find_single()\n ... tweet = tweet_table.get(1)\n\n\nLinks\n-----\n\n* documentation_\n* `source code`_\n\n.. _documentation: http://packages.python.org/htables/\n.. _source code: https://github.com/eaudeweb/htables/", "description_content_type": null, "docs_url": "https://pythonhosted.org/htables/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://packages.python.org/htables/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "htables", "package_url": "https://pypi.org/project/htables/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/htables/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://packages.python.org/htables/" }, "release_url": "https://pypi.org/project/htables/0.5.1/", "requires_dist": null, "requires_python": null, "summary": "htables is a database library for storing mapping objects in a relational database.", "version": "0.5.1" }, "last_serial": 737030, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "06f6d2b0114380abeb21f91958d4c45f", "sha256": "735a7522bbfb4fd35ed7f86bcb8935cef38a50095373e2801d6504957959ab1c" }, "downloads": -1, "filename": "htables-0.4.zip", "has_sig": false, "md5_digest": "06f6d2b0114380abeb21f91958d4c45f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7725, "upload_time": "2012-08-20T18:17:24", "url": "https://files.pythonhosted.org/packages/63/2a/6e6d23a9e1bbaed398981a165604637d2bf8bcca372719841a958a8a2686/htables-0.4.zip" } ], "0.4b4": [ { "comment_text": "", "digests": { "md5": "098d06805b56fa4e0815e674848db8ca", "sha256": "0ba40c9391235647c074e6709aedfea5109d2327e761fa2f400422d08ff0fc83" }, "downloads": -1, "filename": "htables-0.4b4.zip", "has_sig": false, "md5_digest": "098d06805b56fa4e0815e674848db8ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7733, "upload_time": "2012-08-08T11:34:38", "url": "https://files.pythonhosted.org/packages/ff/62/3a274ca4a94b28194893410e4b0030ce1f57126bb1529c4bcf773e848ab0/htables-0.4b4.zip" } ], "0.4b5": [ { "comment_text": "", "digests": { "md5": "1b73593a76d9765ff0b2f8dd84394ad3", "sha256": "66d6abb47f56bd50e264693c41854cd1e809edf4423cc0a1793ab7cd13a91649" }, "downloads": -1, "filename": "htables-0.4b5.zip", "has_sig": false, "md5_digest": "1b73593a76d9765ff0b2f8dd84394ad3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7753, "upload_time": "2012-08-10T20:07:57", "url": "https://files.pythonhosted.org/packages/c7/71/ff3c1eb487ba5d032d947d08632765622d7c8000e535e715cad5249c54e0/htables-0.4b5.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "0372d567d6b76468fa963b569fe08635", "sha256": "145b424d13668665d6b9f04bd5c0bce11f8de543055e8400e688acdbeb19b36a" }, "downloads": -1, "filename": "htables-0.5.zip", "has_sig": false, "md5_digest": "0372d567d6b76468fa963b569fe08635", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8839, "upload_time": "2012-09-05T08:13:08", "url": "https://files.pythonhosted.org/packages/52/b8/8797fd3ac9a267bf2f280d8a104832f4f96616323661f6c680ae37b4d85a/htables-0.5.zip" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "05ec5f24fb38e68c94bc059e37001b8f", "sha256": "f30f0b81f82b4f52345d1bb2bc712f36a61ab98cbce4e0588bd99346342fdb76" }, "downloads": -1, "filename": "htables-0.5.1.zip", "has_sig": false, "md5_digest": "05ec5f24fb38e68c94bc059e37001b8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8948, "upload_time": "2012-09-10T13:47:18", "url": "https://files.pythonhosted.org/packages/34/90/b6db9232975d2904448572b90612a7de875e8f2922d16e234af9fa18ddf0/htables-0.5.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "05ec5f24fb38e68c94bc059e37001b8f", "sha256": "f30f0b81f82b4f52345d1bb2bc712f36a61ab98cbce4e0588bd99346342fdb76" }, "downloads": -1, "filename": "htables-0.5.1.zip", "has_sig": false, "md5_digest": "05ec5f24fb38e68c94bc059e37001b8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8948, "upload_time": "2012-09-10T13:47:18", "url": "https://files.pythonhosted.org/packages/34/90/b6db9232975d2904448572b90612a7de875e8f2922d16e234af9fa18ddf0/htables-0.5.1.zip" } ] }