HUB
Sign inSign up

larvit/fejkdata

By larvit

•Updated about 20 hours ago

Fake data for tests. Related values match, like a postcode and its city. CSV, SQL or JSON

Image
Developer tools
0

1.7K

larvit/fejkdata repository overview

fejkdata makes fake test data. Write a JSON template and run one command. You get everything from a single value to a million rows, as CSV, SQL or JSON.

Related values stay related. A person's name, id, email and address match. So do a postcode and its city. Where possible, data like national ids passes validation. Where the issuer publishes test numbers, we use those, so no real person has them. If your template is wrong, the run stops before the first row. The error says what is wrong and often how to fix it.

The image runs the fejkdata CLI: it reads a template on stdin and prints it rendered.

echo '{/sv_SE.person}' | docker run --rm -i larvit/fejkdata                # Sara Eriksson
echo '{/sv_SE.address}' | docker run --rm -i larvit/fejkdata --seed 42     # the same address every run
docker run --rm larvit/fejkdata --list                                     # every path the data offers

Tags: latest, and one per release, such as 0.1.0. Seeded output can change between versions, so pin one where you compare it. In CI on shared runners, pull ghcr.io/larvit/fejkdata instead: Docker Hub limits anonymous pulls per IP address.

Documentation and source: https://github.com/larvit/fejkdata⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:e81f17f4c…
Size
17.8 MB
Last updated
about 20 hours ago
docker pull larvit/fejkdata:latest