Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/python-binding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@ jobs:
- run: |
python -m venv .venv
.venv/bin/python -m pip install target/wheels/*.whl
.venv/bin/python -m pip install -r bindings/python/tests/requirements-typing.txt
.venv/bin/python bindings/python/tests/test_installed.py
.venv/bin/python bindings/python/tests/test_typing.py
- name: Verify typing survives a source distribution rebuild
if: matrix.python-version == '3.10'
run: |
maturin sdist --manifest-path bindings/python/Cargo.toml --out target/sdist
.venv/bin/python -m pip wheel --no-deps target/sdist/*.tar.gz --wheel-dir target/rebuilt-wheels
.venv/bin/python -m pip install --force-reinstall target/rebuilt-wheels/*.whl
.venv/bin/python bindings/python/tests/test_installed.py
.venv/bin/python bindings/python/tests/test_typing.py
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datafog-node"
version = "0.3.0"
version = "0.3.1"
edition = "2024"
rust-version = "1.88"
description = "Node.js bindings for datafog-core"
Expand Down
4 changes: 2 additions & 2 deletions bindings/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datafog/node",
"version": "0.3.0",
"version": "0.3.1",
"description": "Fast structured PII detection for Node.js, powered by Rust",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "datafog-core-python"
version = "0.3.0"
version = "0.3.1"
edition = "2024"
rust-version = "1.88"
description = "Python bindings for datafog-core"
Expand Down
5 changes: 3 additions & 2 deletions bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "datafog-core"
version = "0.3.0"
version = "0.3.1"
description = "Fast structured PII detection implemented in Rust"
readme = "../../README.md"
license = "MIT"
Expand All @@ -30,4 +30,5 @@ Repository = "https://github.com/DataFog/datafog-core"
Issues = "https://github.com/DataFog/datafog-core/issues"

[tool.maturin]
module-name = "datafog_core"
python-source = "python"
module-name = "datafog_core.datafog_core"
57 changes: 57 additions & 0 deletions bindings/python/python/datafog_core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
"""Fast structured PII detection implemented in Rust."""

from .datafog_core import (
DataFogConfigurationError as DataFogConfigurationError,
DataFogFindingError as DataFogFindingError,
DataFogInternalError as DataFogInternalError,
DataFogKeyProviderError as DataFogKeyProviderError,
FieldMapping as FieldMapping,
Finding as Finding,
PrivacyManager as PrivacyManager,
Restoration as Restoration,
RestoreResult as RestoreResult,
StructuredFinding as StructuredFinding,
StructuredRestoration as StructuredRestoration,
StructuredRestoreResult as StructuredRestoreResult,
StructuredScanResult as StructuredScanResult,
StructuredTransformation as StructuredTransformation,
StructuredTransformResult as StructuredTransformResult,
TextRange as TextRange,
Transformation as Transformation,
TransformResult as TransformResult,
discover_fields as discover_fields,
scan as scan,
scan_and_transform as scan_and_transform,
scan_and_transform_structured as scan_and_transform_structured,
scan_structured as scan_structured,
transform as transform,
transform_structured as transform_structured,
)

__all__ = [
"DataFogConfigurationError",
"DataFogFindingError",
"DataFogInternalError",
"DataFogKeyProviderError",
"TextRange",
"Finding",
"Transformation",
"TransformResult",
"Restoration",
"RestoreResult",
"FieldMapping",
"StructuredFinding",
"StructuredScanResult",
"StructuredTransformation",
"StructuredTransformResult",
"StructuredRestoration",
"StructuredRestoreResult",
"PrivacyManager",
"scan",
"transform",
"scan_and_transform",
"discover_fields",
"scan_structured",
"transform_structured",
"scan_and_transform_structured",
]
Loading
Loading