Skip to main content

Handle duplicate in python

Project description

Build Status Coverage Status Documentation Status

The python-duplicate library intend to find and deal with duplicate. Depending on what you need, it can:

  • Find and return the unique or duplicate items* of a list
  • Create a new list of unique items* from a list
  • Find and return the indexes of said items* (act as a feedback)
  • Find the rows (or just PK) of unique or duplicate column for MySQL 8 and PosgreSQL 10

*items can be a list, tuple, dict, number or string

Upcoming improvements

In the future I intend to add support for:

  • JSON
  • Other type of item for list (Object class for example)
  • Handle suppression of duplicate for MySQL and PostgreSQL
  • Handle research of unique / duplicate on more than one table / column / pk
  • Support more version of MySQL and Postgres
  • Support more database type

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-duplicate-1.0.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_duplicate-1.0.4-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-duplicate-1.0.4.tar.gz.

File metadata

  • Download URL: python-duplicate-1.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

File hashes

Hashes for python-duplicate-1.0.4.tar.gz
Algorithm Hash digest
SHA256 accdb7ba74b098daccb50e42304dfe6963ff8a7f524936f80471a7e8766d5cad
MD5 b866c21826f637075175b49a73aa86f0
BLAKE2b-256 21b6ea6f19cc501f5405e267025e0c34429b067964ce4453830db46a16af80f5

See more details on using hashes here.

File details

Details for the file python_duplicate-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: python_duplicate-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

File hashes

Hashes for python_duplicate-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b96b627554c87d6110e0189557784641e1c2d95bfb4b7ea64e9b4c202b93ff73
MD5 5c6ec9d4beff4bb7337880fc648a9ed9
BLAKE2b-256 a977886453c0abba67ed922596b87a850e237a20fe720059051823e632fac0a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page