Python, Government, and Contracts: providing a tool to investigate corruption @NorthBayPython
Python, Government, and Contracts: providing a tool to investigate corruption  @NorthBayPython
Uploaded November 2019 | Updated September 2026, 22 minutes ago
Froilán Irizarry Rivera

2019.northbaypython.org/schedule/presentation/13

In the two years after Hurricane Maria struck Puerto Rico there has been a sharp increase in investigative journalism on the island. Most of these investigations have been around questionable contracts awarded by different government entities and officials in Puerto Rico. No-bid contracts like the ones award to White Fish and later to Cobra Acquisitions have generated national outrage. Lack of transparency, costly mismanagement, and abuse of power can be found throughout.

The Office of the Comptroller of Puerto Rico has built a tool that lets you search and download contract documents (after they’ve been redacted of sensitive information). While it serves its purpose of making this information available, the tool does not permit any mass data analysis or download. In less than a week we were able to release a very early version of our tool to improve this.

Our goal was to present a "better" way to search and use this data, create a sustainable project that could be easily used, while also keeping effort and cost to a minimum. For all these reasons we landed on using Python and Django. Django and the ecosystem around it presents an amazing opportunity to minimize effort and cost for a civic tech project while providing a robust way to manage the processes and data of a project like ContratosPR. Django's admin give use a central place to glance which contract documents need to be requested, OCR'ed, and provides the tools to execute the request process. All of this in combination with great docs and an amazing community made them a clear choice.

In the years after Hurricane Maria there has been a sharp increase in investigative journalism in Puerto Rico. Most of these investigations have been around questionable contracts awarded by different government entities and officials. We've used Python and Django to create a tool that consumes an unwieldy government site to make this data more accessible to journalist and citizens.

A Python conference north of the Golden Gate


North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.

If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.

Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.

Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1

Sun Nov 3 17:00:00 2019 at Mystic Theatre
Python, Government, and Contracts: providing a tool to investigate corruptionCrisis (Technical) Communication: Teaching Survival Skills You Didn’t Know... - Margaret Fero - 2026Back to the Future of Hypermedia in Python - Mario Munoz (North Bay Python 2023)Automate Your City Data with Python - Philip James (North Bay Python 2023)Hi! My name is...Hypothesis Levels Up: codegen, observability, fault localization, and a black-magic backendIt’s About Ethics in AI Alignment – Resistance in the Age of AI-Governed SpeechCall C code quickly and compatibly with CFFIBridges, or Benefits of Connecting Our Communities - Mario Munoz (Nbpy2024)Colossal Cave Adventure in PythonSome Assembly Required: Lessons from Lego, KNex, & Mario Kart - Jeremy Tanner (Nbpy2025)Quantifying Nebraska - Adam Harvey (Nbpy2024)
North Bay Python |

Python, Government, and Contracts: providing a tool to investigate corruption

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER