PyDuplicate
PyDuplicate is a Python package that provides functionality for detecting and identifying duplicates within a given dataset. It offers a bunch of functions to search for duplicate elements, making it easy to identify and handle duplicate entries efficiently.
- Source code: https://github.com/JeanBertinR/PyDuplicate
- Bug reports: https://github.com/JeanBertinR/PyDuplicate/issues
- Report a security vulnerability: https://tidelift.com/docs/security
Requirements
- Python 3.x
- Levenshtein
Installation
You can install the PyDuplicate package using pip. Here's the installation command from your terminal:
pip install PyDuplicate
Make sure you have Python and pip installed on your system before running this command. After the installation, you can import the package in your Python code using the following line:
import PyDuplicate
That's all it takes to install the package and import it into your project.
Usage
Importing the SimilarityScorer module
SimilarityScorer has been designed to calculate a similarity score between two sets of character strings.
To begin, import the package by installing it using pip and importing the SimilarityScorer class in your Python script or interactive session:
from PyDuplicate import SimilarityScorer
Instantiating the SimilarityScorer
Create an instance of the SimilarityScorer class:
scorer = SimilarityScorer()
Calculating the Similarity Score
Use the similarity_score method of the SimilarityScorer instance to calculate the similarity score between two sets of strings:
score = scorer.similarity_score(str_tuple_1, str_tuple_2)
Importance and Applications
The String Similarity Scorer function has several applications across various domains, including:
Text Matching: It can be used for comparing and matching textual data, such as finding duplicate entries in a database or identifying similar documents.
Data Cleansing: It aids in data preprocessing tasks by detecting and handling similar or duplicate records, improving data quality.
Natural Language Processing (NLP): The similarity score can be used as a feature in NLP tasks like text classification, information retrieval, and recommendation systems.
Fuzzy String Matching: The function incorporates fuzzy matching techniques to handle slight variations and inconsistencies in the input strings.
Contributing
Contributions are welcome! If you have any suggestions or find any issues, please open an issue or submit a pull request.
License
This project is licensed under the GPL v3 License.
Metadata
Release files for PyDuplicate 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyDuplicate-0.0.2.tar.gz | 16.1 kB | Without provenance | Details for PyDuplicate-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyDuplicate-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for PyDuplicate-0.0.2-py3-none-any.whl |
Total release size: 32.4 kB
Release files / PyDuplicate-0.0.2.tar.gz
| Download URL | PyDuplicate-0.0.2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6951d23be96f44aafc7ece109077b812c786ef0578954b35987523d39295fe2a
|
|
BLAKE2b-256 checksum How to use checksums |
5cb02eef79a501dc9e5e92d7d872d4151d99c66d1ae1643384eeb2034aa7fbff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / PyDuplicate-0.0.2-py3-none-any.whl
| Download URL | PyDuplicate-0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e454ad135b3613281d6dcbe7b42428df4cd104b448acff7a06d65ea846d1da95
|
|
BLAKE2b-256 checksum How to use checksums |
8e984d971fca312eb9c2beef3727e8f2ff43dd8cf7d87fd356f6bb5c9065ef0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for PyDuplicate 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.