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


Download files

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

Source Distribution

gatherunique-0.1.0.tar.gz (2.1 kB view hashes)

Uploaded source

Built Distribution

gatherunique-0.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page