I am able to share 'purchased' songs via home sharing but not the whole library. If home sharing does not allow you to share other than purchased
Huh? Home sharing lets you share music sourced from places other than the iTunes Store, it's family sharing that is set up for servicing iTunes Store music. Home Sharing does have its restrictions (one Apple ID only) but it isn't intended that you be able to share everything with everybody in the world. If you're trying to share within a household get a flash drive.
Use Home Sharing to share iTunes content with other devices - Apple Support - https://support.apple.com/HT202190 - "Home Sharing lets you share and stream content from your computer’s iTunes library to other computers, iOS devices, and Apple TVs."
Share your iTunes library over your home network - Apple Support - https://support.apple.com/HT201779 - about Music Sharing and Home Sharing