{"id":37079023,"url":"https://github.com/eaudeweb/htables","last_synced_at":"2026-01-14T09:34:09.680Z","repository":{"id":3171290,"uuid":"4202486","full_name":"eaudeweb/htables","owner":"eaudeweb","description":"Python library for storing dictionaries in PostgreSQL HStore columns","archived":false,"fork":false,"pushed_at":"2021-03-29T16:44:37.000Z","size":99,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-09T01:07:09.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eaudeweb.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-02T11:56:59.000Z","updated_at":"2013-10-30T00:14:52.000Z","dependencies_parsed_at":"2022-09-05T01:01:51.749Z","dependency_job_id":null,"html_url":"https://github.com/eaudeweb/htables","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/eaudeweb/htables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eaudeweb%2Fhtables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eaudeweb%2Fhtables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eaudeweb%2Fhtables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eaudeweb%2Fhtables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eaudeweb","download_url":"https://codeload.github.com/eaudeweb/htables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eaudeweb%2Fhtables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T09:34:09.005Z","updated_at":"2026-01-14T09:34:09.665Z","avatar_url":"https://github.com/eaudeweb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. 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    \u003e\u003e\u003e import htables\n    \u003e\u003e\u003e db = htables.SqliteDB(':memory:')\n    \u003e\u003e\u003e 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    \u003e\u003e\u003e 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    \u003e\u003e\u003e 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/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaudeweb%2Fhtables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feaudeweb%2Fhtables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaudeweb%2Fhtables/lists"}