Metadata-Version: 2.3
Name: class-to-dot
Version: 0.1.0
Summary: A class that extends a class into a dictionary like object whose members can be accessed by dot notation.
License: MIT
Author: Reza
Author-email: reza.neiriz@email.com
Requires-Python: >=3.10,<3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

# Class to Dot Extender
This is a class extender that can be used to manage constants similar to dictionary. The difference is that the members can be accessed through dot notation. Also, you do not need to add `@dataclass(froze=True)` decorator to your class. You can also iterate through the members of the class.

## Example
Suppose that you are dealing with a list of DataFrame columns that must be standardized throughout the project. You can store these values in a class that is extended by `class_to_dot` Constants class.

```python
from class_to_dot import Constants
import pandas as pd

class DataColumns(Constants):
    COLUMN_ONE = "column_one"
    COLUMN_TWO = "column_two"
    COLUMN_THREE = "column_three"

df = pd.DataFrame({
        DataColumns.COLUMN_ONE : [1,2,3],
        DataColumns.COLUMN_TWO: [4, 5, 6], 
        DataColumns.COLUMN_THREE: [7, 8, 9], 
    })

for column in list(DataColumns):
    print(df[column].sum())
```


