Metadata-Version: 2.5
Name: o41-metrics-duckdb
Version: 0.1.0
Summary: DuckDB extension that attaches 041 Metrics as a database
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: duckdb==1.5.5
Description-Content-Type: text/markdown

# o41-metrics-duckdb

DuckDB extension that attaches [041 Metrics](https://metrics.041.io/)
as a database, bundled per platform with a `load()` helper.

```python
import duckdb
import o41_metrics_duckdb

con = duckdb.connect(config={"allow_unsigned_extensions": "true"})
o41_metrics_duckdb.load(con)
con.execute("CREATE SECRET o41 (TYPE o41_metrics, API_KEY 'ak_...')")
con.execute(
    "ATTACH 'metrics.041.io' AS m (TYPE o41_metrics, CACHE_DIR '~/.o41-metrics/duckdb-cache')"
)
print(con.sql("SELECT slug, status FROM m.experiments LIMIT 5"))
```

The wheel pins the exact DuckDB release the extension was built for. The
extension is not signed by DuckDB, so the connection has to allow unsigned
extensions before `load()`.

The SQL surface, selector rules, and cache behaviour are documented at
https://metrics.041.io/docs.
