Weightless Neural Networks library (wnnlib)
Setup
Clone the repository:
git clone https://github.com/stivenschwanz/wnnlib
cd wnnlib
Create the virtual environment:
pip3 install virtualenv
python3 -m venv .venv
Add the source folder permanently to the Python path:
echo "$(pwd)/src" > `echo $VIRTUAL_ENV/lib/python*/site-packages/`src.pth
Activate the virtual environment:
source .venv/bin/activate
Install required packages:
pip3 install -r requirements.txt
Run experiments
Activate the virtual environment:
source .venv/bin/activate
Toy anomaly detection problems:
python3 -m unittest src/wnnlib/algos/NPCLAD.py
Run unit tests
Test VGRAM node:
python3 -m unittest src/wnnlib/vgram/VGRAMNode.py
Test VGRAM array:
python3 -m unittest src/wnnlib/vgram/VGRAMArray.py
Test fixed scalar codec:
python3 -m unittest src/wnnlib/codecs/FixedScalarCodec.py
Test adaptive scalar codec:
python3 -m unittest src/wnnlib/codecs/AdaptiveScalarCodec.py
Test flex scalar codec:
python3 -m unittest src/wnnlib/codecs/FlexScalarCodec.py
Test KD-tree vector codec:
python3 -m unittest src/wnnlib/codecs/KDTree.py
Test binary utilities:
python3 -m unittest src/wnnlib/utils/BitUtils.py
Generate distribution archives
Make sure you have the latest version of PyPA’s build installed:
python3 -m pip install --upgrade build
Build the distribution archives:
python3 -m build
Install twine to upload the distribution packages:
python3 -m pip install --upgrade twine
Upload the distribution packages:
python3 -m twine upload --repository testpypi dist/*
Metadata
Release files for wnnlib 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 | |
|---|---|---|---|
| wnnlib-0.1.0.tar.gz | 46.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wnnlib-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.9 kB
Release files / wnnlib-0.1.0.tar.gz
| Download URL | wnnlib-0.1.0.tar.gz |
|---|---|
| Size | 46.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c04894aaee9e0facfdbb60f45c70f3bbb317923ca52217dba33b23bc8dd71906
|
|
BLAKE2b-256 checksum How to use checksums |
ff6fb08b22002be6b6d2cf252273f7944971be680e1d2330b6d05e0d440dc64e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / wnnlib-0.1.0-py3-none-any.whl
| Download URL | wnnlib-0.1.0-py3-none-any.whl |
|---|---|
| Size | 55.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f00551e9509988aa03c1c1ac0616c0c688a84b19f19fc3fb35d5724c6f9ce38b
|
|
BLAKE2b-256 checksum How to use checksums |
827e5a2fe3bf989b0dfb76a509ecb63561c07516f1e9e6ee56f694b7277932a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency log