SDK for managing snapshots, algorithms, and run execution
Project description
Fraclab SDK
Python
>=3.11
Fraclab SDK 用来开发、打包、导入和执行本地算法。
README 现在只作为入口索引使用,不再重复维护整套说明。规范和参考以 docs/ 为准。
文档分发
- 完整人类文档
docs/会随源码分发,也会打进 PyPI 包 - 面向机器的文档
AI_GUIDE.md和llms.txt也会打进 PyPI 包 - 也就是说,
pip install fraclab-sdk后,本地环境里就同时有docs/、AI_GUIDE.md和llms.txt
如果你在安装后的环境里定位这些文件,可以用:
import inspect
from pathlib import Path
import fraclab_sdk
site_root = Path(inspect.getfile(fraclab_sdk)).resolve().parent.parent
print(site_root / "docs")
print(site_root / "AI_GUIDE.md")
print(site_root / "llms.txt")
安装
安装核心 SDK:
pip install fraclab-sdk
安装并启用 Workbench:
pip install "fraclab-sdk[workbench]"
fraclab-workbench
如果你当前就在仓库里开发:
poetry install
poetry run fraclab-sdk --help
先看哪几页
第一次接触这个项目,建议按这个顺序读:
docs/index.mddocs/getting-started/installation.mddocs/getting-started/first-algorithm.mddocs/guides/input-spec.mddocs/guides/output.mddocs/guides/compile-export-import.md
如果你正在让 AI 生成或修改算法代码,先读:
常用入口
- 安装与环境:
docs/getting-started/installation.md - 第一个算法:
docs/getting-started/first-algorithm.md - InputSpec:
docs/guides/input-spec.md - Output:
docs/guides/output.md - 编译与导入导出:
docs/guides/compile-export-import.md - Runtime API:
docs/reference/runtime-api.md - 数据模型:
docs/reference/models.md - Bundle 规范:
docs/reference/bundle-spec.md - 执行模型:
docs/architecture/execution-model.md - CLI:
docs/cli/overview.md
仓库内示例算法
当前仓库里可直接对照的完整样例主要在 algorithms/:
bh-prop-conc: stage 级 frame 读取 + 井底支撑剂浓度估算frac-derived-curves: stage 级派生曲线分析hf-fracture-curves: 高频压力整表分析hf-fracture-curves-streaming: 高频压力流式 chunk 分析
其中流式读取写法优先参考 hf-fracture-curves-streaming;旧样例里直接拼 run 输入路径的读法不要再当成公开契约。
本地预览文档站
poetry install --with docs
poetry run mkdocs serve
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fraclab_sdk-0.1.70.tar.gz.
File metadata
- Download URL: fraclab_sdk-0.1.70.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d36d5dccf44f13ad92d0abbab3f34803797a3c2d66ae19eeee362af6e1d33c2
|
|
| MD5 |
606814d8949731300e2850ce8d0e0d56
|
|
| BLAKE2b-256 |
a02519115fcb44d664f86d59a81d739b1db3a5a7415404a3a995bfd1689867f7
|
Provenance
The following attestation bundles were made for fraclab_sdk-0.1.70.tar.gz:
Publisher:
publish-pypi.yml on leps-tech/fraclab-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fraclab_sdk-0.1.70.tar.gz -
Subject digest:
5d36d5dccf44f13ad92d0abbab3f34803797a3c2d66ae19eeee362af6e1d33c2 - Sigstore transparency entry: 1246149761
- Sigstore integration time:
-
Permalink:
leps-tech/fraclab-sdk@8351188df3fd128355df0ffacae2ff9d7c93b32a -
Branch / Tag:
refs/tags/v0.1.70 - Owner: https://github.com/leps-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8351188df3fd128355df0ffacae2ff9d7c93b32a -
Trigger Event:
push
-
Statement type:
File details
Details for the file fraclab_sdk-0.1.70-py3-none-any.whl.
File metadata
- Download URL: fraclab_sdk-0.1.70-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251f5fcdc9afaecdaac30c59072c595e7df809807c0f8e683667f22074319846
|
|
| MD5 |
548b8080d26f2c8d954c7be9657a2f7f
|
|
| BLAKE2b-256 |
3854a78cc74cf2f996bb12d8ed731d97c93ffa1b75f35c2cc3b01370c076c539
|
Provenance
The following attestation bundles were made for fraclab_sdk-0.1.70-py3-none-any.whl:
Publisher:
publish-pypi.yml on leps-tech/fraclab-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fraclab_sdk-0.1.70-py3-none-any.whl -
Subject digest:
251f5fcdc9afaecdaac30c59072c595e7df809807c0f8e683667f22074319846 - Sigstore transparency entry: 1246149771
- Sigstore integration time:
-
Permalink:
leps-tech/fraclab-sdk@8351188df3fd128355df0ffacae2ff9d7c93b32a -
Branch / Tag:
refs/tags/v0.1.70 - Owner: https://github.com/leps-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8351188df3fd128355df0ffacae2ff9d7c93b32a -
Trigger Event:
push
-
Statement type: