Skip to main content

Lace SDS generator (EU AI Act Article 53 public summary) — online-only CLI

Project description

CI

Lace Client (SDS Generator)

Cloud‑backed CLI to generate the EU AI Act Article 53(1)(d) public training summary (DOCX).

Install

pip install lace-client

Quickstart

export LACE_API_KEY=lace_sk_...
lace pack /path/to/dataset --out sds.docx

Optional answers

# Provide non‑inferable fields via JSON (otherwise you will be prompted)
lace pack /path/to/dataset \
  --answers-file /path/to/answers.json \
  --out sds.docx

Notes:

  • Online-only: lace pack calls the Lace API to produce the DOCX.
  • If --answers-file is omitted, the CLI prompts for: provider name/contact, model name/version, EU placement date, and illegal‑content measures. All other fields are derived automatically.

Privacy posture

  • No raw file content uploaded; uploads use pre‑signed URLs when needed.
  • Analyze payload excludes absolute file paths (only relpath + hash + size + mtime).

TDM Opt‑Out Check (robots.txt, TDM‑Reservation, X‑Robots‑Tag)

Cloud‑backed check with audit evidence (auth required).

export LACE_API_KEY=lace_sk_...
lace check /path/to/dataset                 # human‑readable summary (default)
lace check /path/to/dataset --json          # machine‑readable
lace check /path/to/dataset --as-of 2024-11-12 --out evidence.zip  # save evidence

Notes:

  • Signals: TDM‑Reservation headers/meta (deny training), robots.txt per RFC 9309 (named AI bots and generic), X‑Robots‑Tag (best‑effort). As‑of uses Memento/Wayback when available.
  • Privacy: domains are transmitted over TLS; the service persists only salted HMACs at rest and redacts logs.

Demo (PyPI)

Try with a synthetic 10 MB dataset and a realistic answers file:

# 1) Install the client from PyPI
pip install --no-cache-dir 'lace-client==0.7.4'

# 2) Create a synthetic dataset (~10 MB, offline)
python scripts/make_sample_dataset.py --out ~/lace-sample-10mb --mb 10

# 3) Use the demo answers file
cp examples/answers_demo.json ~/answers_demo.json

# 4) Generate the SDS (requires API key)
export LACE_API_KEY=<your_key>
lace pack ~/lace-sample-10mb \
  --send-domains hashed \
  --answers-file ~/answers_demo.json \
  --out ~/sds.docx

Why include answers: provider identity, contact, model name/version, EU placement date, and illegal‑content measures cannot be inferred from raw data. Other fields are derived from the dataset automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lace_client-0.7.6.tar.gz (204.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lace_client-0.7.6-py3-none-any.whl (229.4 kB view details)

Uploaded Python 3

File details

Details for the file lace_client-0.7.6.tar.gz.

File metadata

  • Download URL: lace_client-0.7.6.tar.gz
  • Upload date:
  • Size: 204.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for lace_client-0.7.6.tar.gz
Algorithm Hash digest
SHA256 ff2d9ddc0d7c4511ff28fa010de8c733e6eca37ef3a7eada08ff8c77569053d0
MD5 b04adec03aaadc050243650f684a3c29
BLAKE2b-256 c3f22b30e087617ad5984ff4aa96431a1c94e22ad55ba32641ef86d484c5abdd

See more details on using hashes here.

File details

Details for the file lace_client-0.7.6-py3-none-any.whl.

File metadata

  • Download URL: lace_client-0.7.6-py3-none-any.whl
  • Upload date:
  • Size: 229.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for lace_client-0.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6ef4b0a0fdaaa6195583b71ba020114bd586fe8c68fc7720e1994af421afb7b1
MD5 9ac85e41e0a3585fa5ab4fc885958693
BLAKE2b-256 a33a9eed5aedf4b293e6c0cf8aa1a06cf20c04c7d7c42fbb17adf5dc43e48449

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page