Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Song matching based on textual comparison of attributes.

Project Description


SongPrint is a library that provides functions to locate duplicate songs by performing a textual comparison of the songs’ attributes.

Getting Started


  • Python 2.7


SongPrint can be installed with pip or easy_install:

pip install SongPrint

After installation, the package is available under the name songprint:

>>> import songprint

Sample Usage

A sample script might look like this:

#!/usr/bin/env python

from songprint import match, Song

items = [Song("The Beatles", "Rock and Roll Music"),
         Song("Beatles", "rock & roll music"),
         Song("The beetles", "Rock & Roll Music", duration=150),
         Song("The Beatles", Rocky Raccoon")]

base = Song('beatles', 'rock and roll music', duration=150)

for item in match(base, items):


The sonprint package contains unit tests which can be run from source:

python test
Release History

Release History

This version
History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting