fakesnow


Namefakesnow JSON
Version 0.9.48 PyPI version JSON
download
home_pageNone
SummaryFake Snowflake Connector for Python. Run, mock and test Snowflake DB locally.
upload_time2025-07-19 07:52:56
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseApache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2023 Oliver Mannion Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords snowflake snowflakedb fake local mock testing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fakesnow ❄️

[![ci](https://github.com/tekumara/fakesnow/actions/workflows/ci.yml/badge.svg)](https://github.com/tekumara/fakesnow/actions/workflows/ci.yml)
[![release](https://github.com/tekumara/fakesnow/actions/workflows/release.yml/badge.svg)](https://github.com/tekumara/fakesnow/actions/workflows/release.yml)
[![PyPI](https://img.shields.io/pypi/v/fakesnow?color=violet)](https://pypi.org/project/fakesnow/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/fakesnow?color=violet)](https://pypi.org/project/fakesnow/)

Run, mock and test fake Snowflake databases locally.

## Install

```
pip install fakesnow
```

Or to install with the server:

```
pip install fakesnow[server]
```

## Usage

fakesnow offers two main approaches for faking Snowflake: [in-process patching](#in-process-patching) of the Snowflake Connector for Python or a [standalone HTTP server](#run-fakesnow-as-a-server).

Patching only applies to the current Python process. If a subprocess is spawned it won't be patched. For subprocesses, or for non-Python clients, use the server instead.

### In-process patching

To run script.py with patching:

```shell
fakesnow script.py
```

Or a module, eg: pytest

```shell
fakesnow -m pytest
```

`fakesnow` executes `fakesnow.patch` before running the script or module.

#### Use fakesnow.patch in your code

Alternatively, use fakesnow.patch in your code:

```python
import fakesnow
import snowflake.connector

with fakesnow.patch():
    conn = snowflake.connector.connect()

    print(conn.cursor().execute("SELECT 'Hello fake world!'").fetchone())
```

#### What gets patched

The following standard imports are automatically patched:

- `import snowflake.connector.connect`
- `import snowflake.connector.pandas_tools.write_pandas`

#### Handling "from ... import" Statements

To patch modules that use the `from ... import` syntax, you need to manually specify them, eg: if _mymodule.py_ contains:

```python
from snowflake.connector.pandas_tools import write_pandas
```

Then patch it using:

```python
with fakesnow.patch("mymodule.write_pandas"):
    ...
```

#### Database Persistence

By default, databases are in-memory and will be lost when the process ends. To persist databases between processes, specify a databases path:

```python
with fakesnow.patch(db_path="databases/"):
    ...
```

### Run fakesnow as a server

For scenarios where patching won't work (like subprocesses or non-Python clients), you can run fakesnow as an HTTP server.

#### From the command line

Using [uv](https://docs.astral.sh/uv/):

```
uvx 'fakesnow[server]' -s
```

Or from within a virtualenv that has `fakesnow[server]` installed:

```
fakesnow -s
```

By default the server listens on a random available port. Use `-p` to specify a port.

#### Within your python program

```python
import fakesnow
import snowflake.connector

# Start the fakesnow server in a context manager
# This yields connection kwargs (host, port, etc.)
with fakesnow.server() as conn_kwargs:
    # Connect to the fakesnow server using the yielded kwargs
    with snowflake.connector.connect(**conn_kwargs) as conn:
        print(conn.cursor().execute("SELECT 'Hello fake server!'").fetchone())

    # The server is automatically stopped when exiting the context manager
```

This starts an HTTP server in its own thread listening for requests on a random available port.

##### Server Configuration Options

To specify a port for the server:

```python
with fakesnow.server(port=12345) as conn_kwargs:
    ...
```

By default, the server uses a single in-memory database for its lifetime. To configure database persistence or isolation:

```python
# Databases will be saved to the "databases/" directory
with fakesnow.server(session_parameters={"FAKESNOW_DB_PATH": "databases/"}):
    ...

# Each connection gets its own isolated in-memory database
with fakesnow.server(session_parameters={"FAKESNOW_DB_PATH": ":isolated:"}):
    ...
```

#### Connecting from non-Python clients

The server is available via HTTP and accepts any username/password/account combination, eg:

```
user: fake
password: snow
account: fakesnow
host: localhost
port: <port number from server startup>
protocol: http
```

Additional parameters that may be helpful:
- Session parameter `CLIENT_OUT_OF_BAND_TELEMETRY_ENABLED` set to `false`
- Network timeout set to 1 second (since retries aren't needed in testing)

For example, with the Snowflake CLI:

```
snowsql -a fakesnow -u fake -p snow -h localhost -P <port> --protocol http
```

### pytest fixtures

fakesnow provides [fixtures](fakesnow/fixtures.py) for easier test integration. Add them in _conftest.py_:

```python
pytest_plugins = "fakesnow.fixtures"
```

To autouse the fixture you can wrap it like this in _conftest.py_:

```python
from typing import Iterator

import pytest

pytest_plugins = "fakesnow.fixtures"

@pytest.fixture(scope="session", autouse=True)
def setup(_fakesnow_session: None) -> Iterator[None]:
    # the standard imports are now patched
    # Add any additional setup here
    yield
    # Add any teardown here
```

For code that uses `from ... import` statements:

```python
from typing import Iterator

import fakesnow
import pytest

pytest_plugins = "fakesnow.fixtures"

@pytest.fixture(scope="session", autouse=True)
def _fakesnow_session() -> Iterator[None]:
    with fakesnow.patch("mymodule.write_pandas"):
        yield
```

#### server fixture

To start a fakesnow server instance, enable the plugin in _conftest.py_:

```python
pytest_plugins = "fakesnow.fixtures"
```

And then use the `fakesnow_server` session fixture like this:

```python
import snowflake.connector

def test_with_server(fakesnow_server: dict):
    # fakesnow_server contains connection kwargs (host, port, etc.)
    with snowflake.connector.connect(**fakesnow_server) as conn:
        conn.cursor().execute("SELECT 1")
        assert conn.cursor().fetchone() == (1,)
```

## Implementation coverage

Fully supported:

- Standard SQL operations and cursors
- Information schema queries
- Multiple databases
- [Parameter binding](https://docs.snowflake.com/en/user-guide/python-connector-example#binding-data) in queries
- Table comments
- Pandas integration including [write_pandas(..)](https://docs.snowflake.com/en/user-guide/python-connector-api#write_pandas)
- Result batch retrieval via [get_result_batches()](https://docs.snowflake.com/en/user-guide/python-connector-api#get_result_batches)
- HTTP server for non-Python connectors

Partially supported:

- Date functions
- Regular expression functions
- Semi-structured data operations
- Tags
- User management
- Stages and PUT
- `COPY INTO` from S3 sources and stages, see [COPY INTO](#copy-into)

Not yet implemented:

- [Access control](https://docs.snowflake.com/en/user-guide/security-access-control-overview)
- [Stored procedures](https://docs.snowflake.com/en/sql-reference/stored-procedures)

For more detail see the [test suite](tests/).

## Caveats

- Row ordering is non-deterministic and may differ from Snowflake unless you fully specify the ORDER BY clause.
- fakesnow supports a more liberal SQL dialect than actual Snowflake. This means some queries that work with fakesnow might not work with a real Snowflake instance.

## COPY INTO

`COPY INTO` can be used from S3 sources and stages. By default the standard AWS credential chain will be used. If you are getting an HTTP 403 or need to provide alternative S3 credentials you can use the duckdb [CREATE SECRET](https://duckdb.org/docs/stable/extensions/httpfs/s3api) statement. For an example of creating a secret to use a moto S3 endpoint see `s3_client` in [conftest.py](tests/conftest.py#L80)

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on getting started with development and contributing to this project.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fakesnow",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "snowflake, snowflakedb, fake, local, mock, testing",
    "author": null,
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# fakesnow \u2744\ufe0f\n\n[![ci](https://github.com/tekumara/fakesnow/actions/workflows/ci.yml/badge.svg)](https://github.com/tekumara/fakesnow/actions/workflows/ci.yml)\n[![release](https://github.com/tekumara/fakesnow/actions/workflows/release.yml/badge.svg)](https://github.com/tekumara/fakesnow/actions/workflows/release.yml)\n[![PyPI](https://img.shields.io/pypi/v/fakesnow?color=violet)](https://pypi.org/project/fakesnow/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/fakesnow?color=violet)](https://pypi.org/project/fakesnow/)\n\nRun, mock and test fake Snowflake databases locally.\n\n## Install\n\n```\npip install fakesnow\n```\n\nOr to install with the server:\n\n```\npip install fakesnow[server]\n```\n\n## Usage\n\nfakesnow offers two main approaches for faking Snowflake: [in-process patching](#in-process-patching) of the Snowflake Connector for Python or a [standalone HTTP server](#run-fakesnow-as-a-server).\n\nPatching only applies to the current Python process. If a subprocess is spawned it won't be patched. For subprocesses, or for non-Python clients, use the server instead.\n\n### In-process patching\n\nTo run script.py with patching:\n\n```shell\nfakesnow script.py\n```\n\nOr a module, eg: pytest\n\n```shell\nfakesnow -m pytest\n```\n\n`fakesnow` executes `fakesnow.patch` before running the script or module.\n\n#### Use fakesnow.patch in your code\n\nAlternatively, use fakesnow.patch in your code:\n\n```python\nimport fakesnow\nimport snowflake.connector\n\nwith fakesnow.patch():\n    conn = snowflake.connector.connect()\n\n    print(conn.cursor().execute(\"SELECT 'Hello fake world!'\").fetchone())\n```\n\n#### What gets patched\n\nThe following standard imports are automatically patched:\n\n- `import snowflake.connector.connect`\n- `import snowflake.connector.pandas_tools.write_pandas`\n\n#### Handling \"from ... import\" Statements\n\nTo patch modules that use the `from ... import` syntax, you need to manually specify them, eg: if _mymodule.py_ contains:\n\n```python\nfrom snowflake.connector.pandas_tools import write_pandas\n```\n\nThen patch it using:\n\n```python\nwith fakesnow.patch(\"mymodule.write_pandas\"):\n    ...\n```\n\n#### Database Persistence\n\nBy default, databases are in-memory and will be lost when the process ends. To persist databases between processes, specify a databases path:\n\n```python\nwith fakesnow.patch(db_path=\"databases/\"):\n    ...\n```\n\n### Run fakesnow as a server\n\nFor scenarios where patching won't work (like subprocesses or non-Python clients), you can run fakesnow as an HTTP server.\n\n#### From the command line\n\nUsing [uv](https://docs.astral.sh/uv/):\n\n```\nuvx 'fakesnow[server]' -s\n```\n\nOr from within a virtualenv that has `fakesnow[server]` installed:\n\n```\nfakesnow -s\n```\n\nBy default the server listens on a random available port. Use `-p` to specify a port.\n\n#### Within your python program\n\n```python\nimport fakesnow\nimport snowflake.connector\n\n# Start the fakesnow server in a context manager\n# This yields connection kwargs (host, port, etc.)\nwith fakesnow.server() as conn_kwargs:\n    # Connect to the fakesnow server using the yielded kwargs\n    with snowflake.connector.connect(**conn_kwargs) as conn:\n        print(conn.cursor().execute(\"SELECT 'Hello fake server!'\").fetchone())\n\n    # The server is automatically stopped when exiting the context manager\n```\n\nThis starts an HTTP server in its own thread listening for requests on a random available port.\n\n##### Server Configuration Options\n\nTo specify a port for the server:\n\n```python\nwith fakesnow.server(port=12345) as conn_kwargs:\n    ...\n```\n\nBy default, the server uses a single in-memory database for its lifetime. To configure database persistence or isolation:\n\n```python\n# Databases will be saved to the \"databases/\" directory\nwith fakesnow.server(session_parameters={\"FAKESNOW_DB_PATH\": \"databases/\"}):\n    ...\n\n# Each connection gets its own isolated in-memory database\nwith fakesnow.server(session_parameters={\"FAKESNOW_DB_PATH\": \":isolated:\"}):\n    ...\n```\n\n#### Connecting from non-Python clients\n\nThe server is available via HTTP and accepts any username/password/account combination, eg:\n\n```\nuser: fake\npassword: snow\naccount: fakesnow\nhost: localhost\nport: <port number from server startup>\nprotocol: http\n```\n\nAdditional parameters that may be helpful:\n- Session parameter `CLIENT_OUT_OF_BAND_TELEMETRY_ENABLED` set to `false`\n- Network timeout set to 1 second (since retries aren't needed in testing)\n\nFor example, with the Snowflake CLI:\n\n```\nsnowsql -a fakesnow -u fake -p snow -h localhost -P <port> --protocol http\n```\n\n### pytest fixtures\n\nfakesnow provides [fixtures](fakesnow/fixtures.py) for easier test integration. Add them in _conftest.py_:\n\n```python\npytest_plugins = \"fakesnow.fixtures\"\n```\n\nTo autouse the fixture you can wrap it like this in _conftest.py_:\n\n```python\nfrom typing import Iterator\n\nimport pytest\n\npytest_plugins = \"fakesnow.fixtures\"\n\n@pytest.fixture(scope=\"session\", autouse=True)\ndef setup(_fakesnow_session: None) -> Iterator[None]:\n    # the standard imports are now patched\n    # Add any additional setup here\n    yield\n    # Add any teardown here\n```\n\nFor code that uses `from ... import` statements:\n\n```python\nfrom typing import Iterator\n\nimport fakesnow\nimport pytest\n\npytest_plugins = \"fakesnow.fixtures\"\n\n@pytest.fixture(scope=\"session\", autouse=True)\ndef _fakesnow_session() -> Iterator[None]:\n    with fakesnow.patch(\"mymodule.write_pandas\"):\n        yield\n```\n\n#### server fixture\n\nTo start a fakesnow server instance, enable the plugin in _conftest.py_:\n\n```python\npytest_plugins = \"fakesnow.fixtures\"\n```\n\nAnd then use the `fakesnow_server` session fixture like this:\n\n```python\nimport snowflake.connector\n\ndef test_with_server(fakesnow_server: dict):\n    # fakesnow_server contains connection kwargs (host, port, etc.)\n    with snowflake.connector.connect(**fakesnow_server) as conn:\n        conn.cursor().execute(\"SELECT 1\")\n        assert conn.cursor().fetchone() == (1,)\n```\n\n## Implementation coverage\n\nFully supported:\n\n- Standard SQL operations and cursors\n- Information schema queries\n- Multiple databases\n- [Parameter binding](https://docs.snowflake.com/en/user-guide/python-connector-example#binding-data) in queries\n- Table comments\n- Pandas integration including [write_pandas(..)](https://docs.snowflake.com/en/user-guide/python-connector-api#write_pandas)\n- Result batch retrieval via [get_result_batches()](https://docs.snowflake.com/en/user-guide/python-connector-api#get_result_batches)\n- HTTP server for non-Python connectors\n\nPartially supported:\n\n- Date functions\n- Regular expression functions\n- Semi-structured data operations\n- Tags\n- User management\n- Stages and PUT\n- `COPY INTO` from S3 sources and stages, see [COPY INTO](#copy-into)\n\nNot yet implemented:\n\n- [Access control](https://docs.snowflake.com/en/user-guide/security-access-control-overview)\n- [Stored procedures](https://docs.snowflake.com/en/sql-reference/stored-procedures)\n\nFor more detail see the [test suite](tests/).\n\n## Caveats\n\n- Row ordering is non-deterministic and may differ from Snowflake unless you fully specify the ORDER BY clause.\n- fakesnow supports a more liberal SQL dialect than actual Snowflake. This means some queries that work with fakesnow might not work with a real Snowflake instance.\n\n## COPY INTO\n\n`COPY INTO` can be used from S3 sources and stages. By default the standard AWS credential chain will be used. If you are getting an HTTP 403 or need to provide alternative S3 credentials you can use the duckdb [CREATE SECRET](https://duckdb.org/docs/stable/extensions/httpfs/s3api) statement. For an example of creating a secret to use a moto S3 endpoint see `s3_client` in [conftest.py](tests/conftest.py#L80)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on getting started with development and contributing to this project.\n",
    "bugtrack_url": null,
    "license": "Apache License\n                                   Version 2.0, January 2004\n                                http://www.apache.org/licenses/\n        \n           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n        \n           1. Definitions.\n        \n              \"License\" shall mean the terms and conditions for use, reproduction,\n              and distribution as defined by Sections 1 through 9 of this document.\n        \n              \"Licensor\" shall mean the copyright owner or entity authorized by\n              the copyright owner that is granting the License.\n        \n              \"Legal Entity\" shall mean the union of the acting entity and all\n              other entities that control, are controlled by, or are under common\n              control with that entity. For the purposes of this definition,\n              \"control\" means (i) the power, direct or indirect, to cause the\n              direction or management of such entity, whether by contract or\n              otherwise, or (ii) ownership of fifty percent (50%) or more of the\n              outstanding shares, or (iii) beneficial ownership of such entity.\n        \n              \"You\" (or \"Your\") shall mean an individual or Legal Entity\n              exercising permissions granted by this License.\n        \n              \"Source\" form shall mean the preferred form for making modifications,\n              including but not limited to software source code, documentation\n              source, and configuration files.\n        \n              \"Object\" form shall mean any form resulting from mechanical\n              transformation or translation of a Source form, including but\n              not limited to compiled object code, generated documentation,\n              and conversions to other media types.\n        \n              \"Work\" shall mean the work of authorship, whether in Source or\n              Object form, made available under the License, as indicated by a\n              copyright notice that is included in or attached to the work\n              (an example is provided in the Appendix below).\n        \n              \"Derivative Works\" shall mean any work, whether in Source or Object\n              form, that is based on (or derived from) the Work and for which the\n              editorial revisions, annotations, elaborations, or other modifications\n              represent, as a whole, an original work of authorship. For the purposes\n              of this License, Derivative Works shall not include works that remain\n              separable from, or merely link (or bind by name) to the interfaces of,\n              the Work and Derivative Works thereof.\n        \n              \"Contribution\" shall mean any work of authorship, including\n              the original version of the Work and any modifications or additions\n              to that Work or Derivative Works thereof, that is intentionally\n              submitted to Licensor for inclusion in the Work by the copyright owner\n              or by an individual or Legal Entity authorized to submit on behalf of\n              the copyright owner. For the purposes of this definition, \"submitted\"\n              means any form of electronic, verbal, or written communication sent\n              to the Licensor or its representatives, including but not limited to\n              communication on electronic mailing lists, source code control systems,\n              and issue tracking systems that are managed by, or on behalf of, the\n              Licensor for the purpose of discussing and improving the Work, but\n              excluding communication that is conspicuously marked or otherwise\n              designated in writing by the copyright owner as \"Not a Contribution.\"\n        \n              \"Contributor\" shall mean Licensor and any individual or Legal Entity\n              on behalf of whom a Contribution has been received by Licensor and\n              subsequently incorporated within the Work.\n        \n           2. Grant of Copyright License. Subject to the terms and conditions of\n              this License, each Contributor hereby grants to You a perpetual,\n              worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n              copyright license to reproduce, prepare Derivative Works of,\n              publicly display, publicly perform, sublicense, and distribute the\n              Work and such Derivative Works in Source or Object form.\n        \n           3. Grant of Patent License. Subject to the terms and conditions of\n              this License, each Contributor hereby grants to You a perpetual,\n              worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n              (except as stated in this section) patent license to make, have made,\n              use, offer to sell, sell, import, and otherwise transfer the Work,\n              where such license applies only to those patent claims licensable\n              by such Contributor that are necessarily infringed by their\n              Contribution(s) alone or by combination of their Contribution(s)\n              with the Work to which such Contribution(s) was submitted. If You\n              institute patent litigation against any entity (including a\n              cross-claim or counterclaim in a lawsuit) alleging that the Work\n              or a Contribution incorporated within the Work constitutes direct\n              or contributory patent infringement, then any patent licenses\n              granted to You under this License for that Work shall terminate\n              as of the date such litigation is filed.\n        \n           4. Redistribution. You may reproduce and distribute copies of the\n              Work or Derivative Works thereof in any medium, with or without\n              modifications, and in Source or Object form, provided that You\n              meet the following conditions:\n        \n              (a) You must give any other recipients of the Work or\n                  Derivative Works a copy of this License; and\n        \n              (b) You must cause any modified files to carry prominent notices\n                  stating that You changed the files; and\n        \n              (c) You must retain, in the Source form of any Derivative Works\n                  that You distribute, all copyright, patent, trademark, and\n                  attribution notices from the Source form of the Work,\n                  excluding those notices that do not pertain to any part of\n                  the Derivative Works; and\n        \n              (d) If the Work includes a \"NOTICE\" text file as part of its\n                  distribution, then any Derivative Works that You distribute must\n                  include a readable copy of the attribution notices contained\n                  within such NOTICE file, excluding those notices that do not\n                  pertain to any part of the Derivative Works, in at least one\n                  of the following places: within a NOTICE text file distributed\n                  as part of the Derivative Works; within the Source form or\n                  documentation, if provided along with the Derivative Works; or,\n                  within a display generated by the Derivative Works, if and\n                  wherever such third-party notices normally appear. The contents\n                  of the NOTICE file are for informational purposes only and\n                  do not modify the License. You may add Your own attribution\n                  notices within Derivative Works that You distribute, alongside\n                  or as an addendum to the NOTICE text from the Work, provided\n                  that such additional attribution notices cannot be construed\n                  as modifying the License.\n        \n              You may add Your own copyright statement to Your modifications and\n              may provide additional or different license terms and conditions\n              for use, reproduction, or distribution of Your modifications, or\n              for any such Derivative Works as a whole, provided Your use,\n              reproduction, and distribution of the Work otherwise complies with\n              the conditions stated in this License.\n        \n           5. Submission of Contributions. Unless You explicitly state otherwise,\n              any Contribution intentionally submitted for inclusion in the Work\n              by You to the Licensor shall be under the terms and conditions of\n              this License, without any additional terms or conditions.\n              Notwithstanding the above, nothing herein shall supersede or modify\n              the terms of any separate license agreement you may have executed\n              with Licensor regarding such Contributions.\n        \n           6. Trademarks. This License does not grant permission to use the trade\n              names, trademarks, service marks, or product names of the Licensor,\n              except as required for reasonable and customary use in describing the\n              origin of the Work and reproducing the content of the NOTICE file.\n        \n           7. Disclaimer of Warranty. Unless required by applicable law or\n              agreed to in writing, Licensor provides the Work (and each\n              Contributor provides its Contributions) on an \"AS IS\" BASIS,\n              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n              implied, including, without limitation, any warranties or conditions\n              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n              PARTICULAR PURPOSE. You are solely responsible for determining the\n              appropriateness of using or redistributing the Work and assume any\n              risks associated with Your exercise of permissions under this License.\n        \n           8. Limitation of Liability. In no event and under no legal theory,\n              whether in tort (including negligence), contract, or otherwise,\n              unless required by applicable law (such as deliberate and grossly\n              negligent acts) or agreed to in writing, shall any Contributor be\n              liable to You for damages, including any direct, indirect, special,\n              incidental, or consequential damages of any character arising as a\n              result of this License or out of the use or inability to use the\n              Work (including but not limited to damages for loss of goodwill,\n              work stoppage, computer failure or malfunction, or any and all\n              other commercial damages or losses), even if such Contributor\n              has been advised of the possibility of such damages.\n        \n           9. Accepting Warranty or Additional Liability. While redistributing\n              the Work or Derivative Works thereof, You may choose to offer,\n              and charge a fee for, acceptance of support, warranty, indemnity,\n              or other liability obligations and/or rights consistent with this\n              License. However, in accepting such obligations, You may act only\n              on Your own behalf and on Your sole responsibility, not on behalf\n              of any other Contributor, and only if You agree to indemnify,\n              defend, and hold each Contributor harmless for any liability\n              incurred by, or claims asserted against, such Contributor by reason\n              of your accepting any such warranty or additional liability.\n        \n           END OF TERMS AND CONDITIONS\n        \n           APPENDIX: How to apply the Apache License to your work.\n        \n              To apply the Apache License to your work, attach the following\n              boilerplate notice, with the fields enclosed by brackets \"[]\"\n              replaced with your own identifying information. (Don't include\n              the brackets!)  The text should be enclosed in the appropriate\n              comment syntax for the file format. We also recommend that a\n              file or class name and description of purpose be included on the\n              same \"printed page\" as the copyright notice for easier\n              identification within third-party archives.\n        \n           Copyright 2023 Oliver Mannion\n        \n           Licensed under the Apache License, Version 2.0 (the \"License\");\n           you may not use this file except in compliance with the License.\n           You may obtain a copy of the License at\n        \n               http://www.apache.org/licenses/LICENSE-2.0\n        \n           Unless required by applicable law or agreed to in writing, software\n           distributed under the License is distributed on an \"AS IS\" BASIS,\n           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n           See the License for the specific language governing permissions and\n           limitations under the License.\n        ",
    "summary": "Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally.",
    "version": "0.9.48",
    "project_urls": {
        "Changelog": "https://github.com/tekumara/fakesnow/blob/main/CHANGELOG.md",
        "Source": "https://github.com/tekumara/fakesnow"
    },
    "split_keywords": [
        "snowflake",
        " snowflakedb",
        " fake",
        " local",
        " mock",
        " testing"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6851aada5511139914eaa410d5aec7e143cb69b03f04908751b59ec1928a4176",
                "md5": "eea6b21b4da9138cb0609db884fdabaf",
                "sha256": "b286528462a363eb8a02730c82a1722578bca4ed1f2ecc4b6e45be5b8feaeeaf"
            },
            "downloads": -1,
            "filename": "fakesnow-0.9.48-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eea6b21b4da9138cb0609db884fdabaf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 71836,
            "upload_time": "2025-07-19T07:52:56",
            "upload_time_iso_8601": "2025-07-19T07:52:56.017825Z",
            "url": "https://files.pythonhosted.org/packages/68/51/aada5511139914eaa410d5aec7e143cb69b03f04908751b59ec1928a4176/fakesnow-0.9.48-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-19 07:52:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tekumara",
    "github_project": "fakesnow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fakesnow"
}
        
Elapsed time: 1.48445s