Bucket Filter
A filtering library to present data that matches a series of conditional expressions
Bucket filter is a python library that allows creating multiple buckets each linked to a condition and having various data, each identified by a unique ID. It then allows for combining various buckets in a serious of conditinal operators and filters out those IDs that match a given expression.
Currently supported operators is &(AND), ||(OR)
The library currenly only supports Boolean expressions
Example
Lets say there are 3 buckets with conditions c1, c2, c3 as defined below
c1 –> id1, id2, id3
c2 –> id3, id4, id5
c3 –> id2, id3, id6
an expression
C = c1 & (c2 || c3)
would result in
==> C = (id1, id2, id3) & (id3, id4, id5 id2, id6) ==> C = (id2, id3)
NOTE
The library does not evaluate individual conditions, only joins the filters as defined by the expression
The library does an exact expression match, so if while registering one uses hasData=True, the library expects the same expression when evaluating
Standard evaluation rules apply, left to right, expressions in braces are done first
Elements in the bucket MUST have a accessible attribute id else will be evicted out of the bucket
License
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for bucket-filter 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bucket-filter-0.5.tar.gz | 3.5 kB | Without provenance | Details for bucket-filter-0.5.tar.gz |
Release files / bucket-filter-0.5.tar.gz
| Download URL | bucket-filter-0.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abe99fde57139f5eddb1416ce37d598216d6d41a05d77817a5253aaaf19e16c0
|
|
BLAKE2b-256 checksum How to use checksums |
74fc99e8e3cee3d177d9407e8f85822e0a721b284aeb587340a4fbf9b763040d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bucket-filter 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.