What does HackerNews think of maloja?
Self-hosted music scrobble database to create personal listening statistics and charts
Language:
Python
There are FOSS alternatives to last.fm like majola but player support is almost nonexistent.
And if you don't want to scrobble to last.fm (or listenbrainz) you can self-host Maloja https://github.com/krateng/maloja
If you just like the listening statistics part of lastfm, Maloja is a nice looking self-hostable alternative: https://github.com/krateng/maloja