PYPI PACKAGE AUDIT v1.0.0 Needs Improvement

wccs

Python binding for WCCS (Weighted Credit-Cooldown Sampler)

PyPkgScore wccs
Methodology & Criteria ♥ Donate
540 / 1000
Quick Install
pip install wccs
1. Governance
50/200
2. PEP Metadata
150/200
3. Security
150/200
4. Docs & SEO
60/200
5. CI Engineering
130/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
272
Last 30 days
272
Total (180 days)
272
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 540 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✕ 0 pts
3. Security & Supply Chain150 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem60 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✕ 0 pts
5. Engineering, CI & Quality130 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — wccs

PyPI Metadata v1.0.0
Show full original documentation (English README) ▾

wccs (Python)

Python binding for WCCS, the Weighted Credit-Cooldown Sampler.

This package is a thin ctypes layer over the versioned C ABI. It contains no algorithm logic — all sampling happens in the C core. By default it calls wccs_new_default, which injects the core's deterministic PCG64, so the same seed produces the same sequence in every language (L2).

Install

pip install wccs                # from PyPI: platform wheel, native library included
pip install ./bindings/python   # or from a source checkout

Release wheels bundle the native library inside the wccs package, so nothing else is required. For a source checkout without a bundled library, build it with CMake (cmake -B build && cmake --build build) or point the loader at an existing build:

export WCCS_LIBRARY_PATH=/path/to/libwccs.so   # or .dll / .dylib

Usage

from wccs import Sampler

with Sampler([1, 2, 3, 4], L=3, beta_q=0, R=1000, seed=42) as s:
    for _ in range(10):
        print(s.sample())
    print(s.step, s.total)

Pass rng= (a callable returning a 64-bit integer) to exercise the C ABI's random-source injection via wccs_new. Doing so gives up the L2 guarantee unless every language injects the identical engine.

Errors are raised as wccs.WccsError with a stable .code.

Tests

PYTHONPATH=. python -m unittest discover -s tests -v
PYTHONPATH=. python tests/vector.py     # cross-language vector emitter

License: Apache-2.0