Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2017 20:15:20 +0000 (UTC)
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455143 - in head/devel: . py-fuzzywuzzy
Message-ID:  <201711292015.vATKFLjr065967@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dvl
Date: Wed Nov 29 20:15:20 2017
New Revision: 455143
URL: https://svnweb.freebsd.org/changeset/ports/455143

Log:
  Fuzzy string matching like a boss. It uses Levenshtein Distance to
  calculate the differences between sequences in a simple-to-use
  package.

Added:
  head/devel/py-fuzzywuzzy/
  head/devel/py-fuzzywuzzy/Makefile   (contents, props changed)
  head/devel/py-fuzzywuzzy/distinfo   (contents, props changed)
  head/devel/py-fuzzywuzzy/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Nov 29 19:54:33 2017	(r455142)
+++ head/devel/Makefile	Wed Nov 29 20:15:20 2017	(r455143)
@@ -4440,6 +4440,7 @@
     SUBDIR += py-future
     SUBDIR += py-futures
     SUBDIR += py-futurist
+    SUBDIR += py-fuzzywuzzy
     SUBDIR += py-game
     SUBDIR += py-game_sdl2
     SUBDIR += py-gamin

Added: head/devel/py-fuzzywuzzy/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-fuzzywuzzy/Makefile	Wed Nov 29 20:15:20 2017	(r455143)
@@ -0,0 +1,19 @@
+# Created by: Dan Langille <dvl@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	fuzzywuzzy
+PORTVERSION=	0.15.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	dvl@FreeBSD.org
+COMMENT=	Fuzzy string matching using Levenshtein Distance
+
+LICENSE=	GPL
+LICENSE_FILE=	LICENSE.txt
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+.include <bsd.port.mk>

Added: head/devel/py-fuzzywuzzy/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-fuzzywuzzy/distinfo	Wed Nov 29 20:15:20 2017	(r455143)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511986177
+SHA256 (fuzzywuzzy-0.15.1.tar.gz) = 3ed1a125d682208aa327516eb56fc69cff76215230efa0792afd1f3cb6975214
+SIZE (fuzzywuzzy-0.15.1.tar.gz) = 26693

Added: head/devel/py-fuzzywuzzy/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-fuzzywuzzy/pkg-descr	Wed Nov 29 20:15:20 2017	(r455143)
@@ -0,0 +1,21 @@
+Fuzzy string matching like a boss. It uses Levenshtein Distance to calculate
+the differences between sequences in a simple-to-use package.
+
+Simple Ratio
+
+>>> fuzz.ratio("this is a test", "this is a test!")
+    97
+
+Partial Ratio
+
+>>> fuzz.partial_ratio("this is a test", "this is a test!")
+    100
+
+Token Sort Ratio
+
+>>> fuzz.ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
+    91
+>>> fuzz.token_sort_ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
+    100
+
+WWW: https://pypi.python.org/pypi/naiveBayesClassifier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711292015.vATKFLjr065967>