welt-client 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- welt_client-0.7.0/.github/workflows/check.yml +29 -0
- welt_client-0.7.0/.github/workflows/sdk-docs.yml +85 -0
- welt_client-0.7.0/.gitignore +10 -0
- welt_client-0.7.0/CHANGELOG.md +31 -0
- welt_client-0.7.0/CONTRIBUTING.md +22 -0
- welt_client-0.7.0/LICENSE +202 -0
- welt_client-0.7.0/PKG-INFO +102 -0
- welt_client-0.7.0/README.md +87 -0
- welt_client-0.7.0/docs/assets/brand-provenance.json +20 -0
- welt_client-0.7.0/docs/assets/docs.css +18 -0
- welt_client-0.7.0/docs/assets/docs.js +35 -0
- welt_client-0.7.0/docs/assets/ergodic-mark-dark.svg +273 -0
- welt_client-0.7.0/docs/assets/ergodic-mark-light.svg +263 -0
- welt_client-0.7.0/docs/async-and-errors.md +105 -0
- welt_client-0.7.0/docs/capabilities.md +33 -0
- welt_client-0.7.0/docs/causal-discovery.md +102 -0
- welt_client-0.7.0/docs/migration.md +55 -0
- welt_client-0.7.0/docs/model-selection.md +44 -0
- welt_client-0.7.0/docs/notebooks.md +67 -0
- welt_client-0.7.0/docs/onboarding.md +66 -0
- welt_client-0.7.0/docs/own-data.md +62 -0
- welt_client-0.7.0/docs/regression.md +34 -0
- welt_client-0.7.0/docs/research-datasets.md +98 -0
- welt_client-0.7.0/docs/reuse.md +60 -0
- welt_client-0.7.0/docs/start.md +129 -0
- welt_client-0.7.0/docs/usage.md +58 -0
- welt_client-0.7.0/examples/first_prediction.py +58 -0
- welt_client-0.7.0/examples/first_request.py +79 -0
- welt_client-0.7.0/examples/notebooks/README.md +56 -0
- welt_client-0.7.0/examples/notebooks/artifacts-and-usage.ipynb +64 -0
- welt_client-0.7.0/examples/notebooks/async-jobs.ipynb +44 -0
- welt_client-0.7.0/examples/notebooks/causal-discovery.ipynb +125 -0
- welt_client-0.7.0/examples/notebooks/classification.ipynb +98 -0
- welt_client-0.7.0/examples/notebooks/regression.ipynb +98 -0
- welt_client-0.7.0/examples/notebooks/research-datasets.ipynb +68 -0
- welt_client-0.7.0/examples/notebooks/support.py +250 -0
- welt_client-0.7.0/pyproject.toml +22 -0
- welt_client-0.7.0/scripts/__init__.py +1 -0
- welt_client-0.7.0/scripts/build_docs.py +190 -0
- welt_client-0.7.0/scripts/build_historical_docs.py +36 -0
- welt_client-0.7.0/scripts/check_notebooks.py +50 -0
- welt_client-0.7.0/scripts/test_learning_materials.py +164 -0
- welt_client-0.7.0/src/welt/__init__.py +37 -0
- welt_client-0.7.0/src/welt/causal.py +353 -0
- welt_client-0.7.0/src/welt/client.py +589 -0
- welt_client-0.7.0/src/welt/credentials.py +38 -0
- welt_client-0.7.0/src/welt/errors.py +100 -0
- welt_client-0.7.0/src/welt/estimators.py +248 -0
- welt_client-0.7.0/src/welt/research.py +102 -0
- welt_client-0.7.0/tests/test_async.py +158 -0
- welt_client-0.7.0/tests/test_causal.py +427 -0
- welt_client-0.7.0/tests/test_client.py +109 -0
- welt_client-0.7.0/tests/test_dx.py +298 -0
- welt_client-0.7.0/tests/test_estimator_security.py +49 -0
- welt_client-0.7.0/tests/test_first_request.py +49 -0
- welt_client-0.7.0/tests/test_pipeline_cv.py +126 -0
- welt_client-0.7.0/tests/test_research.py +192 -0
- welt_client-0.7.0/tests/test_sklearn_checks.py +27 -0
- welt_client-0.7.0/uv.lock +1147 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: SDK checks
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
jobs:
|
|
6
|
+
check:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
include:
|
|
11
|
+
- python: '3.11'
|
|
12
|
+
sklearn: '1.6.1'
|
|
13
|
+
- python: '3.12'
|
|
14
|
+
sklearn: '1.9.1'
|
|
15
|
+
- python: '3.13'
|
|
16
|
+
sklearn: '1.9.1'
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python }}
|
|
22
|
+
- run: python -m pip install uv==0.5.16
|
|
23
|
+
- run: uv sync --frozen
|
|
24
|
+
- run: uv pip install --python .venv/bin/python 'scikit-learn==${{ matrix.sklearn }}'
|
|
25
|
+
- run: .venv/bin/python -m pytest -q
|
|
26
|
+
- run: uv build
|
|
27
|
+
- run: uv pip install --python .venv/bin/python --reinstall --no-deps dist/*.whl
|
|
28
|
+
- run: .venv/bin/python scripts/check_notebooks.py
|
|
29
|
+
- run: .venv/bin/python scripts/build_docs.py
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
name: SDK documentation
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
inputs:
|
|
7
|
+
release_tag:
|
|
8
|
+
description: Published SDK release to document
|
|
9
|
+
required: true
|
|
10
|
+
default: v0.7.0
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
concurrency:
|
|
14
|
+
group: sdk-pages
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
ref: refs/tags/${{ github.event.release.tag_name || inputs.release_tag }}
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.12'
|
|
26
|
+
- run: python -m pip install uv==0.5.16
|
|
27
|
+
- run: uv sync --frozen
|
|
28
|
+
- name: Verify matching published release assets
|
|
29
|
+
env:
|
|
30
|
+
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
|
|
31
|
+
run: |
|
|
32
|
+
python - <<'PYCODE'
|
|
33
|
+
import json, os, tomllib, urllib.request
|
|
34
|
+
version = tomllib.load(open('pyproject.toml', 'rb'))['project']['version']
|
|
35
|
+
tag = os.environ['RELEASE_TAG']
|
|
36
|
+
if tag != 'v' + version:
|
|
37
|
+
raise SystemExit('Documentation must check out its matching release tag.')
|
|
38
|
+
request = urllib.request.Request(
|
|
39
|
+
'https://api.github.com/repos/ergodic-ai/welt-python/releases/tags/' + tag,
|
|
40
|
+
headers={'Accept': 'application/vnd.github+json', 'User-Agent': 'Welt-SDK-docs'})
|
|
41
|
+
with urllib.request.urlopen(request, timeout=30) as response:
|
|
42
|
+
release = json.load(response)
|
|
43
|
+
assets = {asset['name'] for asset in release['assets']}
|
|
44
|
+
required = {'welt_client-' + version + '-py3-none-any.whl', 'welt_client-' + version + '.tar.gz'}
|
|
45
|
+
if release['draft'] or release['tag_name'] != tag or not required <= assets:
|
|
46
|
+
raise SystemExit('Publish matching reviewed wheel and sdist before documentation.')
|
|
47
|
+
with open(os.environ['GITHUB_ENV'], 'a') as env:
|
|
48
|
+
env.write('SDK_VERSION=' + version + '\n')
|
|
49
|
+
PYCODE
|
|
50
|
+
- name: Install the published matching wheel
|
|
51
|
+
env:
|
|
52
|
+
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
|
|
53
|
+
run: uv pip install --python .venv/bin/python --reinstall --no-deps "https://github.com/ergodic-ai/welt-python/releases/download/$RELEASE_TAG/welt_client-$SDK_VERSION-py3-none-any.whl"
|
|
54
|
+
- run: .venv/bin/python scripts/check_notebooks.py
|
|
55
|
+
# Preserve v0.6 URLs and corrected research archive/licence notices.
|
|
56
|
+
# This is an isolated checkout/environment: historical docs cannot inherit 0.7 APIs.
|
|
57
|
+
- uses: actions/checkout@v4
|
|
58
|
+
with:
|
|
59
|
+
ref: 1cea7d9998bf433bd4404add75ed9e2e35b2de87
|
|
60
|
+
path: .legacy-sdk
|
|
61
|
+
- run: uv sync --frozen
|
|
62
|
+
working-directory: .legacy-sdk
|
|
63
|
+
- run: uv build
|
|
64
|
+
working-directory: .legacy-sdk
|
|
65
|
+
- run: uv pip install --python .venv/bin/python --reinstall --no-deps dist/*.whl
|
|
66
|
+
working-directory: .legacy-sdk
|
|
67
|
+
- run: .venv/bin/python scripts/build_historical_docs.py --source .legacy-sdk --output site
|
|
68
|
+
- run: .venv/bin/python scripts/build_docs.py
|
|
69
|
+
- run: test -f site/v0.6.0/index.html && test -f site/v0.6.0/research-datasets.html && test -f site/v0.7.0/index.html
|
|
70
|
+
- uses: actions/configure-pages@v5
|
|
71
|
+
- uses: actions/upload-pages-artifact@v3
|
|
72
|
+
with:
|
|
73
|
+
path: site
|
|
74
|
+
publish:
|
|
75
|
+
needs: build
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
permissions:
|
|
78
|
+
pages: write
|
|
79
|
+
id-token: write
|
|
80
|
+
environment:
|
|
81
|
+
name: github-pages
|
|
82
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
83
|
+
steps:
|
|
84
|
+
- uses: actions/deploy-pages@v4
|
|
85
|
+
id: deployment
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
- `Client`, `AsyncClient`, `Classifier` and `Regressor` now default to
|
|
6
|
+
`https://welt.ergodic.dev`. An explicit `base_url` takes precedence over
|
|
7
|
+
`WELT_BASE_URL`, which takes precedence over the hosted default. Local service
|
|
8
|
+
users must pass `base_url="http://localhost:8080"` or set `WELT_BASE_URL` explicitly.
|
|
9
|
+
- Authenticated operations reject missing workspace keys before sending a request.
|
|
10
|
+
Public model and research catalogue reads remain keyless. Authentication and
|
|
11
|
+
permission errors explain workspace-key setup; current keys are redacted from
|
|
12
|
+
server error messages and diagnostic attributes.
|
|
13
|
+
- `Classifier` and `Regressor` accept `fit(df, target="column")` and
|
|
14
|
+
`submit_fit(df, target="column")`. Exactly one of `y` or `target` is required;
|
|
15
|
+
targets require a direct pandas DataFrame with unique, nonempty string columns.
|
|
16
|
+
The declared target is removed from features and transmitted as labels using the
|
|
17
|
+
existing dataset contract. Separate `fit(X, y)`, array inputs, sklearn cloning,
|
|
18
|
+
Pipeline/CV, immutable predictor versions and explicit task selection remain.
|
|
19
|
+
- Named prediction-schema mismatches report bounded missing/extra column names.
|
|
20
|
+
Errors display only bounded opaque request/job identifiers.
|
|
21
|
+
- `Job.result(timeout=...)` and `AsyncJob.result(timeout=...)` account for polling,
|
|
22
|
+
read retries and the final result read. Zero timeout sends no read. HTTP timeout
|
|
23
|
+
phases are capped at the remaining local wait budget. Async requests have a
|
|
24
|
+
cancellable total-await bound; synchronous transports cannot be forcibly
|
|
25
|
+
interrupted, and separate HTTP phases can exceed a strict wall-clock bound.
|
|
26
|
+
Elapsed time is checked after each read. This wait starts after submission and
|
|
27
|
+
does not bound uploads or submission. Timeout preserves the durable job and
|
|
28
|
+
supplies reconnect guidance using the same origin and current credentials.
|
|
29
|
+
|
|
30
|
+
No new large-file, resumable-upload or Parquet batch API is included in this release.
|
|
31
|
+
Existing in-memory CSV/Parquet estimator input behavior is retained.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
SDK edits belong in this repository. The private service integration pins an
|
|
4
|
+
immutable SDK commit/artifact and runs additional real API and account/tenant tests.
|
|
5
|
+
Update the public controlled-transport tests and guide for behavior changes. Public
|
|
6
|
+
CI must remain independent of private backend imports/resources.
|
|
7
|
+
|
|
8
|
+
Use Python 3.11–3.13. The dependency lock records the development resolution;
|
|
9
|
+
broader sklearn compatibility is an explicit qualification task, not a claim from
|
|
10
|
+
a single environment. Keep credentials, data rows from customers, saved prediction
|
|
11
|
+
outputs and fitted contexts out of Git. Examples use inputs supplied by the user
|
|
12
|
+
or generated synthetic fixtures; no automatic live tests.
|
|
13
|
+
|
|
14
|
+
Reviewers should check schema/row/class order, job timeout/retry semantics,
|
|
15
|
+
credential handling and safe errors. Explicit credentials are redacted in estimator/Pipeline representations,
|
|
16
|
+
and pickle strips them for environment-based reauthentication. Retain tests for
|
|
17
|
+
these guarantees and keep secrets out of examples regardless of SDK safeguards. Do not invent support for unavailable model capabilities.
|
|
18
|
+
|
|
19
|
+
Guides/notebooks evolve only with actual released contracts. Build a wheel, install
|
|
20
|
+
it into the locked development environment, execute scripts/check_notebooks.py,
|
|
21
|
+
and build scripts/build_docs.py. Never commit execution outputs. Versioned docs
|
|
22
|
+
publication uses the same public repository; no live CI credentials or FM execution.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: welt-client
|
|
3
|
+
Version: 0.7.0
|
|
4
|
+
Summary: Welt Python client and scikit-learn estimators
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: <3.14,>=3.11
|
|
8
|
+
Requires-Dist: httpx<1,>=0.28
|
|
9
|
+
Requires-Dist: numpy<3,>=2
|
|
10
|
+
Requires-Dist: pandas<4,>=2.2
|
|
11
|
+
Requires-Dist: scikit-learn<2,>=1.6
|
|
12
|
+
Provides-Extra: parquet
|
|
13
|
+
Requires-Dist: pyarrow<30,>=19; extra == 'parquet'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Welt Python SDK
|
|
17
|
+
|
|
18
|
+
From a DataFrame to a prediction. Use familiar `Classifier` and `Regressor`
|
|
19
|
+
estimators backed by durable predictors in your private Welt workspace.
|
|
20
|
+
Install `welt-client`, import `welt`. Python 3.11–3.13.
|
|
21
|
+
|
|
22
|
+
[Start here](https://ergodic-ai.github.io/welt-python/) ·
|
|
23
|
+
[Guides](https://ergodic-ai.github.io/welt-python/v0.7.0/own-data.html) ·
|
|
24
|
+
[Reference](https://ergodic-ai.github.io/welt-python/v0.7.0/reference.html) ·
|
|
25
|
+
[Models and limits](docs/capabilities.md)
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
python -m pip install 'welt-client @ https://github.com/ergodic-ai/welt-python/releases/download/v0.7.0/welt_client-0.7.0-py3-none-any.whl'
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Create a workspace API key at [Welt](https://welt.ergodic.dev) with **Allow writes,
|
|
34
|
+
fits and predictions** enabled. Configure `WELT_API_KEY` through local secret
|
|
35
|
+
configuration or a hidden `getpass` prompt. Keep the secret out of source, notebooks,
|
|
36
|
+
logs and shell history. SDK 0.7 defaults to `https://welt.ergodic.dev`; an explicit
|
|
37
|
+
`base_url` overrides `WELT_BASE_URL`, which overrides that default. Local development
|
|
38
|
+
must explicitly select localhost.
|
|
39
|
+
|
|
40
|
+
## Predict
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import numpy as np
|
|
44
|
+
import pandas as pd
|
|
45
|
+
from welt import Classifier
|
|
46
|
+
|
|
47
|
+
rng = np.random.default_rng(9)
|
|
48
|
+
values = rng.normal(size=(160, 4))
|
|
49
|
+
train = pd.DataFrame(values[:128], columns=["a", "b", "c", "d"])
|
|
50
|
+
train["label"] = np.where(values[:128, 0] + 0.5 * values[:128, 1] > 0,
|
|
51
|
+
"positive", "negative")
|
|
52
|
+
query = pd.DataFrame(values[128:], columns=["a", "b", "c", "d"])
|
|
53
|
+
model = Classifier(model="tabicl-v2", random_state=9)
|
|
54
|
+
model.fit(train, target="label")
|
|
55
|
+
predictions = model.predict(query)
|
|
56
|
+
print(predictions.shape) # (32,)
|
|
57
|
+
reopened = Classifier.from_predictor(model.predictor_id_)
|
|
58
|
+
repeat = reopened.predict(query)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
This synthetic recipe returns one label per query row, in order; actual labels
|
|
62
|
+
come from the hosted model. It is not an accuracy benchmark. Use `Regressor`
|
|
63
|
+
explicitly for numeric targets; the [complete regression example](docs/start.md)
|
|
64
|
+
returns one finite target-unit point per row. `fit` uploads the table and waits for
|
|
65
|
+
remote preparation; `predict` executes remotely. Created datasets/predictors remain
|
|
66
|
+
retained. Reopening uses the pinned identity without another fit or training upload.
|
|
67
|
+
|
|
68
|
+
SDK 0.7 adds explicit DataFrame target convenience and hosted credential guidance
|
|
69
|
+
while preserving `fit(X, y)`, sync/async resources, durable jobs, research downloads
|
|
70
|
+
and native causal objects. Available hosted tasks and workers follow the service
|
|
71
|
+
catalogue. Bounded TabICLv2, Kumo Medium, TabDPT1.3 and Mitra-v2 classification and
|
|
72
|
+
regression previews are separately qualified: 500 training rows, 20 features,
|
|
73
|
+
100 query rows, and 10 classes for classification. Other tasks need separate
|
|
74
|
+
qualification. File reads load into memory. Held resumable CSV and large batch
|
|
75
|
+
APIs are excluded.
|
|
76
|
+
|
|
77
|
+
A local wait timeout leaves server work running. Reconnect by its job ID rather
|
|
78
|
+
than fitting again; [recovery](docs/async-and-errors.md) describes typed failures,
|
|
79
|
+
authentication, cancellation and retry behavior. Probabilities are not calibrated
|
|
80
|
+
coverage. ArrowFM, CDFM and AVICI discovery preserve native graph and score semantics;
|
|
81
|
+
[causal conversion](docs/causal-discovery.md) is restricted to declared native DAGs
|
|
82
|
+
and the separately approved Ergodic co-release artifact. Public Ergodic distribution
|
|
83
|
+
and the complete all-model catalogue remain gated.
|
|
84
|
+
|
|
85
|
+
## Examples and development
|
|
86
|
+
|
|
87
|
+
[Runnable script](examples/first_prediction.py) · [Jupyter notebooks](docs/notebooks.md) ·
|
|
88
|
+
[Research datasets](docs/research-datasets.md) · [Contributing](CONTRIBUTING.md)
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
uv sync --frozen
|
|
92
|
+
uv run --frozen pytest -q
|
|
93
|
+
uv build
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Controlled synthetic transport tests neither contact the hosted service nor execute
|
|
97
|
+
foundation models. Notebook sources have cleared outputs; clean-wheel execution and
|
|
98
|
+
bounded authorized live acceptance are separate evidence. CI requires no private
|
|
99
|
+
backend, credentials or checkpoints.
|
|
100
|
+
|
|
101
|
+
Apache 2.0: see [LICENSE](LICENSE). Model weights and hosted service are separate
|
|
102
|
+
from this SDK licence.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Welt Python SDK
|
|
2
|
+
|
|
3
|
+
From a DataFrame to a prediction. Use familiar `Classifier` and `Regressor`
|
|
4
|
+
estimators backed by durable predictors in your private Welt workspace.
|
|
5
|
+
Install `welt-client`, import `welt`. Python 3.11–3.13.
|
|
6
|
+
|
|
7
|
+
[Start here](https://ergodic-ai.github.io/welt-python/) ·
|
|
8
|
+
[Guides](https://ergodic-ai.github.io/welt-python/v0.7.0/own-data.html) ·
|
|
9
|
+
[Reference](https://ergodic-ai.github.io/welt-python/v0.7.0/reference.html) ·
|
|
10
|
+
[Models and limits](docs/capabilities.md)
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
python -m pip install 'welt-client @ https://github.com/ergodic-ai/welt-python/releases/download/v0.7.0/welt_client-0.7.0-py3-none-any.whl'
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Create a workspace API key at [Welt](https://welt.ergodic.dev) with **Allow writes,
|
|
19
|
+
fits and predictions** enabled. Configure `WELT_API_KEY` through local secret
|
|
20
|
+
configuration or a hidden `getpass` prompt. Keep the secret out of source, notebooks,
|
|
21
|
+
logs and shell history. SDK 0.7 defaults to `https://welt.ergodic.dev`; an explicit
|
|
22
|
+
`base_url` overrides `WELT_BASE_URL`, which overrides that default. Local development
|
|
23
|
+
must explicitly select localhost.
|
|
24
|
+
|
|
25
|
+
## Predict
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
import numpy as np
|
|
29
|
+
import pandas as pd
|
|
30
|
+
from welt import Classifier
|
|
31
|
+
|
|
32
|
+
rng = np.random.default_rng(9)
|
|
33
|
+
values = rng.normal(size=(160, 4))
|
|
34
|
+
train = pd.DataFrame(values[:128], columns=["a", "b", "c", "d"])
|
|
35
|
+
train["label"] = np.where(values[:128, 0] + 0.5 * values[:128, 1] > 0,
|
|
36
|
+
"positive", "negative")
|
|
37
|
+
query = pd.DataFrame(values[128:], columns=["a", "b", "c", "d"])
|
|
38
|
+
model = Classifier(model="tabicl-v2", random_state=9)
|
|
39
|
+
model.fit(train, target="label")
|
|
40
|
+
predictions = model.predict(query)
|
|
41
|
+
print(predictions.shape) # (32,)
|
|
42
|
+
reopened = Classifier.from_predictor(model.predictor_id_)
|
|
43
|
+
repeat = reopened.predict(query)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This synthetic recipe returns one label per query row, in order; actual labels
|
|
47
|
+
come from the hosted model. It is not an accuracy benchmark. Use `Regressor`
|
|
48
|
+
explicitly for numeric targets; the [complete regression example](docs/start.md)
|
|
49
|
+
returns one finite target-unit point per row. `fit` uploads the table and waits for
|
|
50
|
+
remote preparation; `predict` executes remotely. Created datasets/predictors remain
|
|
51
|
+
retained. Reopening uses the pinned identity without another fit or training upload.
|
|
52
|
+
|
|
53
|
+
SDK 0.7 adds explicit DataFrame target convenience and hosted credential guidance
|
|
54
|
+
while preserving `fit(X, y)`, sync/async resources, durable jobs, research downloads
|
|
55
|
+
and native causal objects. Available hosted tasks and workers follow the service
|
|
56
|
+
catalogue. Bounded TabICLv2, Kumo Medium, TabDPT1.3 and Mitra-v2 classification and
|
|
57
|
+
regression previews are separately qualified: 500 training rows, 20 features,
|
|
58
|
+
100 query rows, and 10 classes for classification. Other tasks need separate
|
|
59
|
+
qualification. File reads load into memory. Held resumable CSV and large batch
|
|
60
|
+
APIs are excluded.
|
|
61
|
+
|
|
62
|
+
A local wait timeout leaves server work running. Reconnect by its job ID rather
|
|
63
|
+
than fitting again; [recovery](docs/async-and-errors.md) describes typed failures,
|
|
64
|
+
authentication, cancellation and retry behavior. Probabilities are not calibrated
|
|
65
|
+
coverage. ArrowFM, CDFM and AVICI discovery preserve native graph and score semantics;
|
|
66
|
+
[causal conversion](docs/causal-discovery.md) is restricted to declared native DAGs
|
|
67
|
+
and the separately approved Ergodic co-release artifact. Public Ergodic distribution
|
|
68
|
+
and the complete all-model catalogue remain gated.
|
|
69
|
+
|
|
70
|
+
## Examples and development
|
|
71
|
+
|
|
72
|
+
[Runnable script](examples/first_prediction.py) · [Jupyter notebooks](docs/notebooks.md) ·
|
|
73
|
+
[Research datasets](docs/research-datasets.md) · [Contributing](CONTRIBUTING.md)
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
uv sync --frozen
|
|
77
|
+
uv run --frozen pytest -q
|
|
78
|
+
uv build
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Controlled synthetic transport tests neither contact the hosted service nor execute
|
|
82
|
+
foundation models. Notebook sources have cleared outputs; clean-wheel execution and
|
|
83
|
+
bounded authorized live acceptance are separate evidence. CI requires no private
|
|
84
|
+
backend, credentials or checkpoints.
|
|
85
|
+
|
|
86
|
+
Apache 2.0: see [LICENSE](LICENSE). Model weights and hosted service are separate
|
|
87
|
+
from this SDK licence.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tracking": "API-068",
|
|
3
|
+
"scope": "Company mark in user-authorized public Welt SDK documentation; no third-party model licence assertion",
|
|
4
|
+
"assets": [
|
|
5
|
+
{
|
|
6
|
+
"file": "ergodic-mark-dark.svg",
|
|
7
|
+
"source": "Welt approved Signal/Workbench company asset: apps/web/src/assets/ergodic-mark-dark.svg",
|
|
8
|
+
"source_sha256": "50ad34c1bf3c029eac0479414886bc1b9605775ee5d11a1e23e5bbf9313e75eb",
|
|
9
|
+
"sha256": "7bf1b625839d8a19ba7321c22f204c82474bee646d23edb377775ff1b4ce5cc3",
|
|
10
|
+
"transformation": "Removed Adobe embedded editor metadata; visible SVG artwork unchanged."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"file": "ergodic-mark-light.svg",
|
|
14
|
+
"source": "Welt approved Signal/Workbench company asset: apps/web/src/assets/ergodic-mark-light.svg",
|
|
15
|
+
"source_sha256": "642be05439a731787e0099d09ba1092c8d87aef2689252fc46b5bae0db3cca82",
|
|
16
|
+
"sha256": "f3ba67cb066f484a89b167da5ca6c4d171014e958cb19e5a4b6018212d6036fe",
|
|
17
|
+
"transformation": "Removed Adobe embedded editor metadata; visible SVG artwork unchanged."
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* API-068: Signal/Workbench documentation. System fonts, no external requests. */
|
|
2
|
+
:root{color-scheme:dark;--bg:#101112;--panel:#17191a;--raised:#202324;--text:#f0f0e9;--muted:#a7aba5;--border:#343835;--accent:#c3d9be;--focus:#bbcaff;--code:#d9ddd6;--keyword:#b9bce5;--string:#c5d6a7;--paper:#e6e4db;--papertext:#252a26}
|
|
3
|
+
:root[data-theme=light]{color-scheme:light;--bg:#f6f5ef;--panel:#eeeee7;--raised:#e5e7de;--text:#232723;--muted:#60665e;--border:#ccd0c5;--accent:#395b37;--focus:#415fba;--code:#2b352c;--keyword:#6a3d9a;--string:#3c6327;--paper:#e8e7df;--papertext:#252a26}
|
|
4
|
+
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.75 Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:4px}button:focus:not(:focus-visible){outline:none}.skip{position:absolute;top:-100px;left:20px;background:var(--text);color:var(--bg);padding:10px;z-index:20}.skip:focus{top:12px}.header{height:91px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;border-bottom:1px solid var(--border);gap:20px;position:sticky;top:0;background:var(--bg);z-index:5}.brand{display:flex;align-items:center;text-decoration:none;gap:12px;white-space:nowrap}.brand img{width:30px;height:30px}.brand strong{font-size:27px;font-weight:500;letter-spacing:-1.4px}.brand span{color:var(--muted);font-size:12px;margin-left:5px}.logo-light{display:none}:root[data-theme=light] .logo-light{display:block}:root[data-theme=light] .logo-dark{display:none}.topnav{display:flex;gap:27px;align-items:center}.topnav a{text-decoration:none;font-size:12px;padding:6px 0}.topnav a[aria-current=page]{border-bottom:1px solid var(--text)}.tools{display:flex;align-items:center;gap:19px}.tools button,.menu-button{border:0;background:none;padding:5px;font-size:12px}.version{appearance:auto;border:0;background:var(--bg);font-size:11px;max-width:115px}.menu-button{display:none}.layout{max-width:1530px;margin:auto;display:grid;grid-template-columns:235px minmax(0,1fr) 190px;padding:0 4%;gap:44px}.sidebar{padding:44px 0;position:sticky;top:91px;height:calc(100vh - 91px);overflow-y:auto;font-size:12px}.sidebar p{color:var(--muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase;margin:26px 0 10px}.sidebar p:first-child{margin-top:0}.sidebar a{display:block;text-decoration:none;padding:7px 12px;margin-left:-12px;color:var(--muted);border-left:1px solid transparent}.sidebar a[aria-current=page]{color:var(--text);border-left-color:var(--accent);background:var(--panel)}.sidebar a:hover{color:var(--text)}.article{min-width:0;padding:52px 0 90px;max-width:800px}.article h1{font-size:42px;line-height:1.15;letter-spacing:-1.8px;font-weight:400;margin:0 0 22px}.article h2{font-size:24px;letter-spacing:-.65px;font-weight:400;margin:48px 0 16px;border-top:1px solid var(--border);padding-top:28px}.article h3{font-size:18px;font-weight:500;margin:30px 0 10px}.article p,.article li{color:var(--muted)}.article strong{color:var(--text);font-weight:500}.article a{color:var(--text)}.article ul{padding-left:23px}.article code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:12px;overflow-wrap:anywhere;color:var(--code)}.article p code,.article li code{background:var(--panel);padding:2px 4px}.code-wrap{position:relative;min-width:0;border:1px solid var(--border);margin:22px 0;background:var(--panel)}pre{margin:0;padding:25px 24px;max-width:100%;overflow:auto;tab-size:4;line-height:1.85}pre code{overflow-wrap:normal!important;white-space:pre;font-size:12px!important}.copy{position:absolute;right:8px;top:7px;border:0;background:var(--panel);font-size:10px;color:var(--muted);padding:4px 8px}.copy:hover{color:var(--text)}.code-language{display:block;border-bottom:1px solid var(--border);padding:7px 24px;font:10px/1.6 system-ui;color:var(--muted)}.kw{color:var(--keyword)}.st{color:var(--string)}.co{color:var(--muted)}.table-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid var(--border);margin:22px 0}table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.8}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--border);vertical-align:top;min-width:140px}th{font-weight:500;background:var(--panel)}td{color:var(--muted)}tr:last-child td{border:0}details{border-bottom:1px solid var(--border);padding:16px 0}summary{cursor:pointer;color:var(--text)}.outline{position:sticky;top:135px;padding-top:48px;font-size:10px;max-height:calc(100vh - 135px);overflow:auto}.outline strong{font-size:10px;font-weight:400;color:var(--muted)}.outline a{display:block;text-decoration:none;padding:6px 0;color:var(--muted)}.outline a:hover{color:var(--text)}.anchor{font-size:14px;color:var(--muted)!important;margin-left:9px;opacity:0;text-decoration:none}.article h2:hover .anchor,.article h3:hover .anchor,.anchor:focus{opacity:1}.footer{border-top:1px solid var(--border);padding:24px 5%;display:flex;gap:20px;justify-content:space-between;color:var(--muted);font-size:10px}.footer a{text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.home{max-width:1440px;margin:auto;padding:52px 6% 82px}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,1fr);gap:70px;align-items:start}.hero h1{font-size:clamp(44px,4.7vw,68px);line-height:1.07;letter-spacing:-3px;font-weight:400;margin:0 0 25px}.hero h1 span{color:var(--muted)}.hero-copy{color:var(--muted);font-size:15px;line-height:1.85;max-width:425px;margin:0}.hero .visual{margin-top:34px}.visual{padding:24px 0;width:100%;max-width:510px}.visual-stages{display:flex;align-items:center;gap:17px;font-size:10px;color:var(--muted);margin-bottom:25px}.visual-stages span{white-space:nowrap}.visual-stages .line{height:1px;background:var(--border);flex:1;position:relative;overflow:hidden}.visual-stages .line:after{content:'';width:25px;height:1px;background:var(--accent);position:absolute;animation:flow 4s linear infinite}.visual-table{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2px;width:165px;transform:perspective(450px) rotateY(-15deg) rotateX(10deg)}.visual-table i{height:22px;background:var(--raised);border:1px solid var(--border);position:relative}.visual-table i:after{content:'';position:absolute;left:9px;right:9px;top:10px;height:1px;background:var(--muted);opacity:.4}.visual-scene{height:130px;display:flex;align-items:center;justify-content:space-between;gap:20px}.predictor-glyph{width:80px;height:80px;border:1px solid var(--border);transform:rotate(45deg);position:relative}.predictor-glyph:before,.predictor-glyph:after{content:'';position:absolute;inset:13px;border:1px solid var(--muted);border-radius:50%}.predictor-glyph:after{inset:27px;border-color:var(--accent)}.visual-points{display:flex;gap:7px;align-items:center;height:80px}.visual-points i{width:8px;background:var(--accent);height:var(--h);opacity:.65;animation:signal 4s ease-in-out infinite;animation-delay:var(--d)}.visual-note{color:var(--muted);font-size:10px;margin:17px 0 0}.motion-control{background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:10px;margin-left:10px}.paused *,.offscreen *{animation-play-state:paused!important}.reduced *{animation:none!important}.quickstart{min-width:0;background:var(--paper);color:var(--papertext);padding:28px 30px;--bg:var(--paper);--panel:#eeede5;--muted:#5d645a;--border:#c6c9bd;--text:#252a26;--code:#2b352c;--keyword:#6a3d9a;--string:#3c6327;--focus:#415fba;color-scheme:light}.quickstart h2{font-size:22px;letter-spacing:-.7px;font-weight:400;margin:0 0 5px}.quickstart .intro{font-size:11px;color:var(--muted);margin:0 0 20px}.quickstart .step{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:16px 0 8px;font-size:11px}.quickstart .step a{font-size:10px}.quickstart .code-wrap{margin:0 0 18px}.quickstart pre{padding:20px 16px;font-size:12px;line-height:1.75}.quickstart pre code{font-size:12px!important}.quickstart .credential-note{font-size:10px;line-height:1.8;color:var(--muted)}.task-tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);margin:20px 0 0}.task-tabs button{font-size:11px;border:0;background:none;color:var(--muted);padding:0 0 10px;border-bottom:2px solid transparent}.task-tabs [aria-selected=true]{color:var(--text);border-bottom-color:var(--text)}.task-panel .code-wrap{border-top:0}.result{padding:15px 16px;background:#dce1d3;color:#323d2c;font-size:11px;line-height:1.8}.result strong{display:block;font-weight:500}.result code{font-size:10px}.home-bottom{display:grid;grid-template-columns:1fr 1fr 1fr;gap:45px;margin-top:70px;border-top:1px solid var(--border);padding-top:26px}.home-bottom a{display:block;text-decoration:none;font-size:19px;letter-spacing:-.5px}.home-bottom p{font-size:12px;color:var(--muted);margin:9px 0 0;max-width:300px}.boundary{margin-top:25px;font-size:10px;color:var(--muted);max-width:440px;line-height:1.8}dialog{border:1px solid var(--border);background:var(--bg);color:var(--text);width:min(640px,calc(100% - 32px));max-height:80vh;padding:26px}dialog::backdrop{background:#000a}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}dialog header button{background:none;border:0;color:var(--muted)}dialog label{display:block;font-size:12px;margin-bottom:8px}dialog input{width:100%;padding:12px;border:1px solid var(--border);background:var(--panel)}#search-results{padding:0;list-style:none;max-height:45vh;overflow:auto}#search-results a{display:block;padding:14px 5px;border-bottom:1px solid var(--border);text-decoration:none}#search-results small{display:block;color:var(--muted);font-size:11px}#search-empty{font-size:12px;color:var(--muted)}.nav-dialog a{display:block;padding:11px;text-decoration:none}.nav-dialog p{color:var(--muted);font-size:11px}body:has(dialog[open]){overflow:hidden}
|
|
5
|
+
@keyframes flow{from{left:-30px}to{left:100%}}@keyframes signal{0%,100%{opacity:.4;transform:scaleY(.85)}50%{opacity:.9;transform:scaleY(1)}}
|
|
6
|
+
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.visual *{animation:none!important}.motion-control{display:none}}
|
|
7
|
+
@media(min-width:1700px){.hero{gap:100px}.home{padding-top:85px}}
|
|
8
|
+
@media(max-width:1200px){.layout{grid-template-columns:195px minmax(0,1fr);gap:35px}.outline{display:none}.hero{gap:40px}.topnav{gap:20px}.tools{gap:12px}.hero h1{font-size:52px}.home{padding:50px 5%}}
|
|
9
|
+
@media(max-width:900px){.header{height:78px;padding:0 24px}.topnav{display:none}.menu-button{display:block}.layout{display:block;padding:0 25px}.sidebar{display:none}.article{padding:40px 0 65px;max-width:760px;margin:auto}.hero{grid-template-columns:minmax(0,1fr);gap:30px}.hero-intro{min-width:0;max-width:660px}.hero h1{font-size:58px}.visual{max-width:450px;margin-top:20px!important}.hero .boundary{max-width:650px}.quickstart{max-width:660px;width:100%}.home{padding:45px 25px}.home-bottom{gap:25px;margin-top:45px}.brand span{display:none}}
|
|
10
|
+
@media(max-width:520px){.header{padding:0 20px;gap:8px}.brand{gap:9px}.brand strong{font-size:25px}.brand img{width:26px;height:26px}.tools{gap:8px}.tools button,.menu-button{font-size:11px}.version{font-size:10px;max-width:86px}.search-label{display:none}.home{padding:37px 20px 45px}.hero h1{font-size:43px;letter-spacing:-2px}.hero-copy{font-size:13px}.hero{gap:24px}.quickstart{padding:23px 17px}.visual-scene{gap:12px}.visual-table{width:133px}.predictor-glyph{width:55px;height:55px}.predictor-glyph:before{inset:8px}.predictor-glyph:after{inset:19px}.visual-points{gap:5px}.visual-points i{width:6px}.visual-stages{gap:9px;font-size:9px}.home-bottom{grid-template-columns:1fr;gap:22px}.home-bottom a{font-size:18px}.home-bottom p{max-width:100%}.article h1{font-size:33px;letter-spacing:-1px}.article h2{font-size:23px}.article{font-size:14px}.layout{padding:0 20px}pre{padding:25px 16px}.footer{padding:22px 20px;flex-wrap:wrap;gap:10px}.quickstart pre code{font-size:12px!important}.visual-note{font-size:9px}.motion-control{font-size:9px}}
|
|
11
|
+
|
|
12
|
+
.sample-data{font-size:11px;padding:12px 0}.sample-data summary{font-size:11px}.task-panel .sample-data+.code-wrap{border-top:1px solid var(--border);margin-top:14px}.quickstart .credential-note{font-size:11px}.quickstart .intro{font-size:12px}.boundary{font-size:12px;max-width:470px}.visual-note{font-size:11px}.motion-control{font-size:11px}.result{font-size:12px}.result code{font-size:12px}
|
|
13
|
+
.article h2,.article h3{overflow-wrap:anywhere}.quickstart details>summary{font-size:11px}
|
|
14
|
+
@media(max-width:900px){.hero-intro{display:contents}.hero-intro>h1{order:0;margin-bottom:0}.hero-copy{order:1}.quickstart{order:2}.visual{order:3;margin-top:15px!important}.visual-note{order:4;margin-top:0}.boundary{order:5;margin-top:0}.hero{gap:22px}}
|
|
15
|
+
|
|
16
|
+
.article{overflow-wrap:anywhere}
|
|
17
|
+
|
|
18
|
+
.copy-fallback{display:block;width:100%;max-width:100%;padding:18px;background:var(--panel);border:1px solid var(--border);font:12px/1.75 monospace;white-space:pre;overflow:auto;resize:vertical}
|