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.

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

Scan a dataset for machine‑readable opt‑out signals. Performs lightweight requests to public robots/ai.txt endpoints; no API key required.

lace check tdm /path/to/dataset          # human‑readable summary
lace check tdm /path/to/dataset --json   # machine‑readable

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.5.tar.gz (203.2 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.5-py3-none-any.whl (228.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lace_client-0.7.5.tar.gz
  • Upload date:
  • Size: 203.2 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.5.tar.gz
Algorithm Hash digest
SHA256 d4116e5c1c6125ba6b91724a38d5a6f14dbdc473fe7f1e58a9400ce554667990
MD5 4f3ccd14b4c906ccea6ddcb112781637
BLAKE2b-256 64e4926e943c91cc4e46a200df31e2647e66bfcc5d516f4914d89efdadcc67f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lace_client-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 228.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ca04eb858518fadb5ba5d5bb78b5bd9e5adf49ce4975613dea1c9d9e7de8d2cc
MD5 21fd0841088742f00904885039c8bbe3
BLAKE2b-256 4c413c00460e0bd54dfb80ac756609812ff7b6295437327024f974b28ac06ca3

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