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.
Metadata
Release files for bwfilters 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bwfilters-0.1.0.tar.gz | 39.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bwfilters-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.1 kB
Release files / bwfilters-0.1.0.tar.gz
| Download URL | bwfilters-0.1.0.tar.gz |
|---|---|
| Size | 39.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07f53352c8b0dfe3a615e982f06d595e9a2b73fef01b87629494be91b6c94610
|
|
BLAKE2b-256 checksum How to use checksums |
09efc8e174020b23964185a68ac224db4b13125fa8fba46cded08c590e1ebf9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|
Release files / bwfilters-0.1.0-py3-none-any.whl
| Download URL | bwfilters-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a4f49419fba7f5c53dd4d7123181311c4a4dccd3078bde878fa6a1f6c1e958c
|
|
BLAKE2b-256 checksum How to use checksums |
b84f254a1b5d52a3a07e6234c9c9ecba6bea1195ef0d28ba26018c19cde980a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|