""" Static data used by SocialNPHS. By "static" I don't mean it doesn't change,
but it comes from a file instead of (directly) from the internet """

from SocialNPHS.data import district_bounds

_district_data = district_bounds.ShapeFileData()

# This first run is slow-ish
district = _district_data.get_district_by_name(
    "New Paltz Central School District"
)

# This second run takes less than 1% of that though, because of caching
district_shape = _district_data.get_shape_by_name(
    "New Paltz Central School District"
)

""" Static data used by SocialNPHS.

By "static" I don't mean it doesn't change, but that it comes from a file
instead of (directly) from the internet.

This includes the interface to the sqlite database.
"""

from SocialNPHS.data import district_bounds

_district_data = district_bounds.ShapeFileData()

# This first run is slow-ish
district = _district_data.get_district_by_name(
    "New Paltz Central School District"
)

# This second run takes less than 1% of that though, because of caching
district_shape = _district_data.get_shape_by_name(
    "New Paltz Central School District"
)

Update data submodule docstring