{"id":9734,"library":"faker-edu","title":"Faker-Edu","description":"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.","status":"active","version":"1.1.0","language":"en","source_language":"en","source_url":"https://github.com/SFDO-Community-Sprints/Snowfakery-Edu","tags":["faker","data generation","education","testing","provider"],"install":[{"cmd":"pip install faker-edu","lang":"bash","label":"Install Faker-Edu"}],"dependencies":[{"reason":"Faker-Edu is a provider for the Faker library and requires it to function.","package":"faker","optional":false}],"imports":[{"note":"The main provider class is directly accessible from the top-level package and should be aliased for clarity when added to Faker.","wrong":"from faker_edu.provider import EduProvider","symbol":"Provider","correct":"from faker_edu import Provider as EduProvider"},{"note":"The base Faker class is required to use faker-edu providers.","symbol":"Faker","correct":"from faker import Faker"}],"quickstart":{"code":"from faker import Faker\nfrom faker_edu import Provider as EduProvider\n\n# Initialize Faker\nfake = Faker()\n\n# Add the Faker-Edu provider\nfake.add_provider(EduProvider)\n\n# Generate fake educational data\nprint(f\"High School: {fake.high_school()}\")\nprint(f\"College: {fake.college()}\")\nprint(f\"Academic Discipline: {fake.academic_discipline()}\")\nprint(f\"Facility: {fake.facility()}\")\nprint(f\"Sport: {fake.sport()}\")\n","lang":"python","description":"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."},"warnings":[{"fix":"Always include `fake.add_provider(EduProvider)` after initializing `Faker()` and importing `EduProvider`.","message":"After installing 'faker-edu', you must explicitly add its 'Provider' class to your Faker instance using `fake.add_provider()`.","severity":"gotcha","affected_versions":"1.0.0+"},{"fix":"Run `pip install faker` if you haven't already, in addition to `pip install faker-edu`.","message":"Ensure you have the base 'faker' library installed. 'faker-edu' is a provider and depends on 'faker' to function.","severity":"gotcha","affected_versions":"1.0.0+"}],"env_vars":null,"last_verified":"2026-04-17T00:00:00.000Z","next_check":"2026-07-16T00:00:00.000Z","problems":[{"fix":"Add the provider using `fake.add_provider(EduProvider)` after initializing your `Faker` object.","cause":"The faker-edu provider has not been added to the Faker instance.","error":"AttributeError: 'Generator' object has no attribute 'high_school'"},{"fix":"Install the package: `pip install faker-edu`.","cause":"The `faker-edu` library is not installed in your current Python environment.","error":"ModuleNotFoundError: No module named 'faker_edu'"},{"fix":"Install the base Faker library: `pip install faker`.","cause":"The base `faker` library, which `faker-edu` depends on, is not installed.","error":"ModuleNotFoundError: No module named 'faker'"}]}