PYPI PACKAGE AUDIT v2.0.1 Verbesserungsbedarf

steve-cli

Ein einfaches CLI-Tool zum Ausführen von Jobs aus jobs.yaml mit der richtigen Umgebungseinrichtung

PyPkgScore steve-cli
Methodik & Kriterien ♥ Donate
640 / 1000
Schnellinstallation
pip install steve-cli
1. Governance
50/200
2. PEP-Metadaten
200/200
3. Sicherheit
150/200
4. Doku & SEO
105/200
5. CI-Engineering
135/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
238
Letzte 30 Tage
615
Gesamt (180 Tage)
5156
Metrik / Ökosystem Status / Wert Quelle
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 640 / 1000 PyPkgScore Engine

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

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

Offizielle Dokumentation & Nutzungsleitfaden — steve-cli

PyPI Metadata v2.0.1
Vollständige Originaldokumentation anzeigen (Englisches README) ▾

Steve CLI

A CLI tool for the data platform. Commands are organized by concern: general workspace automation, data lakehouse operations, semantic knowledge graphs, and governance.

Upgrading from 0.x? See CHANGELOG.md — v1.0.0 introduces branch-isolated storage with breaking path changes that require a one-time data migration.

Installation

# Add to your workspace
uv add steve-cli

# Or pin to a local editable copy (in your workspace pyproject.toml)
[tool.uv.sources]
steve-cli = { path = "../../packages/steve-cli", editable = true }

Upgrade to the latest version:

steve upgrade

Platform

General-purpose commands for running jobs, managing local development processes, and working with the core infrastructure (object storage, secrets).

steve jobs — run automation jobs

Runs tasks defined in jobs.yaml. Each job declares a command and optional env vars. Designed for data pipeline steps, seeding, bootstrapping, etc.

steve jobs              # interactive picker
steve jobs ls           # list all jobs with commands and env vars
steve jobs run <name>   # run a job by name
steve jobs run <name> -f path/to/jobs.yaml

jobs.yaml example:

jobs:
  - name: seed-data
    command: ["uv", "run", "src/02_seed_data.py"]
    env:
      BATCH_SIZE: "500"

steve apps — manage long-running apps

Starts, stops, and monitors local apps defined in apps.yaml. Apps are registered with the auth-proxy so they get a public URL inside the platform.

steve apps              # interactive picker
steve apps ls           # list apps with status and URLs
steve apps status       # show running/stopped status for all apps
steve apps start <name>
steve apps stop <name>
steve apps restart <name>
steve apps logs <name> [-n 100]

steve setup env — decrypt secrets

Decrypts SOPS-encrypted *.enc.env files in the current directory and writes plaintext .env files.

steve setup env

steve buckets — browse S3 storage

Interactive browser for S3/MinIO buckets. Detects available buckets from env vars (BRONZE_ACCESS_KEY, SILVER_ACCESS_KEY, GOLD_ACCESS_KEY, or {WORKSPACE}_ACCESS_KEY) and shows their contents as a file tree. Files can be opened in visidata.

steve buckets

Data Lakehouse

Commands for working with the lakehouse layer: Iceberg tables accessed via Trino.

steve tables — browse Iceberg tables via Trino

Interactive browser for Iceberg tables. Lists schemas and tables available via Trino, and opens them in visidata for inspection.

steve tables

Requires TRINO_ENDPOINT to be set. Install visidata for table preview:

uv pip install 'steve-cli[visidata]'

Semantics & Knowledge Graphs

Commands for authoring and operating Virtual Knowledge Graphs (VKGs) — semantic layers that expose relational Iceberg data as RDF/SPARQL via Ontop.

There are two sides:

  • ontology — the author/publish side: define concepts, register them in the Data Product Registry, compile VKG artifacts
  • vkg — the runtime/ops side: manage named Ontop instances on the VKG control plane, run SPARQL queries

steve ontology — author and publish ontologies

