{"id":16005419,"url":"https://github.com/wmarquardt/cassandra-csv","last_synced_at":"2025-03-18T02:32:02.782Z","repository":{"id":62560982,"uuid":"180900301","full_name":"wmarquardt/cassandra-csv","owner":"wmarquardt","description":"A simple way to export cassandra query result to CSV format","archived":false,"fork":false,"pushed_at":"2024-01-19T01:17:12.000Z","size":21,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T06:19:41.501Z","etag":null,"topics":["cassandra","csv","data","python"],"latest_commit_sha":null,"homepage":null,"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/wmarquardt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-04-12T00:38:05.000Z","updated_at":"2024-01-19T01:15:40.000Z","dependencies_parsed_at":"2024-10-27T17:12:31.685Z","dependency_job_id":"c0a68854-b361-431c-b200-b4125b02625b","html_url":"https://github.com/wmarquardt/cassandra-csv","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.4814814814814815,"last_synced_commit":"649d4c544fd7b66a1e439672e636d48b38f07832"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmarquardt%2Fcassandra-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmarquardt%2Fcassandra-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmarquardt%2Fcassandra-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmarquardt%2Fcassandra-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmarquardt","download_url":"https://codeload.github.com/wmarquardt/cassandra-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243894463,"owners_count":20365033,"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":["cassandra","csv","data","python"],"created_at":"2024-10-08T11:04:34.189Z","updated_at":"2025-03-18T02:32:02.420Z","avatar_url":"https://github.com/wmarquardt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![code-style](https://img.shields.io/badge/codestyle-black-black)](https://github.com/psf/black)\n\n# Cassandra CSV\nPython package to export cassandra query result to CSV format.\nCassandra `COPY` function does not export data with **WHERE** clause. If you need to export cassandra query result to CSV format, just read the documentation below.\n\n## Install\n```shell\n$ pip install cassandra-csv\n```\n\n## Usage\n```python\nfrom cassandra.cluster import Cluster\nfrom cassandracsv import CassandraCsv\n\ncluster = Cluster()\ncassandra_cluster = cluster.connect('database')\n\nresult = cassandra_cluster.execute(\"\"\"SELECT foo FROM bar WHERE foobar=2\"\"\")\n\n\nCassandraCsv.export(\n    result,\n    [options]\n)\n```\n\n## Options\n|Name| Type | Default |  Description |\n|--|--|--|--|\n| **max_file_size** | int | 0 | max CSV file size (lines) the file will be splitted until complete entire resultset. Use 0 to export all result to just one file |\n| **output_dir** | string | /tmp | full output path\n| **filename** | string | export_file | file name (without extension)\n| **separator** | string | , | string separator\n| **with_header** | boolean | True | show file header (field name or alias, added direct on select using `as`)\n| **create_subfolder** | boolean | False | create sulfolder to store files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmarquardt%2Fcassandra-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmarquardt%2Fcassandra-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmarquardt%2Fcassandra-csv/lists"}