{"id":18698843,"url":"https://github.com/qri-io/qri-python","last_synced_at":"2025-04-12T07:33:11.858Z","repository":{"id":32903512,"uuid":"113602649","full_name":"qri-io/qri-python","owner":"qri-io","description":"qri python client","archived":false,"fork":false,"pushed_at":"2023-05-23T00:12:20.000Z","size":82,"stargazers_count":5,"open_issues_count":9,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T03:11:13.736Z","etag":null,"topics":["hacktoberfest","hacktoberfest2020","python","python-client"],"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/qri-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-12-08T17:58:44.000Z","updated_at":"2021-02-12T16:33:25.000Z","dependencies_parsed_at":"2024-11-07T11:33:37.613Z","dependency_job_id":"2f4ba4dd-ec4f-4a7e-b956-6f60203c379b","html_url":"https://github.com/qri-io/qri-python","commit_stats":{"total_commits":74,"total_committers":7,"mean_commits":"10.571428571428571","dds":"0.44594594594594594","last_synced_commit":"ed7b9a0047b3d50623cef40211e9aebf45c05e42"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fqri-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fqri-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fqri-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fqri-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qri-io","download_url":"https://codeload.github.com/qri-io/qri-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360061,"owners_count":21090643,"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","hacktoberfest2020","python","python-client"],"created_at":"2024-11-07T11:29:57.340Z","updated_at":"2025-04-12T07:33:11.572Z","avatar_url":"https://github.com/qri-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qri-python\n\n```\n ██████╗ ██████╗ ██╗\n██╔═══██╗██╔══██╗██║\n██║   ██║██████╔╝██║\n██║▄▄ ██║██╔══██╗██║\n╚██████╔╝██║  ██║██║\n ╚══▀▀═╝ ╚═╝  ╚═╝╚═╝\n```\n\nPython client for qri (\"query\")\n\n\n# Installation\n\n```\npip install qri\n```\n\n# About\n\nPython wrapper to enable usage of [qri](https://qri.io/), the dataset toolchain. Can\neither use a locally installed qri command-line program to work with your local repository,\nor can directly get datasets from the [Qri Cloud](https://qri.cloud).\n\nDataset objects returned by this library have the components that exist in the\n[standard qri model](https://qri.io/docs/dataset-components/overview). The body is returned\nas a Pandas DataFrame in order to easily integrate with other data science systems, like\nJupyter Notebook.\n\n# Usage\n\nThe following examples assume you have the latest release of the qri command-line client\ninstalled. You can get this from https://github.com/qri-io/qri/releases\n\n```\nimport qri\n```\n\n```\n# Pull a dataset from cloud and add it to your repository\n$ qri.pull(\"b5/world_bank_population\")\n```\n\u003e Fetching from registry...\n\u003e\n\u003e \"Added b5/world_bank_population: ...\"\n\n```\n# List datasets in your repository\n$ qri.list()\n```\n\u003e [Dataset(\"b5/world_bank_population\")]\n\n```\n# Get that single dataset as a variable\n$ d = qri.get(\"b5/world_bank_population\")\n```\n\n```\n# Look at metadata description\n$ d.meta.description\n```\n\u003e ( 1 ) United Nations Population Division. World Population Prospects: 2017 Revision...\n\n```\n# Get the dataset body as a pandas DataFrame\n$ d.body\n```\n\u003e `.   country_name  country_code   indicator_name    ...`\n\u003e\n\u003e `0   Afghanistan   AFG            Population, total ...`\n\u003e \n\u003e `...`\n\nTODO: Save changes\n\n# Development\n\nClone this repository\n\n```\ngit clone https://github.com/qri-io/qri-python\n```\n\nNavigate to the directory where you run jupyter from:\n\n```\ncd /path/where/jupyter/is/run\n```\n\nSymlink the cloned repository's source directory here:\n\n```\nln -s /path/to/cloned/qri-python/qri .\n```\n\nNOTE: The clone command created the directory \"qri-python\", and inside is the source directory named \"qri\". Make sure to symlink the source directory, not just the repository root\n\nThis package should now be usable from within Jupyter Notebook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqri-io%2Fqri-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqri-io%2Fqri-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqri-io%2Fqri-python/lists"}