Skip to main content

A lightweight CLI to mock DB schemas locally

Project description

MockIt 🚀

PyPI version License: MIT

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 Faker providers (e.g., JSON columns 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 SERIAL and IDENTITY columns 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mockit_sql_engine-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mockit_sql_engine-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for mockit_sql_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f7829d072f99a10102279926183bec553578d789aa4830f87114da7b8848fb1
MD5 ccd6a1aebe3bf230caac13d3d83e5eba
BLAKE2b-256 6cb067ef86f7dca6fb3aa395c6ce9961a175594188a521eb3dfeaf4e7f3665c0

See more details on using hashes here.

File details

Details for the file mockit_sql_engine-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mockit_sql_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20c8766662487a69c7943b6c55a2ebde18e2baada49eac225c45a118a8f89b7c
MD5 0b695254d831e4c75c425ae88dc61171
BLAKE2b-256 5db2f24ed0577b66b413eb9e8997183706be8202ce5000cc1632f5a17438b3db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page