Metamock
Features
- Generate synthetic data from a Datadoc metadata document.
- Column data types will correspond with those specified in the metadata.
- Where Statistics Norway's classification system Klass is referenced, data will be generated from the codes.
- Choose the output file format from
json,csvorparquet. - Placeholder data is used where nothing more specific can be found in the metadata.
Example
metamock --datadoc-document tests/data/person_data_v1__DOC.json --output-path ~/metamock/output --output-filename datadoc_example --file-type csv
csvlook --delimiter ";" --max-columns 10 --max-rows 2 ~/metamock/output/datadoc_example.csv
| a | pers_id | tidspunkt | sivilstand | alm_inntekt | ... |
| - | -------------- | ---------- | ---------- | ----------- | --- |
| 0 | et | 1977-08-22 | fugiat | 696 | ... |
| 1 | nam | 1986-08-05 | cum | 692 | ... |
| 2 | exercitationem | 2000-06-17 | illum | 476 | ... |
| 3 | dignissimos | 1985-12-12 | ab | 642 | ... |
| 4 | ipsa | 2023-02-04 | nihil | 189 | ... |
| ... | ... | ... | ... | ... | ... |
Installation
You can install Metamock via pipx:
pipx install ssb-metamock
Usage
Please see the Reference Guide for details.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Metamock is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from Statistics Norway's SSB PyPI Template.
Metadata
Release files for ssb-metamock 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 | |
|---|---|---|---|
| ssb_metamock-0.1.0.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssb_metamock-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / ssb_metamock-0.1.0.tar.gz
| Download URL | ssb_metamock-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
974cdf774c8004b0cc1fb6d92298459661897192e06e6951e14914a63186811e
|
|
BLAKE2b-256 checksum How to use checksums |
4aa50aa69019e4be7a0b98839cda45eb33ad9caffb3b5841749c3402aaa89d70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / ssb_metamock-0.1.0-py3-none-any.whl
| Download URL | ssb_metamock-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3519c63f5bfafaf077ae67cff41e9f51fb4fc3442851ecc6513ed1fc348e9c3a
|
|
BLAKE2b-256 checksum How to use checksums |
38b235732311f5d660f2251f56389f51162f194b18c2de32de13f1859bfb4350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|