RHY - Home

StatCanPy & EuroStatPy (August 2024)

My current job requires a significant amount of data injection from various government entities. While APIs and wrappers for said APIs are typically available, none of them impressed me (not to say they weren't functional, rather they lacked features that I will explain in a future blog post).

StatCanPy was the first package I published. It is a basic wrapper for StatsCan's web API that allows for text-based search of their publicly available data. The package uses RegEx search to map dataset names to their associated IDs (which is required by the API).

EuroStatPy is almost identical to StatsCanPy from a user perspective. While StatCanPy allows plain text English searches, EuroStatPy allows for searches in English, French, or German. The package has access to over 6900 public datasets published by the European Union's statistical agency eurostat.

Both of these projects are open source & I welcome contribution to them. The repos for can be found here for StatsCanPy and EuroStatPy respectively.

One-Time-Pad Encryption Application (May 2022)

A one-time-pad is a type of encryption that is used to hide the contents of a message. Each letter in the encrypted phrase has a corresponding "one-time-pad" number.

This number is then used to decrypt the message. Each one-time-pad number is a random number, and thus is impossible to guess and is theoretically impossible to crack by brute force. One-time-pads are used to hide messages in email, chat, and other online communication.

The sample application uses TKinter for a simplified GUI. Source code can be found here.

Tweeting your way to Parliament: Quantitative Analysis of Twitter use in the 2022 Ontario Provincial Election (June 2022)

Each month, more than fifteen million Canadians use Twitter - approximately 50% of the nation’s online population (Slater, 2018). Of this group, forty-four percent access the application multiple times a day. The ubiquity of the platform amongst voters is a driving factor in the increased attention from political scientists today.

Given the pervasiveness of the platform, understanding its role in electoral outcomes is of great importance. This research paper seeks to contribute to the grow literature examining the impacts of social media on elections. It does so by examining the impacts of Twitter usage on the 43rd Parliament of Ontario.

The following is a brief extract of a larger research paper conducted during my undergrad at uOttawa. For access to the full paper, please contact me here.