steve ontology ls                          # list registered packages in the registry
steve ontology ls --show-bindings          # include binding packages
steve ontology register <file.yaml>        # register a concept or binding YAML
steve ontology add <uri>                   # add a dependency URI to ontology.yaml
steve ontology build                       # resolve deps + compile → write vkg/ folder locally
steve ontology compile --root <uri> --binding <uri>   # compile and print artifact info
steve ontology push                        # compile + upload to VKG control plane (default slot)
steve ontology push --name <slot>          # push to a named VKG slot
steve ontology push -f ontology-consumer.yaml  # use a different manifest file
steve ontology push --frozen               # fail if lock file is absent or stale (like npm ci)

Manifest format (ontology.yaml):

# Option A: workspace that owns ontology files
packages:
  - path: ontologies/order_core.yaml
bindings:
  - path: ontologies/binding_order_iceberg.yaml
compile:
  root: dp://o/acme/concepts/order/core
  binding: dp://o/acme/bindings/order/iceberg

# Option B: consumer workspace (resolves deps from registry, no local files)
dependencies:
  - dp://o/acme/concepts/party/core
  - dp://o/acme/concepts/order/core
compile:
  root: dp://o/acme/concepts/order/core
  binding: dp://o/acme/bindings/order/iceberg

After push, a lock file (ontology.lock.yaml) is written with resolved package versions and Iceberg snapshot IDs for audit and future time-travel SQL rewriting.

steve vkg — operate VKG instances

steve vkg ls                              # list all slots: status, concept counts, SPARQL URL
steve vkg status <name>                   # detailed status for one slot
steve vkg start <name>                    # start a stopped slot
steve vkg stop <name>                     # stop a running slot (persists desired=stopped)
steve vkg sparql <name> "<SPARQL query>"  # run a SPARQL query and print results as a table
steve vkg sparql <name> "<query>" --format json
steve vkg logs <name> [-n 50]            # tail the Ontop process log for a slot

Desired state is persisted per slot — slots with desired=running are automatically restored after a pod restart.


Governance

steve policies apply — apply access policies

Applies role-based access policies from a YAML file to the Policy Control Plane.

steve policies apply                      # apply from ./policies/access.yaml
steve policies apply -f custom/path.yaml

Environment variables

Variable Used by Description
REGISTRY_URL ontology Data Product Registry URL (default: http://localhost:8765)
REGISTRY_TOKEN ontology Pre-issued JWT for the registry
REGISTRY_JWT_SECRET ontology Secret to mint a JWT (if no token)
REGISTRY_ORG ontology Org claim for minted JWT
VKG_CONTROL_PLANE_URL ontology push, vkg Control plane URL (default: http://localhost:18081)
TRINO_ENDPOINT ontology push, tables Trino HTTP URL for snapshot capture and table browsing

File Metadata Extraction

Steve automatically extracts metadata from files read or written via MetadataRegistry. The extractor is chosen by file extension.

Extension Extractor Requires
.parquet, .pq ParquetExtractor pip install steve-cli[polars]
.csv, .tsv, .txt CsvExtractor stdlib only
.json, .jsonl, .ndjson JsonExtractor stdlib only
.xlsx, .xls, .xlsm ExcelExtractor pip install steve-cli[excel]
anything else GenericExtractor stdlib only

Custom extractors can be registered at startup:

from steve_cli.storage.metadata.port import MetadataExtractorPort, FileMetadata, ColumnMetadata
from steve_cli.storage.metadata.registry import MetadataRegistry

class AvroExtractor(MetadataExtractorPort):
    extensions = (".avro",)

    def extract(self, data: bytes, path: str) -> FileMetadata:
        import fastavro, io
        reader = fastavro.reader(io.BytesIO(data))
        schema = reader.writer_schema
        columns = [ColumnMetadata(name=f["name"], type=str(f["type"])) for f in schema.get("fields", [])]
        return FileMetadata(format="avro", size_bytes=len(data), rows=len(list(reader)), columns=columns)

MetadataRegistry.register("avro", AvroExtractor)