{"id":13834842,"url":"https://github.com/pola-rs/polars-cli","last_synced_at":"2025-12-29T23:35:10.530Z","repository":{"id":187448624,"uuid":"676901781","full_name":"pola-rs/polars-cli","owner":"pola-rs","description":"CLI interface for running SQL queries with Polars as backend","archived":false,"fork":false,"pushed_at":"2025-01-12T14:01:52.000Z","size":147,"stargazers_count":183,"open_issues_count":17,"forks_count":15,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-30T14:18:42.116Z","etag":null,"topics":["polars","sql"],"latest_commit_sha":null,"homepage":"https://pola.rs/","language":"Rust","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/pola-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ritchie46"}},"created_at":"2023-08-10T09:18:22.000Z","updated_at":"2025-06-18T03:26:33.000Z","dependencies_parsed_at":"2023-10-12T17:04:54.942Z","dependency_job_id":"0faca765-7a65-4dd8-9063-b6321141763e","html_url":"https://github.com/pola-rs/polars-cli","commit_stats":null,"previous_names":["pola-rs/polars-cli"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pola-rs/polars-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pola-rs%2Fpolars-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pola-rs%2Fpolars-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pola-rs%2Fpolars-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pola-rs%2Fpolars-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pola-rs","download_url":"https://codeload.github.com/pola-rs/polars-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pola-rs%2Fpolars-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545157,"owners_count":23625403,"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":["polars","sql"],"created_at":"2024-08-04T14:00:52.872Z","updated_at":"2025-12-29T23:35:10.489Z","avatar_url":"https://github.com/pola-rs.png","language":"Rust","funding_links":["https://github.com/sponsors/ritchie46"],"categories":["Rust","Libraries/Packages/Scripts"],"sub_categories":["Rust"],"readme":"# Polars CLI\n\n[![Crates.io](https://img.shields.io/crates/v/polars-cli)](https://crates.io/crates/polars-cli)\n[![PyPI](https://img.shields.io/pypi/v/polars-cli)](https://pypi.org/project/polars-cli/)\n\nThe Polars command line interface provides a convenient way to execute SQL commands using Polars as a backend.\n\n## Installation\n\nThe recommended way to install the Polars CLI is by using [pip](https://pip.pypa.io/):\n\n```bash\npip install polars-cli\n```\n\nThis will install a pre-compiled binary and make it available on your path under `polars`.\nIf you do not have Python available, you can download a suitable binary from the most recent [GitHub release](https://github.com/pola-rs/polars-cli/releases/latest/).\n\nAlternatively, you can install the Polars CLI using [cargo](https://doc.rust-lang.org/cargo/), which will compile the code from scratch:\n\n```bash\ncargo install --locked polars-cli\n```\n\n## Usage\n\nRunning `polars` without any arguments will start an interactive shell in which you can run SQL commands.\n\n```shell\n$ polars\nPolars CLI version 0.4.0\nType .help for help.\n\n\u003e\u003e select * FROM read_csv('examples/datasets/foods.csv');\n┌────────────┬──────────┬────────┬──────────┐\n│ category   ┆ calories ┆ fats_g ┆ sugars_g │\n│ ---        ┆ ---      ┆ ---    ┆ ---      │\n│ str        ┆ i64      ┆ f64    ┆ i64      │\n╞════════════╪══════════╪════════╪══════════╡\n│ vegetables ┆ 45       ┆ 0.5    ┆ 2        │\n│ seafood    ┆ 150      ┆ 5.0    ┆ 0        │\n│ meat       ┆ 100      ┆ 5.0    ┆ 0        │\n│ fruit      ┆ 60       ┆ 0.0    ┆ 11       │\n│ …          ┆ …        ┆ …      ┆ …        │\n│ seafood    ┆ 200      ┆ 10.0   ┆ 0        │\n│ seafood    ┆ 200      ┆ 7.0    ┆ 2        │\n│ fruit      ┆ 60       ┆ 0.0    ┆ 11       │\n│ meat       ┆ 110      ┆ 7.0    ┆ 0        │\n└────────────┴──────────┴────────┴──────────┘\n```\n\nAlternatively, SQL commands can be piped directly into the Polars CLI.\n\n```bash\n$ echo \"SELECT category FROM read_csv('examples/datasets/foods.csv')\" | polars\n┌────────────┐\n│ category   │\n│ ---        │\n│ str        │\n╞════════════╡\n│ vegetables │\n│ seafood    │\n│ meat       │\n│ fruit      │\n│ …          │\n│ seafood    │\n│ seafood    │\n│ fruit      │\n│ meat       │\n└────────────┘\n```\n\n## Features\n\nWhen compiling the Polars CLI from source, the following features can be enabled:\n\n| Feature   | Description                                               |\n| --------- | --------------------------------------------------------- |\n| default   | The default feature set that includes all other features. |\n| highlight | Provides syntax highlighting                              |\n| parquet   | Enables reading and writing of Apache Parquet files.      |\n| json      | Enables reading and writing of JSON files.                |\n| ipc       | Enables reading and writing of IPC/Apache Arrow files     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpola-rs%2Fpolars-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpola-rs%2Fpolars-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpola-rs%2Fpolars-cli/lists"}