src/schoology-extractor/data_generation/users.py
def generate_users(record_count: int) -> List[Dict]:
    """
    Generate a list of Schoology users.

    Parameters
    ----------
    record_count : int
        The number of users to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like user objects in a form suitable for submission to the
        Schoology user create endpoint.
    """
    assert record_count > 0, "Number of users to generate must be greater than zero"

    logging.info(f"Generating {record_count} users")
    users = []
    for i in range(1, record_count + 1):
        if i % 1000 == 0:
            logging.info(f"{i} users...")
        first_name = fake.first_name()
        users.append(
            {
                "school_id": VALID_SCHOOL_ID,
                "school_uid": str(fake.random_number(digits=8)),
                "name_first": first_name,
                "name_last": fake.last_name(),
                "primary_email": f"{first_name}.{fake.random_number(digits=8)}@{VALID_EMAIL_DOMAIN}",
                "role_id": VALID_ROLE_ID,
            }
        )
    return users

    Generate a list of Schoology users.

    Parameters
    ----------
    record_count : int
        The number of users to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like user objects in a form suitable for submission to the
        Schoology user create endpoint.
    
Generate a list of Schoology users.
Parameters

record_count : int
The number of users to generate.

Returns

List[Dict]
A list of JSON-like user objects in a form suitable for submission to the
Schoology user create endpoint.
Generate a list of Schoology users . Parameters record_count : int The number of users to generate . Returns List [ Dict ] A list of JSON - like user objects in a form suitable for submission to the Schoology user create endpoint .
def generate_users(record_count: int) -> List[Dict]:
    assert record_count > 0, "Number of users to generate must be greater than zero"
    logging.info(f"Generating {record_count} users")
    users = []
    for i in range(1, record_count + 1):
        if i % 1000 == 0:
            logging.info(f"{i} users...")
        first_name = fake.first_name()
        users.append(
            {
                "school_id": VALID_SCHOOL_ID,
                "school_uid": str(fake.random_number(digits=8)),
                "name_first": first_name,
                "name_last": fake.last_name(),
                "primary_email": f"{first_name}.{fake.random_number(digits=8)}@{VALID_EMAIL_DOMAIN}",
                "role_id": VALID_ROLE_ID,
            }
        )
    return users
def generate_users ( record_count : int ) -> List [ Dict ] : assert record_count > 0 , "Number of users to generate must be greater than zero" logging . info ( f"Generating {record_count} users" ) users = [ ] for i in range ( 1 , record_count + 1 ) : if i % 1000 == 0 : logging . info ( f"{i} users..." ) first_name = fake . first_name ( ) users . append ( { "school_id" : VALID_SCHOOL_ID , "school_uid" : str ( fake . random_number ( digits = 8 ) ) , "name_first" : first_name , "name_last" : fake . last_name ( ) , "primary_email" : f"{first_name}.{fake.random_number(digits=8)}@{VALID_EMAIL_DOMAIN}" , "role_id" : VALID_ROLE_ID , } ) return users
Generate a list of Schoology users.
Generate a list of Schoology users .
"""
    Generate a list of Schoology users.

    Parameters
    ----------
    record_count : int
        The number of users to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like user objects in a form suitable for submission to the
        Schoology user create endpoint.
    """
record_count
int