{"id":20374796,"url":"https://github.com/gisce/ooquery","last_synced_at":"2025-04-12T07:13:17.457Z","repository":{"id":1643556,"uuid":"43807185","full_name":"gisce/ooquery","owner":"gisce","description":"OpenObject Query Parser","archived":false,"fork":false,"pushed_at":"2023-02-06T12:42:55.000Z","size":118,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-12T07:13:13.247Z","etag":null,"topics":["hacktoberfest","openerp","openobject","orm","parser","query","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-07T09:49:35.000Z","updated_at":"2021-10-21T22:11:46.000Z","dependencies_parsed_at":"2023-02-19T07:30:48.887Z","dependency_job_id":null,"html_url":"https://github.com/gisce/ooquery","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fooquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fooquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fooquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fooquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/ooquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530570,"owners_count":21119600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hacktoberfest","openerp","openobject","orm","parser","query","sql"],"created_at":"2024-11-15T01:26:59.346Z","updated_at":"2025-04-12T07:13:17.415Z","avatar_url":"https://github.com/gisce.png","language":"Python","readme":"****************\nOpenObject Query\n****************\n\nPython 2.7 and \u003e=3.5\n\n.. image:: https://travis-ci.org/gisce/ooquery.svg?branch=master\n    :target: https://travis-ci.org/gisce/ooquery\n.. image:: https://coveralls.io/repos/github/gisce/ooquery/badge.svg?branch=master\n    :target: https://coveralls.io/github/gisce/ooquery?branch=master\n.. image:: https://img.shields.io/pypi/v/ooquery.svg\n    :target: https://pypi.python.org/pypi/ooquery\n\n\nParsers OpenObjectes queries like:\n\n.. code-block:: python\n\n   import pyscopg2\n\n   from oopgrade.oopgrade import get_foreign_keys\n   from ooquery import OOQuery\n\n   conn = psycopg2.connect(\"dbname=test user=postgres\")\n   with conn.cursor() as cursor:\n       def fk_function(table, field):\n           fks = get_foreign_keys(cursor, table)\n           return fks[field]\n\n       q = OOQuery('account_invoice', fk_function)\n       sql = q.select(['number', 'state']).where([\n           ('state', '=', 'open'),\n           ('partner_id.name', '=', 'Pepito')\n       ])\n       cursor.execute(*sql)\n\nSupport for reading from joined tables\n\n.. code-block:: python\n\n    q = OOQuery('account_invoice', fk_function)\n    sql = q.select(['number', 'partner_id.name', 'partner_id.vat']).where([\n        ('state', '=', 'open')\n    ])\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fooquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fooquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fooquery/lists"}