Skip to main content

Education Faker Community Provider

Project description

Education provider for Faker

Tests Maintainability Test Coverage


faker_education is a provider for the Faker Python package, and a fork of I would like to thank the maintainer of that repository, since I used their structure to create this one.


faker_education provides education related fake data for testing purposes. The definition of "fake" in this context really means "random," as the public institutions including names, districts, states, and other information are real. However, I make no claims about accuracy, so do not use this as location data!

The data was provided for free from the authoritative source published May 2, 2022.


Install with pip:

pip install faker_education

Add as a provider to your Faker instance:

from faker import Faker
from faker_education import SchoolProvider

If you already use faker, you probably know the conventional use is:

fake = Faker()

School Object

>>> fake.school_object()
    "school": "Craig Elementary",
    "district": "Craig City School District",
    "level": "Elementary",
    "type": "Regular school",
    "state": "AK",
    "nces_id": "20009000629",

>>> fake.school_name()
'Glendening Elementary School'

School NCES IDs

>>> fake.school_nces_id()


>>> fake.school_district()


>>> fake.school_level()


>>> fake.school_type()
'Career and Technical School'


>>> fake.school_state()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faker_education-1.2.1.tar.gz (1.7 MB view hashes)

Uploaded Source

Built Distribution

faker_education-1.2.1-py2.py3-none-any.whl (1.8 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page