Skip to main content

Education provider for Faker

Tests Maintainability Test Coverage

Acknowlegements

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

Description

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 https://data-nces.opendata.arcgis.com/ published May 2, 2022.

Installation

Install with pip:

pip install faker_education

Add as a provider to your Faker instance:

from faker import Faker
from faker_education import SchoolProvider
fake.add_provider(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()
'390469702730'

Districts

>>> fake.school_district()
'Dighton-Rehoboth'

Level

>>> fake.school_level()
'Elementary'

Type

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

State

>>> fake.school_state()
'KY'

Metadata

Release files for faker_education 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker_education 1.2
File Size Uploaded
faker_education-1.2.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for faker_education 1.2
File Interpreter ABI Platform
faker_education-1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 3.6 MB

Release files / faker_education-1.2.tar.gz

Download URL faker_education-1.2.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
46ca16fffbc13a1fe73bbcc783c7e8da00ec1a0b7d1e62a8bc900e4236050cd4
BLAKE2b-256 checksum
How to use checksums
bb5b8fae803ef31fe64ad2bf3871d2eed20f4e5b504ad73deb664a860dd6756f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / faker_education-1.2-py2.py3-none-any.whl

Download URL faker_education-1.2-py2.py3-none-any.whl
Size 1.8 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2fae1a15cf733b4f97bbfebdb54bd8ab03d35688df54156f5deb8103819f96ec
BLAKE2b-256 checksum
How to use checksums
92497d5cef7e723fb59c6325782dc1d193037fe67eeb375686175ce32863a0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release history Release notifications | RSS feed

1.2.1

2 release files

This release

1.2 This release

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page