{"id":47623291,"url":"https://github.com/kayhendriksen/foehn","last_synced_at":"2026-04-26T00:03:50.740Z","repository":{"id":346038981,"uuid":"1185707786","full_name":"kayhendriksen/foehn","owner":"kayhendriksen","description":"Download MeteoSwiss Open Government Data — weather stations, radar, hail, forecasts and climate series — via Python API, CLI, or MCP server, as DataFrames or Parquet files","archived":false,"fork":false,"pushed_at":"2026-04-18T14:01:34.000Z","size":2601,"stargazers_count":35,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T16:02:31.161Z","etag":null,"topics":["climate","databricks","meteoswiss","open-data","polars","python","weather"],"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/kayhendriksen.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":"2026-03-18T21:37:28.000Z","updated_at":"2026-04-18T14:00:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa504ce2-f788-4907-9723-dcfb23adede7","html_url":"https://github.com/kayhendriksen/foehn","commit_stats":null,"previous_names":["kayhendriksen/foehn"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/kayhendriksen/foehn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhendriksen%2Ffoehn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhendriksen%2Ffoehn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhendriksen%2Ffoehn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhendriksen%2Ffoehn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayhendriksen","download_url":"https://codeload.github.com/kayhendriksen/foehn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhendriksen%2Ffoehn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"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":["climate","databricks","meteoswiss","open-data","polars","python","weather"],"created_at":"2026-04-01T22:27:59.831Z","updated_at":"2026-04-26T00:03:50.705Z","avatar_url":"https://github.com/kayhendriksen.png","language":"Python","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/banner.svg\" alt=\"foehn\" width=\"600\"\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eMeteoSwiss Open Data — Python API, CLI, MCP server, Parquet \u0026 Delta tables\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/foehn/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/foehn.svg\" alt=\"PyPI Latest Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/foehn/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/foehn.svg\" alt=\"Python Versions\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/kayhendriksen/foehn/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/foehn/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/dm/foehn.svg\" alt=\"Monthly Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nfoehn downloads every [MeteoSwiss OGD](https://github.com/MeteoSwiss/opendata) collection via the STAC API, converts CSV/TXT to Parquet with [Polars](https://pola.rs), and optionally ingests everything into [Databricks](https://www.databricks.com) Unity Catalog Delta tables on a daily schedule. It also ships an [MCP server](https://modelcontextprotocol.io) so LLMs can query Swiss weather data directly.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/mcp_demo.png\" alt=\"Daily weather in Bern, powered by foehn\" width=\"700\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eDaily weather in Bern, powered by foehn's MCP server and MeteoSwiss open data.\u003c/em\u003e\n\u003c/p\u003e\n\n## Why foehn?\n\n- **20+ collections in one command** — weather stations, radar, hail maps, forecasts, climate scenarios, and more\n- **MCP server for LLMs** — give your favorite LLM live access to MeteoSwiss data with the MCP server\n- **Significantly smaller on disk** — columnar Parquet with Zstandard compression vs. raw CSVs\n- **Incremental by default** — only re-downloads files that changed since your last run, tracked via `_last_run.json`\n- **No Spark required locally** — download + conversion uses Polars only; Spark is optional for Delta ingestion\n- **Ships a Declarative Automation Bundle** — ready-to-deploy daily job and historical backfill, no pipeline config needed\n\n---\n\n## Quick start\n\n```bash\npip install foehn\nfoehn download\n```\n\nRecent data (Jan 1 to yesterday) is downloaded and converted to Parquet under `./data/meteoswiss/`.\n\n\u003cimg src=\"https://raw.githubusercontent.com/kayhendriksen/foehn/main/assets/cli_demo.gif\" alt=\"foehn CLI demo\" width=\"800\"\u003e\n\n---\n\n## Installation\n\n**From PyPI:**\n```bash\npip install foehn\n```\n\n**From source:**\n```bash\ngit clone https://github.com/kayhendriksen/foehn\ncd foehn\npip install -e .\n```\n\n**With extras:**\n```bash\npip install \"foehn[databricks]\"   # PySpark + Delta\npip install \"foehn[mcp]\"          # MCP server\n```\n\nRequires Python 3.10 or later.\n\n---\n\n## Python API\n\n```python\nimport foehn\n\ndf = foehn.load(\"smn\", station=\"BER\", frequency=\"d\")\n```\n\nLoad data directly into Polars DataFrames, explore metadata, download to disk, and convert to Parquet — all from Python. See the [full Python API documentation](docs/python-api.md).\n\n---\n\n## CLI\n\n```bash\nfoehn download smn pollen\nfoehn load smn --station BER --frequency d\n```\n\nThe CLI mirrors the Python API with subcommands for downloading, converting, loading, and inspecting metadata. See the [full CLI documentation](docs/cli.md).\n\n---\n\n## MCP server\n\n```json\n{\n  \"mcpServers\": {\n    \"foehn\": {\n      \"command\": \"foehn\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\nGive any MCP-compatible LLM live access to MeteoSwiss data. See the [full MCP server documentation](docs/mcp-server.md).\n\n---\n\n## Documentation\n\n| | |\n|---|---|\n| [Collections](docs/collections.md) | All 20+ MeteoSwiss datasets, categories, and time slice conventions |\n| [Python API](docs/python-api.md) | Loading data, metadata, downloading, and Parquet conversion |\n| [CLI](docs/cli.md) | All subcommands, flags, and environment variables |\n| [MCP Server](docs/mcp-server.md) | Setup, configuration, and available tools |\n| [Databricks Pipeline](docs/databricks.md) | Declarative Automation Bundle deployment |\n\n---\n\n## Data sources\n\n| | |\n|---|---|\n| STAC API | https://data.geo.admin.ch/api/stac/v1 |\n| Documentation | https://opendatadocs.meteoswiss.ch |\n| MeteoSwiss OGD | https://github.com/MeteoSwiss/opendata |\n\n---\n\n## License\n\nMIT\n\n\u003c!-- mcp-name: io.github.kayhendriksen/foehn --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayhendriksen%2Ffoehn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayhendriksen%2Ffoehn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayhendriksen%2Ffoehn/lists"}