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.69.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.69-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file fraclab_sdk-0.1.69.tar.gz.

File metadata

  • Download URL: fraclab_sdk-0.1.69.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.69.tar.gz
Algorithm Hash digest
SHA256 b948802aa95cd6745bbd401f192d5dbd77a18f593e92d47c81e75d2c0e9972b5
MD5 6d3d9e0afa876740f000282427291d3e
BLAKE2b-256 504fa31235537f2c233a6f1e1aff8ade4cfbd27d0c3ee775815885f861c988bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for fraclab_sdk-0.1.69.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.69-py3-none-any.whl.

File metadata

  • Download URL: fraclab_sdk-0.1.69-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.69-py3-none-any.whl
Algorithm Hash digest
SHA256 a401e6a8b4a5142a85e9b7927cb3ca3171bd8591ceabc049552dc965b8ac818b
MD5 0ee91d329971c8db6175a79160912817
BLAKE2b-256 cbd702e54e364ab5104c3d39fbf517df219cf9ec50b25c5f7f5f52a466ba1f59

See more details on using hashes here.

Provenance

The following attestation bundles were made for fraclab_sdk-0.1.69-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