Metadata-Version: 2.5
Name: pinky-provider
Version: 0.1.0.dev2
Summary: Declarative, idempotent IaC engine for Snowflake
Project-URL: Homepage, https://github.com/pinky-and-co/pinky-provider
Project-URL: Repository, https://github.com/pinky-and-co/pinky-provider
Project-URL: Issues, https://github.com/pinky-and-co/pinky-provider/issues
Author: pinky-and-co
License: MIT License
        
        Copyright (c) 2026 pinky-and-co
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: data-engineering,declarative,iac,snowflake
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: click
Requires-Dist: detect-secrets>=1.5
Requires-Dist: jinja2
Requires-Dist: pinky-core>=0.1.0.dev9
Requires-Dist: pinky-snowpark>=0.1.0.dev4
Requires-Dist: pydantic>=2.0
Requires-Dist: pyyaml
Requires-Dist: rich
Requires-Dist: rich-click
Requires-Dist: snowflake-snowpark-python
Requires-Dist: snowflake>=1.12.0
Requires-Dist: sqlfluff==4.2.*
Provides-Extra: lint
Requires-Dist: pinky-core[lint]; extra == 'lint'
Description-Content-Type: text/markdown

# pinky-provider

<!-- pinky:readme-badges:start -->

<div align="center">

<img src="https://assets.pinky-suite.fr/icons/pinky-header.png" width="380" alt="pinky &amp; co">

![CI](https://github.com/pinky-and-co/pinky-provider/actions/workflows/ci.yml/badge.svg)
![Coverage](docs/reference/generated/coverage_badge.svg)
![PyPI](https://img.shields.io/pypi/v/pinky-provider)
![License](https://img.shields.io/badge/license-MIT-green)
![Code style](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)
[![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)

**[Install](#install) • [Documentation](#documentation) • [License](#license)**

</div>
<!-- pinky:readme-badges:end -->

<!-- pinky:readme-tagline:start -->

Declarative, idempotent IaC engine for Snowflake.

Part of the [pinky-and-co](https://github.com/pinky-and-co) suite.

<!-- pinky:readme-tagline:end -->

______________________________________________________________________

## Why pinky?

<!-- pinky:readme-why:start -->

The modern data stack was built on a good idea — **best of breed**. One tool for ingestion, one for transformation, one for orchestration, one for observability.

The reality: more licenses, same delivery time, and most of your energy goes into *the glue*.

Snowflake collapsed the stack. **Pinky makes it operational.**

Do it right, and the credits follow.

**Rationalized costs · Pure Python · Snowflake Native First**

<!-- pinky:readme-why:end -->

______________________________________________________________________

## Install

```bash
pip install pinky-provider
```

______________________________________________________________________

## Quick start

```bash
pinky-provider init  --scope schema --target MY_DATABASE.MAIN
pinky-provider plan  --env SANDBOX
pinky-provider apply --env SANDBOX
```

Step by step: [First apply tutorial](docs/tutorials/1-first-apply.md).

```
  Scope: MY_DATABASE.MAIN

  +  stage/my_stage               CREATE
  ~  procedure/my_sp              ALTER    (packages updated)
  =  task/my_task                 UNCHANGED
```

______________________________________________________________________

## Documentation

<!-- pinky:readme-docs:start -->

**Explanation**

- [Design](docs/explanation/1-design.md)
- [Features](docs/explanation/2-features.md)
- [DAG](docs/explanation/3-dag.md)
- [Query](docs/explanation/4-query.md)
- [Cash Back](docs/explanation/5-cash-back.md)

**API reference**

- [Generated API docs](docs/reference/api/)

**Decisions**

- [ADRs](docs/adr/)

**Structure**

<details>
<summary>Show the directory tree</summary>

```text
pinky-provider/
├── _repro/
│   ├── eai-secrets-serialization/
│   │   ├── bug.md
│   │   └── repro.py
│   ├── table-kind-enum/
│   │   ├── bug.md
│   │   └── repro.ipynb
│   ├── live_valid_adr0014_gaps.py
│   ├── live_valid_all_modes.py
│   ├── live_valid_contact_purpose_case.py
│   ├── live_valid_ddl.py
│   ├── live_valid_drop_orphans_dag_names.py
│   ├── live_valid_email_notification.py
│   ├── live_valid_expected_schedule_deploy.py
│   ├── live_valid_finalize_deployed.py
│   ├── live_valid_finalize_sees_graph_state.py
│   ├── live_valid_get_contacts.py
│   ├── live_valid_install_wrappers.py
│   ├── live_valid_notifications_session_call.py
│   ├── live_valid_orphan_need.py
│   ├── live_valid_orphans_ownership_guard.py
│   ├── live_valid_orphans_schema_types.py
│   ├── live_valid_poll_and_dispatch_classification.py
│   ├── live_valid_recipient_atomicity.py
│   ├── live_valid_root_return_value_key.py
│   ├── live_valid_sdk.ipynb
│   ├── live_valid_slack_webhook.py
│   ├── live_valid_stage_create_or_alter.py
│   ├── live_valid_transient_lifecycle.py
│   ├── live_valid_user_recipient.py
│   ├── live_valid_v1_types.py
│   ├── run_live.py
│   └── send_test_emails.py
├── examples/
│   ├── queries/
│   │   └── companies_enriched.sql
│   ├── resources/
│   │   ├── procedure/
│   │   │   └── hello_sp.yml
│   │   └── warehouse/
│   │       └── wh_compute.yml
│   ├── vars/
│   │   ├── PRODUCTION.yml
│   │   └── SANDBOX.yml
│   ├── example_query_compile.py
│   ├── example_reconcile_comments.py
│   ├── manifest.yml
│   ├── manifest_query.yml
│   └── manifest_sp_demo.yml
├── scripts/
│   └── hooks/
├── src/
│   └── pinky_provider/
│       ├── cli/
│       │   ├── __init__.py
│       │   ├── main.py
│       │   └── scaffold.py
│       ├── core/
│       │   ├── __init__.py
│       │   ├── conflict.py
│       │   ├── deps.py
│       │   ├── diff.py
│       │   ├── manifest.py
│       │   ├── orphans.py
│       │   ├── parallel.py
│       │   ├── reconcile.py
│       │   ├── schema_collections.py
│       │   ├── schemas.py
│       │   └── session.py
│       ├── dag/
│       │   ├── wrappers/
│       │   │   ├── __init__.py
│       │   │   ├── errors.py
│       │   │   ├── feed_loop.py
│       │   │   ├── finalize_wrapper.py
│       │   │   ├── install.py
│       │   │   ├── modes.py
│       │   │   ├── poll_and_dispatch.py
│       │   │   ├── render.py
│       │   │   ├── root_task_wrapper.py
│       │   │   ├── runtime.py
│       │   │   └── task_wrapper.py
│       │   ├── __init__.py
│       │   ├── condition.py
│       │   ├── dag.py
│       │   ├── deploy.py
│       │   ├── models.py
│       │   ├── names.py
│       │   └── notifications.py
│       ├── resources/
│       │   ├── account/
│       │   │   ├── __init__.py
│       │   │   ├── api_integration.py
│       │   │   ├── catalog_integration.py
│       │   │   ├── compute_pool.py
│       │   │   ├── database.py
│       │   │   ├── external_access_integration.py
│       │   │   ├── external_volume.py
│       │   │   ├── network_policy.py
│       │   │   ├── network_rule.py
│       │   │   ├── notification_integration.py
│       │   │   ├── role.py
│       │   │   ├── secret.py
│       │   │   ├── tag.py
│       │   │   ├── user.py
│       │   │   └── warehouse.py
│       │   ├── database/
│       │   │   ├── __init__.py
│       │   │   ├── database_role.py
│       │   │   ├── grant.py
│       │   │   └── schema.py
│       │   ├── schema/
│       │   │   ├── query/
│       │   │   │   ├── __init__.py
│       │   │   │   ├── provider.py
│       │   │   │   ├── query_engine.py
│       │   │   │   └── query_resource.py
│       │   │   ├── __init__.py
│       │   │   ├── _governed.py
│       │   │   ├── _relation.py
│       │   │   ├── alert.py
│       │   │   ├── dynamic_table.py
│       │   │   ├── event_table.py
│       │   │   ├── iceberg_table.py
│       │   │   ├── procedure.py
│       │   │   ├── quota.py
│       │   │   ├── secret.py
│       │   │   ├── stage.py
│       │   │   ├── storage_lifecycle_policy.py
│       │   │   ├── stream.py
│       │   │   ├── streamlit.py
│       │   │   ├── table.py
│       │   │   ├── tag.py
│       │   │   ├── task.py
│       │   │   ├── user_defined_function.py
│       │   │   └── view.py
│       │   ├── __init__.py
│       │   └── base.py
│       ├── __init__.py
│       └── provider.py
├── tests/
│   ├── fixtures/
│   │   └── notification_body.html
│   ├── conftest.py
│   ├── test_account_schema_stored.py
│   ├── test_alert.py
│   ├── test_api_integration_compute_pool.py
│   ├── test_base.py
│   ├── test_catalog_integration.py
│   ├── test_cli.py
│   ├── test_comment_reconcile.py
│   ├── test_conflict.py
│   ├── test_dag.py
│   ├── test_dag_condition.py
│   ├── test_dag_errors.py
│   ├── test_dag_finalize_wrapper.py
│   ├── test_dag_frequency_live.py
│   ├── test_dag_notifications.py
│   ├── test_dag_output_registry.py
│   ├── test_dag_output_registry_live.py
│   ├── test_dag_owned_names.py
│   ├── test_dag_render.py
│   ├── test_dag_task_wrapper.py
│   ├── test_dag_timeout_bounds.py
│   ├── test_dag_wrappers.py
│   ├── test_database.py
│   ├── test_deps.py
│   ├── test_diff.py
│   ├── test_dynamic_table.py
│   ├── test_event_table.py
│   ├── test_external_access_integration.py
│   ├── test_external_volume.py
│   ├── test_grant.py
│   ├── test_iceberg_table.py
│   ├── test_init.py
│   ├── test_manifest.py
│   ├── test_network_policy.py
│   ├── test_network_rule.py
│   ├── test_network_rule_policy_apply.py
│   ├── test_notification_integration.py
│   ├── test_orphans.py
│   ├── test_parallel.py
│   ├── test_procedure.py
│   ├── test_procedure_secrets_reconcile.py
│   ├── test_query.py
│   ├── test_query_provider.py
│   ├── test_quota.py
│   ├── test_roles.py
│   ├── test_schema.py
│   ├── test_schema_relations.py
│   ├── test_schemas.py
│   ├── test_secret.py
│   ├── test_secret_scan_guard.py
│   ├── test_stage.py
│   ├── test_storage_lifecycle_policy.py
│   ├── test_stream.py
│   ├── test_streamlit.py
│   ├── test_streamlit_live.py
│   ├── test_substitute_env.py
│   ├── test_table.py
│   ├── test_tag.py
│   ├── test_task.py
│   ├── test_type_contract.py
│   ├── test_user.py
│   ├── test_user_defined_function.py
│   ├── test_validate_sql_live.py
│   ├── test_view.py
│   ├── test_warehouse.py
│   └── test_wrapper_install.py
├── AGENTS.md
├── CLAUDE.md
├── LICENSE
├── pyproject.toml
├── README.md
└── uv.lock
```

</details>

<!-- pinky:readme-docs:end -->

______________________________________________________________________

## License

<!-- pinky:readme-license:start -->

MIT — see [LICENSE](LICENSE).

<!-- pinky:readme-license:end -->
