Skip to main content

Simple, unique list gatherer, with *args for passable blacklist check and optional list_in for automated sorting against blacklist/s

Project description

Gather Unique

Simple, unique list gatherer, with *args for passable blacklist check and optional list_in for automated sorting against blacklist/s

Installation

pip install gather_unique

Usage

from gatherunique import GatherUnique
gather = GatherUnique()
head = "Header to display"

# Unique list from stdin, no header
uniq1 = gather.run()

# Unique list from stdin, with provided blacklist and header
uniq2 = gather.run(['1', '2', '3', '4', '5'], header=head )

# Unique list from list_in= against provided blacklist
uniq3 = gather.run(['1', '2', '3', '4', '5'], list_in=['6', '6', '1', '2'])

Note that args are considered blacklists by default. Use 'header=' and 'list_in=' to differentiate

Project details


Release history Release notifications

Download files

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

Files for gatherunique, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size gatherunique-0.1.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gatherunique-0.1.0.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page