Faker Components

General Faker functionality for transfsormer usage. The important parts here to note are the LOCALES and FAKER_MAP mappings. These provide some of the options that can be provided to Faker transformers that make use of locales and fake methods

gretel_client.transformers.fakers.FAKER_MAP = {'aba_routing_number': None, 'age': None, 'city': 'city', 'credit_card_number': 'credit_card_number', 'date': 'date_between', 'date_of_birth': 'date_between', 'datetime': 'date_time', 'domain_name': 'domain_name', 'email_address': 'email', 'ethnic_group': None, 'first_name': 'first_name', 'gcp_credentials': None, 'gender': None, 'gpe': None, 'hostname': 'hostname', 'iban_code': 'iban', 'icd10_code': None, 'icd9_code': None, 'imei_hardware_id': None, 'imsi_subscriber_id': None, 'ip_address': 'ipv4_public', 'last_name': 'last_name', 'latitude': 'latitude', 'location': None, 'longitude': 'longitude', 'mac_address': 'mac_address', 'norp_group': None, 'organization_name': 'company', 'passport': None, 'person_name': 'name', 'phone_number': 'phone_number', 'phone_number_namer': 'phone_number', 'swift_code': None, 'time': 'time', 'transform_latitude_1km': None, 'transform_latlon_1km': None, 'transform_longitude_1km': None, 'url': 'url', 'us_social_security_number': 'ssn', 'us_state': None, 'us_zip_code': 'postcode', 'user_id': None}

A mapping of Gretel Entities to Faker methods that are used to generate fake values. The keys of this mapping should be used as the fake_method param when creating a configuration. If the value is None then that entity is currently not suported for fake generation.

gretel_client.transformers.fakers.LOCALES = {'ar-EG': 'Arabic (Egypt)', 'ar-PS': 'Arabic (Palestine)', 'ar-SA': 'Arabic (Saudi Arabia)', 'bg-BG': 'Bulgarian', 'bs-BA': 'Bosnian', 'cs-CZ': 'Czech', 'de-DE': 'German', 'dk-DK': 'Danish', 'el-GR': 'Greek', 'en-AU': 'English (Australia)', 'en-CA': 'English (Canada)', 'en-GB': 'English (Great Britain)', 'en-IN': 'English (India)', 'en-NZ': 'English (New Zealand)', 'en-US': 'English (United States)', 'es-ES': 'Spanish (Spain)', 'es-MX': 'Spanish (Mexico)', 'et-EE': 'Estonian', 'fa-IR': 'Persian (Iran)', 'fi-FI': 'Finnish', 'fr-FR': 'French', 'hi-IN': 'Hindi', 'hr-HR': 'Croatian', 'hu-HU': 'Hungarian', 'hy-AM': 'Armenian', 'it-IT': 'Italian', 'ja-JP': 'Japanese', 'ka-GE': 'Georgian (Georgia)', 'ko-KR': 'Korean', 'lt-LT': 'Lithuanian', 'lv-LV': 'Latvian', 'ne-NP': 'Nepali', 'nl-NL': 'Dutch (Netherlands)', 'no-NO': 'Norwegian', 'pl-PL': 'Polish', 'pt-BR': 'Portuguese (Brazil)', 'pt-PT': 'Portuguese (Portugal)', 'ro-RO': 'Romanian', 'ru-RU': 'Russian', 'sl-SI': 'Slovene', 'sv-SE': 'Swedish', 'tr-TR': 'Turkish', 'uk-UA': 'Ukrainian', 'zh-CN': 'Chinese (China)', 'zh-TW': 'Chinese (Taiwan)'}

Locales that are possible for use with faker transformers