o41-metrics-duckdb
DuckDB extension that attaches 041 Metrics as a
database, bundled per platform with a load() helper.
Install with uv add o41-metrics-duckdb. Upgrade with
uv add -U o41-metrics-duckdb or pip install -U o41-metrics-duckdb, then
restart Python. SQL INSTALL and FORCE INSTALL do not replace the binary
bundled in this wheel. Release builds warn on stderr at the first ATTACH when a
newer version is available. Set O41_METRICS_DISABLE_UPDATE_CHECK=1 to disable
the check.
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)"
)
print(con.sql("SELECT folder_id, path FROM m.folders ORDER BY path"))
print(con.sql("SELECT slug, status FROM m.experiments WHERE folder_id = '019e...'"))
Give experiments a selector on id, slug or folder_id: without one, a
filter on status, a sort or slug LIKE '%...%' reads the record of every
experiment in the organization.
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().
Persistent caching defaults to ~/.o41-metrics/duckdb-cache. Set CACHE_DIR in
ATTACH to use another directory, or CACHE false to disable disk caching.
The SQL surface, selector rules, and cache behaviour are documented at https://metrics.041.io/docs.
Metadata
Release files for o41-metrics-duckdb 0.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_x86_64.whl |
| o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_aarch64.whl |
| o41_metrics_duckdb-0.5.5-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for o41_metrics_duckdb-0.5.5-py3-none-macosx_11_0_arm64.whl |
Total release size: 48.6 MB
Release files / o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_x86_64.whl
| Download URL | o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 18.7 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
25f6ce669fa34cb155b43c96469273247b3095842912c0477c89db246fe23661
|
|
BLAKE2b-256 checksum How to use checksums |
07a3b87a36741ef23209585a98a5274e0489863e803bfa5ac14815be7ff54e08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_aarch64.whl
| Download URL | o41_metrics_duckdb-0.5.5-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 16.2 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d42c7fa93aeb99f7e8cfe112aa6acd66d9a7a520d4f483ce68ad74af909908bc
|
|
BLAKE2b-256 checksum How to use checksums |
0e8bc54df06a2ab8d9ab22c36917546f4e4d81a92d4d79852bc9b62f01db9faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / o41_metrics_duckdb-0.5.5-py3-none-macosx_11_0_arm64.whl
| Download URL | o41_metrics_duckdb-0.5.5-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e918beaa699b57c498f4c637b12afc6c266f6e687ee3cde927e4212b340b4738
|
|
BLAKE2b-256 checksum How to use checksums |
977b426d31ddb9d61169d8f6389beb5d02f5488e184b123270b2c41aef564f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for o41-metrics-duckdb 0.5.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.