{"id":27170989,"url":"https://github.com/jr200/polars-hist-db","last_synced_at":"2026-04-01T18:40:00.484Z","repository":{"id":286680075,"uuid":"956435221","full_name":"jr200/polars-hist-db","owner":"jr200","description":"(jetstream | file) --\u003e polars dataframe \u003c--\u003e mariadb (bitemporal)","archived":false,"fork":false,"pushed_at":"2026-03-26T14:35:09.000Z","size":6604,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-26T15:36:45.311Z","etag":null,"topics":["bitemporal","dsv","mariadb","nats","nats-jetstream","polars","scraper"],"latest_commit_sha":null,"homepage":"https://jr200.github.io/polars-hist-db/","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/jr200.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-28T08:53:31.000Z","updated_at":"2026-03-26T14:31:55.000Z","dependencies_parsed_at":"2025-08-11T17:14:45.077Z","dependency_job_id":"d190e4f3-ae05-4c5d-bc83-7eedea5cfd8f","html_url":"https://github.com/jr200/polars-hist-db","commit_stats":null,"previous_names":["jr200/polars-hist-db"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/jr200/polars-hist-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jr200%2Fpolars-hist-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jr200%2Fpolars-hist-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jr200%2Fpolars-hist-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jr200%2Fpolars-hist-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jr200","download_url":"https://codeload.github.com/jr200/polars-hist-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jr200%2Fpolars-hist-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bitemporal","dsv","mariadb","nats","nats-jetstream","polars","scraper"],"created_at":"2025-04-09T08:22:03.847Z","updated_at":"2026-04-01T18:40:00.478Z","avatar_url":"https://github.com/jr200.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polars-hist-db\n\nA Python library for building bitemporal data pipelines with [Polars](https://pola.rs/) and [MariaDB](https://mariadb.com/).\n\nIt ingests data from DSV files or [NATS JetStream](https://docs.nats.io/nats-concepts/jetstream) subjects, tracks history using MariaDB's system-versioned tables, and exposes everything as strongly-typed Polars DataFrames.\n\n### Features\n\n- **Typed uploads** — push Polars DataFrames into MariaDB with automatic type mapping between Polars, SQL, and SQLAlchemy.\n- **Typed queries** — read tables back into DataFrames with column types inferred from the database schema. Temporal query hints (`asof`, `span`, `all`) let you slice history without writing SQL.\n- **YAML-driven pipelines** — define scrape specifications that handle column typing, enrichment via custom transform functions, normalization across tables, and foreign-key deduction.\n- **Deduplication** — an audit log tracks what has already been ingested so re-runs skip previously processed files or messages.\n- **Transactional ingestion** — each file or message is processed in its own transaction; failures roll back cleanly without affecting other items.\n- **Dual input sources** — crawl directories for DSV files, or consume messages from NATS JetStream with configurable fetch/subscription strategies.\n- **Delta upserts** — staging tables detect changed rows, handle duplicates (`take_first`, `take_last`, `error`), and optionally mark disappeared rows as dropped.\n\nFull documentation: [jr200.github.io/polars-hist-db](https://jr200.github.io/polars-hist-db)\n\n## Quick Start\n\n```bash\nuv sync\nmake test\n```\n\n## Development\n\n```bash\nmake check       # ruff + mypy\nmake docs        # render and preview quarto docs\nmake bump PART=patch\nmake release\n```\n\n## License\n\nThis project is licensed under the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjr200%2Fpolars-hist-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjr200%2Fpolars-hist-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjr200%2Fpolars-hist-db/lists"}