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.1

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.1
File Size Uploaded Provenance Actions
faker_education-1.2.1.tar.gz 1.7 MB Without provenance Details for faker_education-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 3.5 MB

Release files / faker_education-1.2.1.tar.gz

Download URL faker_education-1.2.1.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
31371dcc7ffc6ae39e248fae8daf8fec2544e3bf50d562278505a874a8df0185
BLAKE2b-256 checksum
How to use checksums
17662cb766fd155e629c08c0775234d0cb611ac59d1123a0c89b28b39bf9ee50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

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

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

Security for faker_education 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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