{"id":13691037,"url":"https://github.com/KxSystems/pyq","last_synced_at":"2025-05-02T11:32:04.989Z","repository":{"id":25585912,"uuid":"29020098","full_name":"KxSystems/pyq","owner":"KxSystems","description":"PyQ — Python for kdb+","archived":false,"fork":false,"pushed_at":"2023-02-20T20:16:53.000Z","size":1222,"stargazers_count":191,"open_issues_count":6,"forks_count":49,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-11-03T12:06:36.317Z","etag":null,"topics":["database","interface","kdb","pyq","python","q"],"latest_commit_sha":null,"homepage":"http://code.kx.com/q/interfaces","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KxSystems.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null}},"created_at":"2015-01-09T14:39:45.000Z","updated_at":"2024-10-24T02:37:48.000Z","dependencies_parsed_at":"2024-04-08T01:50:22.985Z","dependency_job_id":null,"html_url":"https://github.com/KxSystems/pyq","commit_stats":{"total_commits":70,"total_committers":8,"mean_commits":8.75,"dds":0.6142857142857143,"last_synced_commit":"8c31f19e6ee8970d5b4146c5593cb1ed174e1385"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KxSystems%2Fpyq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KxSystems%2Fpyq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KxSystems%2Fpyq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KxSystems%2Fpyq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KxSystems","download_url":"https://codeload.github.com/KxSystems/pyq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224308847,"owners_count":17290075,"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":["database","interface","kdb","pyq","python","q"],"created_at":"2024-08-02T17:00:39.025Z","updated_at":"2025-05-02T11:32:04.983Z","avatar_url":"https://github.com/KxSystems.png","language":"Python","funding_links":[],"categories":[":fireworks: Fusion interfaces"],"sub_categories":[],"readme":"# ![PyQ](docs/img/pyq.png) PyQ – Python for kdb+\n\n[![PyPI Version](https://img.shields.io/pypi/v/pyq.svg)](https://pypi.python.org/pypi/pyq)\n![Build](https://github.com/KxSystems/pyq/workflows/Build/badge.svg?branch=master)\n[![Windows build status](https://ci.appveyor.com/api/projects/status/ejiwxrll523smdca?svg=true)](https://ci.appveyor.com/project/abalkin/pyq)\n\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/KxSystems/pyq.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/KxSystems/pyq/alerts/)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/KxSystems/pyq.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/KxSystems/pyq/context:python)\n[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/KxSystems/pyq.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/KxSystems/pyq/context:cpp)\n[![Codecov](https://codecov.io/gh/KxSystems/pyq/branch/master/graph/badge.svg)](https://codecov.io/gh/KxSystems/pyq)\n\n[PyQ](docs/README.md) brings the [Python programming language](https://www.python.org/about) to the [kdb+ database](https://kx.com).\nPart of the [_Fusion for kdb+_](https://code.kx.com/q/interfaces/) interface collection.\n\nIt allows developers to integrate Python and q codes seamlessly in one application.\nThis is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data.\nIn PyQ, Python and q objects live in the same memory space and share the same\ndata.\n\nPlease [report issues](https://github.com/KxSystems/pyq/issues) in this repository.\n\n\n## Installation\n\n```bash\npip install pyq\n```\n\nSee detailed [installation instructions](docs/install.md).\n\n## Usage\n\nFor Python programmers:\n\n```bash\npyq\n```\n```python\n\u003e\u003e\u003e from pyq import q\n\u003e\u003e\u003e 1 + q.til(10)\nk('1 2 3 4 5 6 7 8 9 10')\n```\n\nor run your Python script as\n\n```bash\npyq [python options] python-script\n```\n\nFor q programmers:\n\n```bash\nq\n```\n```q\nq)p)from math import hypot  / prefix python code with p)\nq)p)q.h = hypot             / import a python function\nq)h 3 4                     / call the python function from q\n5f\n```\n\n## Documentation\n\n:open_file_folder: [`docs`](docs/README.md)\n\n## Testing\n\nUse [tox](https://tox.readthedocs.io/en/latest) to run tests.\n\n```bash\ncd path/to/pyq/source\ntox\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKxSystems%2Fpyq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKxSystems%2Fpyq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKxSystems%2Fpyq/lists"}