Adding particle hair and keys in Particle Edit mode via python


The problem is, I would like to manually create hair particles and their keys via script while in Particle Edit mode.
This will be obviously be adding particles to an existing particle system and settings. Similar as the add brush in Particle Edit mode, but would set location of particle and keys.

The goal here is to develop an addon that would add hairs based on mesh geometry.