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 Python 3

Supported by

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