Skip to main content

Simplify the testing of SQL data models and queries by allowing users to mock input data and create tests for various scenarios. It provides a consistent and convenient way to test the execution of your query without the need to process a massive amount of data.

Project description

SQL Mock: Python Library for Mocking SQL Queries with Dictionary Inputs

PyPI version Supported Python versions License: MIT

The primary purpose of this library is to simplify the testing of SQL data models and queries by allowing users to mock input data and create tests for various scenarios. It provides a consistent and convenient way to test the execution of your query without the need to process a massive amount of data.

Documentation

A full documentation can be found on the documentation page

The library currently supports the following databases.

  • BigQuery
  • Clickhouse

Installation

The library can be installed from PyPI using pip:

# BigQuery
pip install --upgrade "sql-mock[bigquery]"

# Clickhouse
pip install --upgrade "sql-mock[clickhouse]"

If you need to modify this source code, install the dependencies using poetry:

poetry install --all-extras

Contributing

We welcome contributions to improve and enhance this open-source project. Whether you want to report issues, suggest new features, or directly contribute to the codebase, your input is valuable. To ensure a smooth and collaborative experience for both contributors and maintainers, please follow these guidelines:

Reporting Issues

If you encounter a bug, have a feature request, or face any issues with the project, we encourage you to report them using the project's issue tracker. When creating an issue, please include the following information:

  • A clear and descriptive title.
  • A detailed description of the problem or suggestion.
  • Steps to reproduce the issue (if applicable).
  • Any error messages or screenshots that help clarify the problem.

Feature Requests

If you have ideas for new features or improvements, please use the project's issue tracker to submit a feature request. We appreciate well-documented feature requests that explain the motivation and potential use cases.

Contributing Code

Find more about contributing code in the Contribution Guidelines

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

sql_mock-0.3.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

sql_mock-0.3.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sql_mock-0.3.1.tar.gz.

File metadata

  • Download URL: sql_mock-0.3.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure

File hashes

Hashes for sql_mock-0.3.1.tar.gz
Algorithm Hash digest
SHA256 28c7075a140ea665d8062f6865c3f56c7c8e2f64319827212740ffb8669fa06a
MD5 b14da12647867aa904a0d7ff446e1092
BLAKE2b-256 e1da158847ddaee65388fc8ff51d25b6da46852a10394ff31d40075a00c250b9

See more details on using hashes here.

File details

Details for the file sql_mock-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: sql_mock-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure

File hashes

Hashes for sql_mock-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e26cb7b71b4639a16dae861a1fe2ccdf8017c3027459e47eaa0ff1f59b2aecc
MD5 1f60b0ed094fa79bf2cb91f105a3dcc2
BLAKE2b-256 a8c755ed0282262bf81a0874a130618551c91a948e64eff780667d19ab00ba7b

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