Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
[DEPRECATED] Library to predict info types for DataHub
DEPRECATED: This library is deprecated and is no longer actively maintained. It will not receive further updates or bug fixes. Please migrate away from
acryl-datahub-classifyat your earliest convenience.
Predict InfoTypes for DataHub.
python3 -m pip install --upgrade acryl-datahub-classify
predict_infotypesThis API populates infotype proposal(s) for each input column by using metadata, values & confidence level threshold. Following are the input and output contract
API expects following parameters in the output
column_infos - This is a list of ColumnInfo objects. Each ColumnInfo object contains metadata (col_name, description, datatype, etc) and values of a column.confidence_level_threshold - If the infotype prediction confidence is greater than the confidence threshold then the prediction is considered as a proposal. This is the common threshold for all infotypes.global_config - This dictionary contains configuration details about all supported infotypes. Refer section Infotype Configuration for more information.infotypes - This is a list of infotypes that is to be processed. This is an optional argument, if specified then it will override the default list of all supported infotypes. If user is interested in only few infotypes then this list can be specified with correct infotype names. Infotype names are case sensitive.minimum_values_threshold - Minimum number of column values required for processing. This is an optional argument, default is 50.API returns a list of ColumnInfo objects of length same as input ColumnInfo objects list. A populated list of Infotype proposal(s), if any, is added in the ColumnInfo object itself with a variable name as infotype_proposals. The infotype_proposals list contains InfotypeProposal objects which has following information
infotype - A proposed infotype name.confidence_level - Overall confidence of the infotype proposal.debug_info - confidence score of each prediction factor involved in the overall confidence score calculation. Refer section Debug Information for more information.Convention:
If infotype_proposals list is non-empty then it indicates that there is at least one infotype proposal with confidence greater than confidence_level_threshold.
Infotype configuration is a dictionary with all infotypes at root level key. Each infotype has following configurable parameters (value of each parameter is a dictionary)
Prediction_Factors_and_Weights - This is a dictionary that specifies the weight of each prediction factor which will be used in the final confidence calculation. Following are the prediction factors
ExcludeName - optional exact match list for column names to exclude from classification for this info_typeName - regex list which is to be matched against column nameDescription - regex list which is to be matched against column descriptionDatatype - list of datatypes to be matched against column datatypeValues - this dictionary contains following information
prediction_type - values evaluation model (regex/library)regex - regex list which is to be matched against column valueslibrary - library name which is to be used to evaluate column values{
'<Infotype1>': {
'Prediction_Factors_and_Weights': {
'Name': 0.4,
'Description': 0,
'Datatype': 0,
'Values': 0.6
},
'Name': { 'regex': [<regex patterns>] },
'Description': { 'regex': [<regex patterns>] },
'Datatype': { 'type': [<list of datatypes>] },
'Values': {
'prediction_type': 'regex/library',
'regex': [<regex patterns>],
'library': [<library name>]
}
},
'<Infotype2>': {
..
..
..
}
}
A debug information is associated with each infotype proposal, it provides details about confidence score from each prediction factor involved in overall confidence score calculation. This is a dictionary with following four prediction factors as key
{
'Name': 0.4,
'Description': 0.2,
'Values': 0.6,
'Datatype': 0.3
}
Below Infotypes are supported out of the box.
Regex based custom infotypes are supported. Specify custom infotype configuration in format mentioned here.
cd datahub-classify
../gradlew :datahub-classify:installDev # OR pip install -e ".[dev]"
source venv/bin/activate
pytest tests/ --capture=no --log-cli-level=DEBUG
# Assumes: pip install -e ".[dev]" and venv is activated
black src/ tests/
isort src/ tests/
flake8 src/ tests/
mypy src/ tests/
../gradlew :datahub-classify:build
You can also run these steps via the gradle build:
../gradlew :datahub-classify:lint
../gradlew :datahub-classify:lintFix
../gradlew :datahub-classify:testQuick
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.12 | 19 Feb 2026 | 16 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b9fcc3e9353d2dbcc9b22d3f9c87e7cc56efaca1f39cf78bff627ef73753f352