How to use the mimesis.Address function in mimesis

To help you get started, we’ve selected a few mimesis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github test-mile / arjuna / arjuna / engine / data / generator.py View on Github external
def city(cls, locale=Locales.EN):
        return Address(locale).city()
github pytest-dev / pytest-mimesis / pytest_mimesis / fixtures.py View on Github external
def address(locale):
    """

    :param locale:
    :return:
    """
    return Address(locale)
github test-mile / arjuna / arjuna / engine / data / generator.py View on Github external
def street_name(cls, locale=Locales.EN):
        return Address(locale).street_name()
github test-mile / arjuna / arjuna / engine / data / generator.py View on Github external
def postal_code(cls, locale=Locales.EN):
        return Address(locale).postal_code()
github test-mile / arjuna / arjuna / engine / data / generator.py View on Github external
def street_number(cls, locale=Locales.EN):
        return Address(locale).street_number()
github test-mile / arjuna / arjuna / engine / data / generator.py View on Github external
def country(cls, locale=Locales.EN):
        return Address(locale).country()
github MGrin / transactions-graph-generator / models / Client.py View on Github external
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: