PiArgus
This package provides a python wrapper around τ-ARGUS, a program to protect statistical tables. This package takes care of generating all the required metadata and runs τ-ARGUS in the background to do the heavy work.
For this package to work, it is required to install τ-ARGUS locally first. It's also recommended to read the TauArgus manual to understand how it should be used.
Features
- Generate output tables from microdata or tabledata. It is recommended to generate from microdata.
- Metadata can be generated automatically, although using an existing rda-file is also possible.
- It's possible to create hierarchies, codelists, apriori files, recode files all from code or from existing files.
- Basic error checking of input is done before input is supplied to argus.
Feel free to contribute for other TauArgus-features. Feedback is welcome too.
Installing
$ pip install --upgrade piargus
Example
import pandas as pd
import piargus as pa
tau = pa.TauArgus(r'C:\Users\User\Programs\TauArgus4.2.0b5\TauArgus.exe')
input_df = pd.read_csv('data/microdata.csv')
input_data = pa.MicroData(input_df)
output_table = pa.Table(['sbi', 'regio'], 'income', safety_rule="P(10)")
job = pa.Job(input_data, [output_table], directory='tau')
report = tau.run(job)
table_result = output_table.load_result()
print(report)
print(table_result)
Change C:\Users\User\Programs\TauArgus4.2.0b5\TauArgus.exe to the location where argus is installed.
See tutorial for a general introduction.
See Examples for more examples.
See also
The following packages in R offer similar functionality:
Metadata
Release files for piargus 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| piargus-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for piargus-1.0.3-py3-none-any.whl |
Release files / piargus-1.0.3-py3-none-any.whl
| Download URL | piargus-1.0.3-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
924e9fb4754e59a785f21d6d26186021fe0ed3b1097b469ab2e98afc9190b9f5
|
|
BLAKE2b-256 checksum How to use checksums |
e4009a5a115430a02f70f2feb71505f57ed19e7b5093a086b4c5281050d33a01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|
Security for piargus 1.0.3
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.