{"id":51152151,"url":"https://github.com/1kbgz/fsspec-db","last_synced_at":"2026-06-26T07:01:35.400Z","repository":{"id":364905833,"uuid":"1267558362","full_name":"1kbgz/fsspec-db","owner":"1kbgz","description":"Database handling for fsspec filesystems","archived":false,"fork":false,"pushed_at":"2026-06-23T00:45:21.000Z","size":815,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-23T01:12:21.405Z","etag":null,"topics":["db","filesystem","fsspec","odbc","python","rust","sql"],"latest_commit_sha":null,"homepage":"https://1kbgz.github.io/fsspec-db/","language":"Rust","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/1kbgz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-12T16:44:50.000Z","updated_at":"2026-06-23T00:05:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/1kbgz/fsspec-db","commit_stats":null,"previous_names":["1kbgz/fsspec-db"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/1kbgz/fsspec-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1kbgz%2Ffsspec-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1kbgz%2Ffsspec-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1kbgz%2Ffsspec-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1kbgz%2Ffsspec-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1kbgz","download_url":"https://codeload.github.com/1kbgz/fsspec-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1kbgz%2Ffsspec-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34806448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["db","filesystem","fsspec","odbc","python","rust","sql"],"created_at":"2026-06-26T07:01:31.266Z","updated_at":"2026-06-26T07:01:35.392Z","avatar_url":"https://github.com/1kbgz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsspec-db\n\nDatabase tables and views as fsspec filesystems.\n\n[![Build Status](https://github.com/1kbgz/fsspec-db/actions/workflows/build.yaml/badge.svg?branch=main\u0026event=push)](https://github.com/1kbgz/fsspec-db/actions/workflows/build.yaml)\n[![codecov](https://codecov.io/gh/1kbgz/fsspec-db/branch/main/graph/badge.svg)](https://codecov.io/gh/1kbgz/fsspec-db)\n[![License](https://img.shields.io/github/license/1kbgz/fsspec-db)](https://github.com/1kbgz/fsspec-db)\n[![PyPI](https://img.shields.io/pypi/v/fsspec-db.svg)](https://pypi.python.org/pypi/fsspec-db)\n\n## Overview\n\n`fsspec-db` exposes SQL databases through familiar fsspec operations:\n\n- `ls(\"/\")` lists schemas.\n- `ls(\"/main\")` lists tables and views.\n- `info(\"/main/users/columns/id\")` returns column metadata.\n- `cat_file(\"/main/users.parquet\")` materializes a table as bytes.\n- `query(\"SELECT ...\")` returns a `pyarrow.Table`.\n- `open(\"/main/users.arrow\", \"wb\")` or `put_file(..., \"/main/users.parquet\")` inserts rows.\n\nNative backends are registered as `db+sqlite`, `db+postgresql` / `db+postgres`, and\n`db+mysql`.\n\n\u003e [!WARNING]\n\u003e Database overwrite writes replace table contents. `open(path, \"wb\")`, `pipe_file`, and\n\u003e default `put_file` run truncate semantics before inserting incoming rows. Use `\"ab\"` or\n\u003e `mode=\"append\"` to append instead.\n\n## Install\n\n```bash\npip install fsspec-db\n```\n\n## Quick Start\n\n```python\nimport fsspec\nimport pyarrow as pa\nimport pyarrow.ipc as ipc\n\nfs = fsspec.filesystem(\"db+sqlite\", database=\"app.db\")\n\nprint(fs.ls(\"/\", detail=False))\nprint(fs.ls(\"/main\", detail=False))\nprint(fs.info(\"/main/users\"))\n\ntable = fs.query(\"SELECT id, name FROM users WHERE id \u003e ?\", [0])\n\nwith fs.open(\"/main/users.arrow\", \"ab\") as file:\n    sink = pa.BufferOutputStream()\n    with ipc.new_stream(sink, pa.table({\"name\": [\"ada\"]}).schema) as writer:\n        writer.write_table(pa.table({\"name\": [\"ada\"]}))\n    file.write(sink.getvalue().to_pybytes())\n```\n\n## Path Shape\n\n```text\n/main\n/main/users\n/main/users/columns/id\n/main/users/indexes/idx_users_name\n/main/users.arrow\n/main/users.parquet\n/main/active_users/definition.sql\n```\n\n## Documentation\n\nThe full yardang/Sphinx docs cover concepts, path semantics, native SQL backends,\nPython-defined backends, and the API reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1kbgz%2Ffsspec-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1kbgz%2Ffsspec-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1kbgz%2Ffsspec-db/lists"}