Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def city(cls, locale=Locales.EN):
return Address(locale).city()
def address(locale):
"""
:param locale:
:return:
"""
return Address(locale)
def street_name(cls, locale=Locales.EN):
return Address(locale).street_name()
def _address(self):
return Address()
def postal_code(cls, locale=Locales.EN):
return Address(locale).postal_code()
def street_number(cls, locale=Locales.EN):
return Address(locale).street_number()
def country(cls, locale=Locales.EN):
return Address(locale).country()
def a2(self, seed):
return Address(seed=seed)
def a1(self, seed):
return Address(seed=seed)
from mimesis import Person, Address
from random import random
from uuid import uuid4
from .Node import Node
class Client(Node):
_person = Person()
_adresss = Address()
def __init__(self):
self.__type = 'Client'
self.id = uuid4()
self.first_name = self._person.name()
self.last_name = self._person.surname()
self.age = self._person.age()
self.email = self._person.email()
self.occupation = self._person.occupation()
self.political_views = self._person.political_views()
self.nationality = self._person.nationality()
self.university = self._person.university()
if random() < 0.15:
self.academic_degree = self._person.academic_degree()
else: