Skip to main content

datasentry-core

DataSentry AI 核心领域模型与引擎:连接器、检测器、融合、评分、 修复、规则引擎与隐私脱敏。纯离线、零网络依赖,可独立测试。

pip install datasentry-core

模块

  • connectors/ — 多格式数据源(CSV / Parquet / JSONL / XLSX)
  • detectors/ — 检测器注册表与 36+ 内置检测器(Detector 协议)
  • engine/ — 画像、融合、评分
  • repair/ — 修复引擎(propose → preview → apply → rollback)
  • rules/ — 规则模型与预运行引擎(期望语义取反)
  • privacy/ — 确定性 PII 脱敏(mask_profile / mask_rows)
  • llm/ — LLM Provider 协议与数据结构(零网络)
  • plugins.py — 检测器插件加载(插件 API v1,ADR-031)

使用

from datasentry_core.connectors import DataSourceSpec, default_registry
from datasentry_core.detectors.initial import register_default_detectors
from datasentry_core.detectors import DetectorRegistry
from datasentry_core.detectors.runner import ScanRunner

registry = DetectorRegistry()
register_default_detectors(registry)
runner = ScanRunner(registry)

handle = default_registry().open(DataSourceSpec(source_type="csv", path="data.csv"))
runs = runner.run_all(handle, config)

许可

Apache-2.0。完整产品(CLI / API / UI)见 datasentry 包。

Release files for datasentry-core 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasentry-core 0.8.0
File Size Uploaded
datasentry_core-0.8.0.tar.gz 141.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasentry-core 0.8.0
File Interpreter ABI Platform
datasentry_core-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 347.8 kB

Release files / datasentry_core-0.8.0.tar.gz

Download URL datasentry_core-0.8.0.tar.gz
Size 141.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9d1732a24a1a2fdfef5c7bda8665266a0ce9c70afcd02c9e6a94af7e8573d62c
BLAKE2b-256 checksum
How to use checksums
ef34940c5e7c65842fd131b95a1c6f7a1cd8f1fff311b02f8265032bcf2f21bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release files / datasentry_core-0.8.0-py3-none-any.whl

Download URL datasentry_core-0.8.0-py3-none-any.whl
Size 205.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3099ee2fd0d4191fa8d72d01553a4de9f99c6b991dfe12de62ca077bdb763c7
BLAKE2b-256 checksum
How to use checksums
cd8cc40bed2f373e1d7833d651864d00185cd00ad4fbe696c3e2efda4b70eaf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page