by' and 'per' are prepositions of measure. Their main difference is in the factors they measure. 'By' shows measurements and quantity. 'Per' measures rates and prices.
The prepositions of the source are those which indicate the source of something. The most commonly used examples of these are by and from