{"id":21407294,"url":"https://github.com/mkst/kdb-io","last_synced_at":"2026-01-02T17:49:07.547Z","repository":{"id":114862586,"uuid":"106100641","full_name":"mkst/kdb-io","owner":"mkst","description":"python scripts for reading q/kdb+ data files","archived":false,"fork":false,"pushed_at":"2017-10-08T10:22:52.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-23T04:13:16.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-07T13:37:27.000Z","updated_at":"2017-10-07T22:54:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d84c882f-53bf-432a-bf25-36dada3e8216","html_url":"https://github.com/mkst/kdb-io","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fkdb-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fkdb-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fkdb-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fkdb-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkst","download_url":"https://codeload.github.com/mkst/kdb-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902321,"owners_count":20366262,"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":[],"created_at":"2024-11-22T16:45:57.557Z","updated_at":"2026-01-02T17:49:07.509Z","avatar_url":"https://github.com/mkst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kdb-io\n\nA WIP python library that allows reading of _some_ q/kdb+ files into native Python datatypes.\n\n## Howto\n\nGenerate example data:\n```\n$ q32 test/generate.q\nKDB+ 3.5 2017.09.06 Copyright (C) 1993-2017 Kx Systems\nl32/ 4()core 3635MB mark carbon 127.0.1.1 NONEXPIRE  \n\nwriting down atoms\nwriting down lists\nwriting down mixed lists\nwriting down simple\nwriting down nested\nwriting down compressed\n```\nRead some data:\n```\n$ python -m kio data/atoms/m\n[datetime.datetime(2017, 10, 7, 0, 0)]\n```\nRead within python terminal:\n```\n\u003e\u003e\u003e import kio\n\u003e\u003e\u003e files = kio.readfile(\"data/simple/.d\")\n\u003e\u003e\u003e files\n['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r']\n\u003e\u003e\u003e tab = kio.readfiles(\"data/simple\", files)\n\u003e\u003e\u003e tab.keys()\n['a', 'c', 'b', 'e', 'd', 'g', 'f', 'i', 'h', 'k', 'j', 'm', 'l', 'o', 'n', 'q', 'p', 'r']\n\u003e\u003e\u003e len(tab[\"a\"])\n100000\n\u003e\u003e\u003e tab[\"a\"][0]\nTrue\n```\n\n## Status\n\n**Reading (WIP)**\n - [x] Atoms, e.g. `8i`\n - [x] Simple Lists, e.g. `1 2 3 4`\n - [x] Mixed Lists, e.g. `(\"abc\";1 2 3h;1i)`\n - [x] Splayed columns\n - [x] GZIP compressed files\n - [ ] KDB compressed files\n - [ ] Snappy compressed files\n\n**Writing (N/A)**\n - [ ] Atoms, e.g. `8i`\n - [ ] Simple Lists, e.g. `1 2 3 4`\n - [ ] Mixed Lists, e.g. `(\"abc\";1 2 3h;1i)`\n - [ ] Splayed columns\n - [ ] GZIP compressed files\n - [ ] KDB compressed files\n - [ ] Snappy compressed files\n\n**Other**\n - [ ] Conversion to numpy datatypes rather than native Python\n\n## Prerequisites ##\n\n    python-dateutil for dateutil.relativedelta\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkst%2Fkdb-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkst%2Fkdb-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkst%2Fkdb-io/lists"}