Registry / data / dataproperty

dataproperty

JSON →
library1.1.1pypypi✓ verified 26d ago

DataProperty is a Python library designed to extract and analyze properties from various data types, including numbers, strings, and dates. It provides functionalities to determine characteristics like type, alignment, width, and digit counts for individual data points or entire matrices. The library is actively maintained, with version 1.1.0 released recently, and it has a regular release cadence addressing bug fixes, performance, and Python version compatibility.

pip install dataproperty
INSTALL
IMPORT
SIG · DATAPROPERTY
D
dataproperty
datapythonv1.1.1
Install
2.9s avg
Import
98ms
Disk
36MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.098s · 36.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.9s · import 0.098s · 37MB
36MB installed
● package 36MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DataProperty
from dataproperty import DataProperty
DataPropertyExtractor
from dataproperty import DataPropertyExtractor

This example demonstrates how to use `DataPropertyExtractor` to process a matrix of mixed data types, extract properties for each column, and print the results.

import datetime from dataproperty import DataPropertyExtractor dp_extractor = DataPropertyExtractor() dt = datetime.datetime(2017, 1, 1, 0, 0, 0) inf = float("inf") nan = float("nan") data_matrix = [ [1, 1.1, "aa", 1, 1, True, inf, nan, dt], [2, 2.2, "bbb", 2.2, 2.2, False, "inf", "nan", dt], [3, 3.33, "cccc", -3, "ccc", "true", inf, "NAN", "2017-01-01T01:23:45+0900"], ] dp_extractor.headers = ["int", "float", "str", "num", "mix", "bool", "inf", "nan", "time"] col_dp_list = dp_extractor.to_column_dp_list(dp_extractor.to_dp_matrix(data_matrix)) for col_idx, col_dp in enumerate(col_dp_list): print(str(col_dp))
Debug
Known issues
breakingPython 3.7 and 3.8 are no longer supported as of `dataproperty` version 1.0.2.
fix
Upgrade your Python environment to version 3.9 or newer to use `dataproperty` v1.0.2 and later.
affects: >=1.0.2
breakingPython 3.6 is no longer supported as of `dataproperty` version 1.0.0.
fix
Upgrade your Python environment to version 3.7 or newer, or stick to `dataproperty` versions older than 1.0.0.
affects: >=1.0.0
breakingThe `set_log_level` and `is_multibyte_str` functions were removed in version 1.0.0.
fix
Remove calls to `set_log_level` and `is_multibyte_str` from your codebase. Refer to the official documentation for alternative logging or string handling.
affects: >=1.0.0
gotchaThe `decimal` context used by the `get_integer_digit` function was changed from a global to a local scope in version 1.0.2. If your application modified the global `decimal` context and expected `dataproperty` to honor it, behavior might differ.
fix
Review any code that relies on `decimal.getcontext()` affecting `dataproperty`'s internal calculations. Adjust expectations or explicitly manage the context before calls if needed.
affects: >=1.0.2
gotchaVersions prior to 0.54.2 had issues with `dict` inputs, causing preprocessing failures or improper padding length calculations.
fix
Ensure you are using `dataproperty` version 0.54.2 or later if you are processing dictionaries to avoid these issues.
affects: <0.54.2
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'DataProperty'
The Python package name is `dataproperty` (lowercase), but users might incorrectly try to import it using `DataProperty` (capitalized) as the module name.
fix
Use the correct lowercase package name in the import statement: `from dataproperty import DataProperty`
AttributeError: 'DataProperty' object has no attribute 'non_existent_attribute'
Users attempt to access a property or method on a `DataProperty` instance that does not exist or is not applicable to the data type being analyzed. The library provides specific attributes like `type`, `align`, `ascii_width`, etc..
fix
Refer to the `dataproperty` documentation to ensure you are accessing a valid attribute or calling an existing method for the `DataProperty` object. For example, to get the ASCII width, use `dp.ascii_width`.
TypeError: argument of type 'X' is not iterable
While not explicitly found as a verbatim common error for `dataproperty` in isolation, this generic Python `TypeError` can occur if the library's methods, especially those dealing with matrices or collections (e.g., `DataPropertyExtractor.to_dp_matrix` or `to_column_dp_list`), receive input that is not an iterable when one is expected for data processing.
fix
Ensure that any input provided to `dataproperty` functions or methods that expect collections or iterable data types (like lists, tuples, or matrices) is indeed iterable and in the expected format.
Upgrade
Version history
1.1.1latest on PyPI · released May 9, 2026
Audit
Dependencies
pythonrequiredRequired Python version.
typepyrequiredCore dependency for type checking, validation, and conversion.
Agent activity
32 hits · last 30 days
node
24
OpenAI (training)
1
Resources
dataproperty — pip install dataproperty · libregistry