Simple whitelist/blacklist filtering functions
Project description
bwfilters
Simple whitelist/blacklist filter structures.
from bwfilters import BWFilter
data = ['good', 'nice', 'bad']
my_filter = BWFilter()
my_filter.whitelist = ['good', 'nice']
my_filter.filter(lambda x: x, data)
>>> ['good', 'nice']
Installation
pip install bwfilters
License
This software is distributed under the General Public License v2, more information available at the Free Software Foundation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bwfilters-0.1.0.tar.gz
(39.4 kB
view details)
Built Distribution
bwfilters-0.1.0-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file bwfilters-0.1.0.tar.gz
.
File metadata
- Download URL: bwfilters-0.1.0.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f53352c8b0dfe3a615e982f06d595e9a2b73fef01b87629494be91b6c94610 |
|
MD5 | 1e63b258a51fa6ce3e192998e77ea534 |
|
BLAKE2b-256 | 09efc8e174020b23964185a68ac224db4b13125fa8fba46cded08c590e1ebf9b |
File details
Details for the file bwfilters-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: bwfilters-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4f49419fba7f5c53dd4d7123181311c4a4dccd3078bde878fa6a1f6c1e958c |
|
MD5 | 8f916d412721bb2f565cee2640d03091 |
|
BLAKE2b-256 | b84f254a1b5d52a3a07e6234c9c9ecba6bea1195ef0d28ba26018c19cde980a8 |