{"id":19143524,"url":"https://github.com/skytable/client-py","last_synced_at":"2025-04-14T15:52:11.814Z","repository":{"id":237456067,"uuid":"794477472","full_name":"skytable/client-py","owner":"skytable","description":"Official Skytable client driver for Python 3.X","archived":false,"fork":false,"pushed_at":"2024-05-02T17:56:18.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"next","last_synced_at":"2025-03-28T04:41:40.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/skytable-py","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/skytable.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-01T09:03:57.000Z","updated_at":"2024-12-18T06:38:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4cd3e14-dcfb-4ade-85e8-a00679eb4f22","html_url":"https://github.com/skytable/client-py","commit_stats":null,"previous_names":["skytable/skytable-py"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skytable%2Fclient-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skytable%2Fclient-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skytable%2Fclient-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skytable%2Fclient-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skytable","download_url":"https://codeload.github.com/skytable/client-py/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248910817,"owners_count":21181978,"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-09T07:31:46.687Z","updated_at":"2025-04-14T15:52:11.791Z","avatar_url":"https://github.com/skytable.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skytable Python Client\n\n![PyPI - Version](https://img.shields.io/pypi/v/skytable-py) ![Static Badge](https://img.shields.io/badge/python-%3E%3D3.9-blue) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/skytable/client-py/test.yml) ![GitHub License](https://img.shields.io/github/license/skytable/client-py)\n\nThis is the official Python client driver for [Skytable](https://github.com/skytable/skytable). The driver has been tested to work with [Skytable 0.8.2](https://github.com/skytable/skytable/releases/tag/v0.8.2) using the [Skyhash/2 Protocol](https://docs.skytable.io/protocol/). The Python client driver provides first-class `async` support using `asyncio` and does not have any additional dependencies at the moment.\n\n## Example usage\n\nInstall the dependency:\n\n```sh\npip install skytable-py\n```\n\nUse in your code:\n```python\nimport asyncio\nfrom skytable_py import Config, Query\n\n\nc = Config(\"root\", \"mypassword123456789\")\n\n\nasync def main():\n    db = None\n    try:\n        db = await c.connect()\n        # init space\n        assert (await db.run_simple_query(Query(\"create space apps\"))).is_empty()\n        # init model\n        assert (await db.run_simple_query(Query(\"create model apps.auth(username: string, password: string)\"))).is_empty()\n        # insert our test row\n        assert (await db.run_simple_query(Query(\"insert into apps.auth(?, ?)\", \"sayan\", \"mypassword\"))).is_empty()\n        # fetch data\n        username, password = (await db.run_simple_query(Query(\"select * from apps.auth where username = ?\", \"sayan\"))).row().columns\n        # output\n        print(f\"username={username.string()}, password={password.string()}\")\n    except Exception as e:\n        print(f\"failed with error {e}\")\n    finally:\n        if db:\n            await db.close()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n\n```\n\n## License\n\nThis client library is distributed under the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskytable%2Fclient-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskytable%2Fclient-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskytable%2Fclient-py/lists"}