Mockup data generator library.
Project description
mockalot
:warning: Work In Progress: Library still in very early stages!
Sample data generator library.
The motivation to create this project was the high number of limitations for similar web apps in the free tier. This is easy to run locally, at Jupyter or even have it as a library for other projects.
Features
This is a library to help with sample data generation in a number of different ways:
- Modular generators to help you get single random values
- Full-scope class to generate batches of data
- Modular writers to have your sample data writen directly into the most popular formats.
Usage
from mockalot import Mockalot
from mockalot.generators import EmailGenerator, UUIDGenerator, NameGenerator
from mockalot.writers import CSVWriter
mocker = Mockalot()
mocker.set_config("sample_size", 20000) \
.set_column("id", UUIDGenerator, {}) \
.set_column("name", NameGenerator, {}) \
.set_column("email", EmailGenerator, {}) \
.set_writer(CSVWriter, {"output_filename": "users"})
mocker.run()
The snipped above will create a CSV file of 20k lines, consisted of 3 columns(id, name and email), written into ./output/users.csv
.
There are more usage examples here.
Roadmap
You can see the project's roadmap here.
Author
License
mockalot is available under the MIT license. See the LICENSE file for more info.
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
File details
Details for the file mockalot-0.3.1.tar.gz
.
File metadata
- Download URL: mockalot-0.3.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8d2c997c511b35ede088f86ee77ddc6a75b98a52c94381b18ac5f6c9b2abdd |
|
MD5 | 126bd10edf8f396ac188db43f6532a52 |
|
BLAKE2b-256 | 064684189a1f0d2b380dac4ffd51be4c0726762e6a410017bf8bcf3e5aa1c39f |
File details
Details for the file mockalot-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: mockalot-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfdb7ba4652f965df7cdb3d8183dd58ce6613f52af125fde45c51e2e26de3dc6 |
|
MD5 | 575c867fe53134d17bb1de4a9710280d |
|
BLAKE2b-256 | 9e6a39eeeb434681ae85be15f05835df14d1497c2db526232643fd00b2581832 |