You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

spaczz

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spaczz - pypi Package Compare versions

Comparing version
0.6.0
to
0.6.1
+3
-6
PKG-INFO
Metadata-Version: 2.1
Name: spaczz
Version: 0.6.0
Version: 0.6.1
Summary: Adds fuzzy matching and additional regex matching support to spaCy.

@@ -18,8 +18,5 @@ Home-page: https://github.com/gandersen101/spaczz

Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: catalogue
Requires-Dist: importlib_metadata ; python_version < "3.8"
Requires-Dist: numpy (>=1.15,<1.22) ; python_version >= "3.7" and python_version < "3.8"
Requires-Dist: numpy (>=1.17.3) ; python_version >= "3.8" and python_version < "3.9"
Requires-Dist: numpy (>=1.19.3) ; python_version >= "3.9" and python_version < "3.10"
Requires-Dist: numpy (>=1.21.2) ; python_version >= "3.10" and python_version < "4.0"
Requires-Dist: rapidfuzz (>=1.0.0)

@@ -53,3 +50,3 @@ Requires-Dist: regex (>=2020.6.8)

- *Regex and token matches now return match ratios.*
- *Support for `python<=3.11,>=3.7`, along with `rapidfuzz>=1.0.0`.
- *Support for `python<=3.11,>=3.7`, along with `rapidfuzz>=1.0.0`.*
- *Dropped support for spaCy v2. Sorry to do this without a deprecation cycle, but I stepped away from this project for a long time.*

@@ -56,0 +53,0 @@ - *Removed support of `"spaczz_"` preprended optional `SpaczzRuler` init arguments. Also, sorry to do this without a deprecation cycle.*

[tool.poetry]
name = "spaczz"
version = "0.6.0"
version = "0.6.1"
description = "Adds fuzzy matching and additional regex matching support to spaCy."

@@ -16,2 +16,6 @@ license = "MIT"

[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.masonry.api"
# Dependencies

@@ -24,8 +28,2 @@

srsly = "*"
numpy = [
{version = ">=1.15, <1.22", python = "~3.7"},
{version = ">=1.17.3", python = "~3.8"},
{version = ">=1.19.3", python = "~3.9"},
{version = ">=1.21.2", python = "^3.10"}
]
rapidfuzz = ">=1.0.0"

@@ -56,6 +54,7 @@ regex = ">=2020.6.8"

## Typechecking
## Type-Checking
[tool.poetry.group.mypy.dependencies]
mypy = ">=0.9"
mypy = ">=1.0"
# Below need to be installed for mypy to be able to type check them.
nox = "*"

@@ -85,4 +84,7 @@ pytest = "*"

# Other Tools
[tool.poetry.group.automation.dependencies]
nox = "*"
# Config
[tool.black]

@@ -135,5 +137,1 @@ extend-exclude = '''

testpaths = ["tests"]
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.masonry.api"

@@ -20,3 +20,3 @@ [![Tests](https://github.com/gandersen101/spaczz/workflows/Lint,%20Typecheck%20and%20Test/badge.svg)](https://github.com/gandersen101/spaczz/actions?workflow=Lint,%20Typecheck%20and%20Test)

- *Regex and token matches now return match ratios.*
- *Support for `python<=3.11,>=3.7`, along with `rapidfuzz>=1.0.0`.
- *Support for `python<=3.11,>=3.7`, along with `rapidfuzz>=1.0.0`.*
- *Dropped support for spaCy v2. Sorry to do this without a deprecation cycle, but I stepped away from this project for a long time.*

@@ -23,0 +23,0 @@ - *Removed support of `"spaczz_"` preprended optional `SpaczzRuler` init arguments. Also, sorry to do this without a deprecation cycle.*

@@ -141,5 +141,5 @@ """`RegexSearcher` searches for phrase-based regex matches in spaCy `Doc` objects."""

end_token = char_to_token_map.get(end - 1)
if start_token and end_token:
if start_token is not None and end_token is not None:
span = Span(doc, start_token, end_token + 1)
return (span, counts)
return None