Generate synthetic data from datadoc metadata
Project description
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
,csv
orparquet
. - 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssb_metamock-0.1.0.tar.gz
(12.4 kB
view details)
Built Distribution
File details
Details for the file ssb_metamock-0.1.0.tar.gz
.
File metadata
- Download URL: ssb_metamock-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 974cdf774c8004b0cc1fb6d92298459661897192e06e6951e14914a63186811e |
|
MD5 | 8d56d923a000f6296b6b4fcfac55f0e1 |
|
BLAKE2b-256 | 4aa50aa69019e4be7a0b98839cda45eb33ad9caffb3b5841749c3402aaa89d70 |
File details
Details for the file ssb_metamock-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ssb_metamock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3519c63f5bfafaf077ae67cff41e9f51fb4fc3442851ecc6513ed1fc348e9c3a |
|
MD5 | 27b56d0e9eef084b9e00346361bcfa14 |
|
BLAKE2b-256 | 38b235732311f5d660f2251f56389f51162f194b18c2de32de13f1859bfb4350 |