PYPI PACKAGE AUDIT v0.39.2 Enterprise-konform

fdl-cli

Versionen eines DuckLake-Katalogs zur Objektspeicherung, beibehalten in der Art und Weise, wie Git Commits verwaltet

PyPkgScore fdl-cli
Methodik & Kriterien ♥ Donate
855 / 1000
Schnellinstallation
pip install fdl-cli
1. Governance
150/200
2. PEP-Metadaten
150/200
3. Sicherheit
200/200
4. Doku & SEO
155/200
5. CI-Engineering
200/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
2437
Letzte 30 Tage
8202
Gesamt (180 Tage)
8202
Metrik / Ökosystem Status / Wert Quelle
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 855 / 1000 PyPkgScore Engine

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community150 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✕ 0 pts
3. Sicherheit & Lieferkette200 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✓ 50 pts
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✓ 45 pts
5. Engineering, CI & Qualität200 / 200 ▾
Automatisierte Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✓ 35 pts
Advertisement
README & DOCS

Offizielle Dokumentation & Nutzungsleitfaden — fdl-cli

PyPI Metadata v0.39.2
Vollständige Originaldokumentation anzeigen (Englisches README) ▾

fdl

PyPI Python 3.10+ License: MIT

Versions of DuckLake metadata on object storage, kept the way Git keeps commits.

FDL is a storage layout and a tool for it. Each version is a frozen metadata file with a record of its parent, author and message; refs such as refs/heads/main say which version readers get. Data files are shared between versions and never rewritten. All it needs is a store that can read, write and write on condition: a folder, S3, R2 or anything S3-compatible. There is no server.

<root>/
  fdl.json
  HEAD                              ref: refs/heads/main
  refs/heads/main                   019a3c4e-…
  versions/019a3c4e-…/
    version.json                    parents, author, message, sha256
    metadata.db                     the frozen metadata
  tables/main/towns/ducklake-….parquet

The documentation and the specification are at fdl.queria.io.

Quick start

pip install 'fdl-cli[s3]'

fdl init s3://my-bucket/towns/
fdl clone s3://my-bucket/towns/ work/lake.sqlite

The package is fdl-cli on PyPI. It installs the fdl command and the fdl Python package (import fdl).

fdl init makes the dataset in the store itself, as git init --bare does on a server. Your own copy to write to is the working metadata that clone makes, a SQLite file.

Write to the working metadata with DuckDB, attached the way clone prints:

ATTACH 'ducklake:work/lake.sqlite' AS lake (
  DATA_PATH 's3://my-bucket/towns/tables/', OVERRIDE_DATA_PATH true,
  META_TYPE 'sqlite', DATA_INLINING_ROW_LIMIT 0, META_JOURNAL_MODE 'WAL', BUSY_TIMEOUT 5000
);
CREATE TABLE lake.main.towns AS SELECT * FROM 'towns.csv';

Rows have to go to Parquet, not into the metadata (DATA_INLINING_ROW_LIMIT 0): a version is read over HTTP, and inlined rows would not be in it.

Declare which columns identify a row, so that a merge can match rows by them:

fdl declare primary-key work/lake.sqlite main.towns town_code

Then make a version and move main to it:

fdl commit work/lake.sqlite -m "First towns" --author alice
fdl push work/lake.sqlite
fdl log s3://my-bucket/towns/

Anyone who can read the bucket can attach it:

fdl url s3://my-bucket/towns/
ATTACH 'ducklake:s3://my-bucket/towns/versions/019a3c4e-…/metadata.db' AS towns (
  DATA_PATH 's3://my-bucket/towns/tables/', OVERRIDE_DATA_PATH true, READ_ONLY
);

Credentials and the endpoint come from boto3's usual places (AWS_* environment variables, AWS_ENDPOINT_URL for R2 and other S3-compatible stores). A folder works as a dataset too: pass its path instead of an s3:// URL.

Commands

Command What it does
fdl init <remote> Start a dataset (fdl.json and HEAD)
fdl clone <remote> <working> Make a working metadata file from the version main holds
fdl declare <kind> <working> … Declare a primary key, asset columns, a profile or another dataset the views read
fdl commit <working> -m … --author … Freeze the working metadata into a version
fdl push <working> Upload the committed version and move main to it
fdl log <remote> List versions from main back to the first
fdl status <working> What the working metadata changed since the clone
fdl diff <remote> [version] What a version changed since its parent: tables, rows, columns, data files, declarations
fdl show <remote> [version] A version's record, its tables and its changes
fdl url <remote> [--attach] Print the metadata URL of the version main holds, or the whole ATTACH statement
fdl tag <remote> [name] [version] List tags, tag a version, or delete a tag (-d)
fdl branch <remote> [name] [version] List branches, start a branch at a version, or delete a branch (-d)
fdl merge <ref> <working> --author … Merge another branch into the working metadata's branch, cells matched by primary key
fdl expire <remote> --keep N Mark older versions as past retention and delete their metadata files
fdl gc <remote> --yes Delete data files no live version reaches, after the grace period
fdl withdraw <remote> <version>… Remove versions that hold data that must not be published
fdl assets <folder> List files for an asset column (path, sha256, bytes, media type)

A push that is not built on what main holds now is refused: clone again and redo the work, or work on a branch and merge it.

Python

from fdl import repo
from fdl.stores import open_store

store = open_store("s3://my-bucket/towns/")
for version in repo.log(store):
    print(version.seq, version.id, version.message)

fdl.repo has the operations without a terminal (init, clone, commit, push, log, expire, prune), for tools and services that build on FDL.

Earlier releases

Releases up to 0.11 were a different tool for managing a single frozen metadata file, published as frozen-ducklake. Their code is at the legacy branch.

License

MIT