Data Generation Through Specification
Project description
Datacraft
Overview
This is a tool for making data according to specifications. The goal is to separate the structure of the data from the values that populate it. We do this by defining two core concepts: the Data Spec and the Field Spec. A Data Spec is used to define all of the fields that should be generated for a record. The Data Spec does not care about the structure that the data will populate. A single Data Spec could be used to generate JSON, XML, or a csv file. Each field in the Data Spec has its own Field Spec that defines how the values for it should be created. There are a variety of core field types that are used to generate the data for each field. Where the built-in types are not sufficient, there is an easy way to create custom types and handlers for them using Custom Code Loading. The datacraft tool supports templating using the Jinja2 templating engine format.
Data is a key part of any application. Synthetic data can be used to test and exercise a system while it is under
development or modification. By using a Data Spec to generate this synthetic data, it is more compact and easier to
modify, update, and manage. It also lends itself to sharing and reuse. Instead of hosting large data files full of
synthetic test data, you can build Data Specs that encapsulate the information needed to generate the data. If
well-designed, these can be easier to inspect and reason through compared with scanning thousands of lines of a csv
file. datacraft
makes it easy to generate millions or billions of records to use for development and testing of
new or existing systems.
Docs
Find latest documentation and usage information here: datacraft.readthedocs.io
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
Built Distribution
Hashes for datacraft-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0e6ad867d72d5fcd2ef231a49baadbe66305d27e2f99a455748f0a395cfc02 |
|
MD5 | 43991696db57c28b3b4a7bc5eb5230a6 |
|
BLAKE2b-256 | 234d0f8071be172e232ab06a5df7cff5f7bb2073878e16a234b3e015e1910faf |