Skip to content

Commit d10b377

Browse files
committed
feat: add column characteristic enum
1 parent 8654e01 commit d10b377

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from .privacy import PrivacyLevel
22
from .anonymizer import AnonymizerType
3+
from .column_characteristic import ColumnCharacteristic
34

45

56
__all__ = [
67
"PrivacyLevel",
7-
"AnonymizerType"
8+
"AnonymizerType",
9+
"ColumnCharacteristic"
810
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from ydata.core.enum import StringEnum
2+
3+
4+
class ColumnCharacteristic(StringEnum):
5+
# Adding new characteristics may require adding a new generator to:
6+
# src/ydatasynthesizers/ydata-synthesizers/ydata/synthesizers/faker/utils.py
7+
ID = "id"
8+
EMAIL = "email"
9+
URL = "url"
10+
UUID = "uuid"
11+
NAME = "name"
12+
PHONE = "phone"
13+
VAT = "vat"
14+
IBAN = "iban"
15+
CREDIT_CARD = "credit_card"
16+
COUNTRY = "country"
17+
ZIPCODE = "zipcode"
18+
ADDRESS = "address"
19+
PII = 'PII'
20+
# Generic characteristic grouping Country, Address, etc.
21+
LOCATION = 'location'
22+
PERSON = 'person' # Generic characteristic grouping person related attributes

0 commit comments

Comments
 (0)