A lightweight CLI to mock DB schemas locally
Project description
MockIt 🚀
Replicate cloud database schemas locally with high-fidelity synthetic data.
MockIt is a CLI-first developer tool designed for Data Engineers who want to escape the high costs and latency of testing against production cloud warehouses like AWS Redshift or Snowflake.
🌟 Key Features
- Schema Reflection: Automatically inspects source tables and clones their structure (columns, types, nullability) to a local target.
- Smart Type Mapping: Intelligently maps SQL types to relevant
Fakerproviders (e.g.,JSONcolumns get JSON objects,VARCHAR(email)gets realistic email addresses). - Constraint Stripping: Automatically removes Foreign Key constraints during local replication to allow for isolated table testing.
- Identity Management: Handles
SERIALandIDENTITYcolumns by skipping manual inserts, allowing the local database to manage primary keys. - Transaction Safety: Built on SQLAlchemy 2.0 for robust, atomic data injections.
🚀 Installation
Install MockIt via pip:
pip install mockit
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mockit_sql_engine-0.1.0.tar.gz.
File metadata
- Download URL: mockit_sql_engine-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7829d072f99a10102279926183bec553578d789aa4830f87114da7b8848fb1
|
|
| MD5 |
ccd6a1aebe3bf230caac13d3d83e5eba
|
|
| BLAKE2b-256 |
6cb067ef86f7dca6fb3aa395c6ce9961a175594188a521eb3dfeaf4e7f3665c0
|
File details
Details for the file mockit_sql_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mockit_sql_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c8766662487a69c7943b6c55a2ebde18e2baada49eac225c45a118a8f89b7c
|
|
| MD5 |
0b695254d831e4c75c425ae88dc61171
|
|
| BLAKE2b-256 |
5db2f24ed0577b66b413eb9e8997183706be8202ce5000cc1632f5a17438b3db
|