Faker-Edu

1.1.0 · active · verified Fri Apr 17

Faker-Edu is a provider for the Faker library, extending its capabilities to generate fake information related to educational institutions and academics. It's currently at version 1.1.0 and has a moderate release cadence, focusing on adding new generators. It's designed to be used in conjunction with the main Faker library for data generation in testing and development.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize the Faker library, add the Faker-Edu provider, and then generate various types of educational data such as high school names, college names, academic disciplines, facilities, and sports.

from faker import Faker
from faker_edu import Provider as EduProvider

# Initialize Faker
fake = Faker()

# Add the Faker-Edu provider
fake.add_provider(EduProvider)

# Generate fake educational data
print(f"High School: {fake.high_school()}")
print(f"College: {fake.college()}")
print(f"Academic Discipline: {fake.academic_discipline()}")
print(f"Facility: {fake.facility()}")
print(f"Sport: {fake.sport()}")

view raw JSON →