Welcome to Siege Utilities documentation!๏ƒ

Siege Utilities is a comprehensive Python utilities package with enhanced auto-discovery that automatically imports and makes all functions mutually available across modules.

Note

v3.13.0 (March 2026) โ€” Latest on PyPI.

Key capabilities:

  • First-class geospatial in every DataFrame engine (Pandas, DuckDB, Spark+Sedona, PostGIS)

  • Temporal political models: CongressionalTerm, Seat, Race, ReturnSnapshot

  • Redistricting analysis: Plans, districts, compactness scores, demographics

  • Census data intelligence: API client, boundary downloads, MOE propagation, NAICS/SOC

  • 27 Jupyter notebooks with papermill-based automated testing

  • Tiered Geo Extras: [geo-lite] (no GDAL) / [geo] / [geodjango]

  • Google Workspace Write APIs: Sheets, Docs, Slides, Drive

  • Person/Actor Models: Pydantic-based identity and contact management

  • Report Generation: PDF (ReportLab), PowerPoint, branded multi-client reports

  • Distributed Computing: Spark + Sedona, HDFS operations, DuckDB engine

  • 3442 tests passing, 56% coverage

Install: pip install siege-utilities

Indices and tables๏ƒ