Create neighbourhood and amenities Pydantic schemas #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Create Pydantic schemas for Toronto neighbourhood, census, crime, and amenities data validation.
Files to Create
portfolio_app/toronto/schemas/neighbourhood.pyNeighbourhoodRecord- Toronto neighbourhood boundary data (AREA_ID, AREA_NAME, geometry)CensusRecord- Census profile data (neighbourhood_id, census_year, population, median_household_income, etc.)CrimeRecord- Crime statistics (neighbourhood_id, year, crime_type enum, count, rate_per_100k)CrimeType- Enum for crime typesportfolio_app/toronto/schemas/amenities.pyAmenityType- Enum (park, school, childcare, transit_stop)AmenityRecord- Amenity records (neighbourhood_id, amenity_type, amenity_name, lat/lon)Update
portfolio_app/toronto/schemas/__init__.pyAcceptance Criteria
list[str],dict[str, Any] | None)Labels
Type/Feature,Priority/High,Component/Backend,Tech/PythonStarting implementation of Pydantic schemas for neighbourhood, census, crime, and amenities data.
Implementation complete:
schemas/neighbourhood.pywithNeighbourhoodRecord,CensusRecord,CrimeRecord,CrimeTypeschemas/amenities.pywithAmenityType,AmenityRecord,AmenityCountschemas/__init__.pywith exports