arjuna.engine.data.generator.entity module

class arjuna.engine.data.generator.entity.Entity

Bases: object

classmethod address(*, locale='en', calling_code=None, city=None, country=None, country_code=None, latitude=None, longitude=None, postal_code=None, state=None, street_name=None, street_number=None, street_suffix=None)

Create an Address Data Entity object.

All individual fields are automatically randomly generated based on locale. If provided, the corresponding values are overriden.

Note

All individual fields are randomly generated. Don’t expect correct correlation e.g. correct postal code for the generated city.

Keyword Arguments
  • locale – Approprite Random.locale.<local_name> object. Default is Random.locale.EN

  • calling_code – Calling Code

  • city – City

  • country – Country Name

  • country_code – Country Code

  • latitude – Latitude

  • longitude – Longitde

  • postal_code – Postal Code

  • state – State

  • street_name – Street Name

  • Number (street_number Street) –

  • street_suffix – Street Suffix

classmethod person(*, locale='en', qualification=None, age=None, blood_type=None, email=None, first_name=None, last_name=None, gender=None, height=None, id=None, language=None, nationality=None, occupation=None, phone=None, title=None, university=None, weight=None, work_experience=None)

Create an Person Data Entity object.

All individual fields are automatically randomly generated based on locale. If provided, the corresponding values are overriden.

Note

All individual fields are randomly generated. Don’t expect correct correlation e.g. correct postal code for the generated city.

Keyword Arguments
  • locale – Approprite Random.locale.<local_name> object. Default is Random.locale.EN

  • qualification – Educational Qualification

  • age – Age

  • blood_type – Blood type

  • email – Email address

  • first_name – First name

  • last_name – Last name

  • gender – Gender

  • height – Height

  • id – Identifier

  • language – Language

  • nationality – Nationality

  • occupation – Occupation

  • phone – Phone number

  • title – Title

  • university – University

  • weight – Weight

  • work_experience – Work Experience