Skip to main content

SDK for managing snapshots, algorithms, and run execution

Project description

Fraclab SDK

Python >=3.11

Fraclab SDK 用来开发、打包、导入和执行本地算法。

README 现在只作为入口索引使用,不再重复维护整套说明。规范和参考以 docs/ 为准。

文档分发

  • 完整人类文档 docs/ 会随源码分发,也会打进 PyPI 包
  • 面向机器的文档 AI_GUIDE.mdllms.txt 也会打进 PyPI 包
  • 也就是说,pip install fraclab-sdk 后,本地环境里就同时有 docs/AI_GUIDE.mdllms.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

先看哪几页

第一次接触这个项目,建议按这个顺序读:

  1. docs/index.md
  2. docs/getting-started/installation.md
  3. docs/getting-started/first-algorithm.md
  4. docs/guides/input-spec.md
  5. docs/guides/output.md
  6. docs/guides/compile-export-import.md

如果你正在让 AI 生成或修改算法代码,先读:

常用入口

仓库内示例算法

当前仓库里可直接对照的完整样例主要在 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


Download files

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

Source Distribution

fraclab_sdk-0.1.70.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

fraclab_sdk-0.1.70-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

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

Hashes for fraclab_sdk-0.1.70.tar.gz
Algorithm Hash digest
SHA256 5d36d5dccf44f13ad92d0abbab3f34803797a3c2d66ae19eeee362af6e1d33c2
MD5 606814d8949731300e2850ce8d0e0d56
BLAKE2b-256 a02519115fcb44d664f86d59a81d739b1db3a5a7415404a3a995bfd1689867f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fraclab_sdk-0.1.70.tar.gz:

Publisher: publish-pypi.yml on leps-tech/fraclab-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fraclab_sdk-0.1.70-py3-none-any.whl
Algorithm Hash digest
SHA256 251f5fcdc9afaecdaac30c59072c595e7df809807c0f8e683667f22074319846
MD5 548b8080d26f2c8d954c7be9657a2f7f
BLAKE2b-256 3854a78cc74cf2f996bb12d8ed731d97c93ffa1b75f35c2cc3b01370c076c539

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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