Most of the Wiki articles on scales and chords describe them in multiple notations. Most notations start with some reference set of notes. For example 1 3 5
to describe a triad that works on both a major and minor scale. Or 1 b3 5
to descibe a minor chord on a major scale.
But it sounds like you want a notation relative to the chromatic scale, or semitone counts. So a major scale would be 0 2 4 5 7 9 11
, and minor 0 2 3 ...
, or alternatively 2 2 1 2 2 2 1
to describe the steps.
The pitch constellations article shows a lot of this information in a nice graphical form. You could easily translate that to Python lists.
https://en.wikipedia.org/wiki/Pitch_constellation
A while back I wrote myself a little Python script to generate guitar fretboard patterns. I identified all notes relative to the lowest note, mapped those onto the 6 strings. Octaves are modulus 12.