Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

sinapsis-polyfuzz

Latest version: v1.0.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: sinapsis-dev
56 Stars
14 Forks
1 Versions
24 Downloads
Python Repo language

Scan summary

sinapsis-polyfuzz was last scanned on 26 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 26 Nov 2026.
  • Findings: No rules fired in version 1.0.0.
  • Downloads: 24 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 26 Nov 2026 No rules fired

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Sinapsis PolyFuzz provides a powerful and flexible implementation for fuzzy string matching and semantic similarity matching. It integrates PolyFuzz models into Sinapsis templates, enabling string matching pipelines with various backends including TF-IDF, Edit Distance, RapidFuzz, Sentence-BERT, Flair (🤗 Transformers, FastText, GloVe), Gensim, spaCy, and Universal Sentence Encoder.

Install using your package manager of choice. We encourage the use of uv

Example with uv:

  uv pip install sinapsis-polyfuzz  

or with raw pip:

  pip install sinapsis-polyfuzz  
Optional Dependencies

PolyFuzz supports multiple embedding backends. Install the extras you need:

# Sentence-BERT embeddings
uv pip install "sinapsis-polyfuzz[sbert]"  

# Flair embeddings
uv pip install "sinapsis-polyfuzz[flair]"  

# Word2Vec embeddings
uv pip install "sinapsis-polyfuzz[gensim]" 

# Universal Sentence Encoder
uv pip install "sinapsis-polyfuzz[use]"  

# FastText embeddings
uv pip install "sinapsis-polyfuzz[fast]"  

# spaCy for text processing
uv pip install "sinapsis-polyfuzz[spacy]"  

# Install all extras
uv pip install "sinapsis-polyfuzz[all]" 

This module includes multiple templates tailored for different fuzzy matching approaches:

  • TFIDFWrapper: Classic TF-IDF based fuzzy string matching using character n-grams and cosine similarity.
  • EditDistanceWrapper: Edit distance-based matching with customizable distance functions.
  • RapidFuzzWrapper: Fast implementation of fuzzy string matching (fuzzywuzzy alternative) with MIT license.
  • EmbeddingsWrapper: Flair-based embeddings matching supporting all 🤗 Transformers models.
  • SentenceTransformersWrapper: Sentence-BERT embeddings for semantic similarity using sentence-transformers.
  • GensimEmbeddingsWrapper: Word embeddings matching using Gensim (e.g., Word2Vec, GloVe).
  • SpacyEmbeddingsWrapper: spaCy embeddings for linguistic similarity matching.
  • USEEmbeddingsWrapper: Universal Sentence Encoder (USE) for deep semantic similarity using TensorFlow Hub.
  • *PairWrapper (e.g. TFIDFPairWrapper, EditDistancePairWrapper, RapidFuzzPairWrapper, ...): Paired-matching variants of every matcher. Instead of a static to_list, they match a column of one DataFramePacket against a column of another (selected by source or index) and append a From/To/Similarity matches packet. They short-circuit (return the container unchanged) when the reference column is empty, and expose a backend-independent min_similarity post-filter that drops weak matches (use this rather than the matcher's own threshold, which only some backends honor). For short alphanumeric codes, RapidFuzzPairWrapper is the most reliable — unlike n-gram TF-IDF it does not rank a single-character substitution (e.g. KML029→KML028) above a formatting variant (KML029→KML29).
  • ExactMatch: Splits reference values into exact (normalized) matches against a target column and a non-exact residual. Emits an exact_matches packet (From/To/Similarity = 1.0) and a no_exact_matches residual packet to feed a downstream fuzzy *PairWrapper.

[!TIP] Use CLI command sinx-venv templates show-all to show a list with all the available Template names installed with Sinapsis PolyFuzz.

All templates share the following attributes defined in PolyfuzzBaseAttributes:

  • target_column (str, required): The name of the column in the DataFrame to be used as the source for matching.
  • to_list (list[str], optional): A list of strings to match against. If not provided, the model will match within the target column itself.
  • overwrite (bool, optional): Whether to overwrite the original packet content with results. If False, creates new packets. Defaults to False.

[!TIP] Use CLI command sinx-venv templates example-config TEMPLATE_NAME to produce an example Agent config for the Template specified in TEMPLATE_NAME.

For example, for TFIDFWrapper use sinx-venv templates example-config TFIDFWrapper to produce an example config like:

agent:
  name: my_test_agent
templates:
- template_name: InputTemplate
  class_name: InputTemplate
  attributes: {}
- template_name: TFIDFWrapper
  class_name: TFIDFWrapper
  template_input: InputTemplate
  attributes:
    target_column: '`replace_me:<class ''str''>`'
    to_list: null
    overwrite: false
    tfidf_init:
      n_gram_range: !!python/tuple
      - 3
      - 3
      clean_string: true
      min_similarity: 0.75
      top_n: 1
      cosine_method: sparse
      model_id: null
      remove_space_ngrams: true

Below is an example YAML configuration for fuzzy string matching using TF-IDF. In this example, we define an agent named my_test_agent and configure a matching template to find similar strings between a source column and a target list.

agent:
  name: my_test_agent
  description: "Agent utilizing TF-IDF for fuzzy string matching."

templates:
  - template_name: InputTemplate
    class_name: InputTemplate
    attributes: {}

  - template_name: CSVDatasetReader
    class_name: CSVDatasetReader
    template_input: InputTemplate
    attributes:
      root_dir: "artifacts"
      path_to_csv: "example.csv"
      store_as_time_series: false

  - template_name: TFIDFWrapper
    class_name: TFIDFWrapper
    template_input: CSVDatasetReader
    attributes:
      target_column: "from_list"
      to_list:
        - "Apple Inc"
        - "Microsoft Corporation"
        - "Google LLC"
        - "Amazon.com"
        - "Netflix Inc"
        - "Tesla Motors"
        - "Meta Platforms"
        - "NVIDIA Corp"
        - "Intel Corp"
      overwrite: true
      tfidf_init:
        n_gram_range:
          - 3
          - 3
        clean_string: true
        min_similarity: 0.5
        top_n: 1
        cosine_method: sparse
        remove_space_ngrams: true

This configuration defines an agent and a sequence of templates to perform fuzzy string matching:

  1. InputTemplate: Entry point for the pipeline.
  2. CSVDatasetReader: Reads a CSV file containing strings to match (from sinapsis-data-readers).
  3. TFIDFMatcher: Performs fuzzy matching using TF-IDF with character n-grams, minimum similarity of 0.5, returning top 1 matches.

[!IMPORTANT] The CSVDatasetReader template corresponds to sinapsis-data-readers, If you want to use the example, please make sure you install the package.

The to_list attribute specifies the reference strings to match against. If omitted, the model will match strings within the target column against themselves.

To run the config, use the CLI:

sinx-venv jobs run name_of_config.yml

License

Sinapsis open-source components are available under your choice of the MIT License; or the Apache License 2.0 unless otherwise noted.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases sinapsis-polyfuzz

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229