Microaggregation
Fast C++ implementation of microaggregation algorithms for data privacy protection.
Features
- High-performance C++ implementation of SSE dynamic programming
- Python fallback when C++ extension is not available
- Compatible with NumPy arrays
- Timing utilities for performance measurement
Installation
bash pip install microaggregation
Usage
import numpy as np
from microaggregation import calculate_sse_dynamic, calculate_total_variance, get_timing
# Example usage:
my_data = np.random.rand(100, 5)
min_k = 3
sse_value = calculate_sse_dynamic(my_data, min_k)
# sse_value_py_only = calculate_sse_dynamic(my_data, min_k, use_cpp=False) # To force Python
total_var = calculate_total_variance(my_data)
timers = get_timing()
start_wall = timers['wall_time']()
# ... some operation ...
end_wall = timers['wall_time']()
print(f"Wall time: {end_wall - start_wall}")
print(f"SSE: {sse_value}, Total Variance: {total_var}")
print(f"IL: {sse_value / total_var * 100 if total_var != 0 else float('inf')}")
Metadata
Release files for microaggregation 0.1.9
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 |
|---|---|---|---|---|
| microaggregation-0.1.9.tar.gz | 19.7 kB | Without provenance | Details for microaggregation-0.1.9.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| microaggregation-0.1.9-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for microaggregation-0.1.9-cp312-cp312-win_amd64.whl |
| microaggregation-0.1.9-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details for microaggregation-0.1.9-cp311-cp311-win_amd64.whl |
| microaggregation-0.1.9-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details for microaggregation-0.1.9-cp310-cp310-win_amd64.whl |
| microaggregation-0.1.9-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details for microaggregation-0.1.9-cp39-cp39-win_amd64.whl |
| microaggregation-0.1.9-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details for microaggregation-0.1.9-cp38-cp38-win_amd64.whl |
| microaggregation-0.1.9-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details for microaggregation-0.1.9-cp37-cp37m-win_amd64.whl |
Total release size: 396.9 kB
Release files / microaggregation-0.1.9.tar.gz
| Download URL | microaggregation-0.1.9.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb1df2709d92e98891a37632aed95ca69fa65c5add034a52ada7ac388fd53327
|
|
BLAKE2b-256 checksum How to use checksums |
02f4c6b2e9ab9659a4aa73b7ab4a75d611631357e68d2d59b2d817b7bd0ce311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp312-cp312-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 63.8 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9fae5057b59d1369073317468003e12f8c671772ed39f1ac3a9e037e241f2f12
|
|
BLAKE2b-256 checksum How to use checksums |
cddc46a3cf50397ab976b60a0232ae89b5c2372cc88ba4f8147dc0cc0af962cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp311-cp311-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 63.4 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
07092fb6654fd17038fb41b5a770ad575208dee3bb80ae76b444a24255b49393
|
|
BLAKE2b-256 checksum How to use checksums |
02f7e0dbc5b88aa08cf540fafd2f66f5633380614a756906eb16ba92692f64cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp310-cp310-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 62.3 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
47f3e703c0eebbc3e2b71dcd1a8a7ffe20a56a58423619a2afda79f46552e8c6
|
|
BLAKE2b-256 checksum How to use checksums |
28f14c9becc4b5a30b43054742ffe2852f23813f55d0cb92958f7195db8d90da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp39-cp39-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 62.4 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
105631e2127b3d1962004b2a41e9099319a5d7b75fe881188ed5776fc08b7eac
|
|
BLAKE2b-256 checksum How to use checksums |
c5f5d8d60f5231ad9ff5ef48b1caa1f3dcfa4c1237de79fb4ab00e0fa861a9a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp38-cp38-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 62.3 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cf44b3f56e7c65980ee7fd976206b73dc19c02d9b65b4478c3af053b93a010ea
|
|
BLAKE2b-256 checksum How to use checksums |
a749c1325053d49760f275938784d9d26344f727661ce2255ffff3d70301fd0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / microaggregation-0.1.9-cp37-cp37m-win_amd64.whl
| Download URL | microaggregation-0.1.9-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 62.9 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
389ed1e2fdb203309397273e5ed42d929a1775204e54ce4f59a475b2417a970d
|
|
BLAKE2b-256 checksum How to use checksums |
609bca8e17d32414475c6366116daeec71c8d30295b300281f87cbc16e6901b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for microaggregation 0.1.9
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.