Skip to main content

Education Faker Community Provider

Project description

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.district()
'Sichuan Airlines'

Level

>>> fake.school_level()
'Elementary'

Type

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

State

>>> fake.school_state()
'KY'

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.1.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faker_education-1.1-py2.py3-none-any.whl (1.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file faker_education-1.1.tar.gz.

File metadata

  • Download URL: faker_education-1.1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for faker_education-1.1.tar.gz
Algorithm Hash digest
SHA256 7022bf707f2fe72b1be0487ce6b4daf4635adfd87b8ec6f726090cfb26ce497a
MD5 cc8ca831d5391ce522d9fca9e5c06a6f
BLAKE2b-256 9c80591ec0628740daed1d18718a0d0b8f02de68fe7e90c7f9299a442605b3e7

See more details on using hashes here.

File details

Details for the file faker_education-1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for faker_education-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f707979475a86999d9bcf9e69dcf9ec98a9e64c6343ee797261009050d5893f4
MD5 2390b0c1b54e502b883e12716609780f
BLAKE2b-256 dbd7ba35ae1f6aeb8049aca565913fef323eb0807ebbfc6f1b153a56e44c3c00

See more details on using hashes here.

Supported by

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