Skip to main content

snowmad: a snowflake transcription library

PyPI Latest Release Package Status License

What is it?

Snowmad is a Python package that provides utilities to transcribe snowflake objects. Currently transcribing objects form Snowflake to Terraform and transcribing objects from Snowflake to another Snowflake account is the primary focus of this package. The goal of this package is to cut down on writing one off scripts or manually wirting ddl for copying snowflake objects.

Main Features

  • Terraform
    • Transcribe snowflake users, roles, and role grants to terraform format
    • Currently terraform can import state, but cannot generate a config file from the imported state
    • To be used with snowflake provider (snowflake-labs/snowflake)
  • Snowflake Accounts
    • Copy databse objects ddl from one Snowflake account to another
    • Copy account level objects from one account to another including: warehouses, users, roles, and grants

Where to get it

The source code is currently hosted on GitHub at: https://github.com/PrestonBlackburn/snowmad

Binary installers for the latest released version are available at the Python Package Index (PyPI)

# PyPI
pip install snowmad

Dependencies

  • pandas - for data handling
  • snowflake.connector (with pandas addon, "snowflake-connector-python[pandas]") - for connecting to snowflake accounts and loading object data to dataframes
  • configparser - for handling snowflake account input data
  • cryptography - for accessing accounts via rsa key
  • snowflake connector

License

MIT

Documentation

See the current documentation on the wiki page

Outputs

  • roles text file
    • contains snowflake roles in terraform "snowflake_role" resource format
  • users text file
    • contains snowflake users in terraform "snowflake_user" resource format
  • grants text file
    • contains snowflake grants for roles in terraform "snowflake_role_grants" resource format

Metadata

Release files for snowmad 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snowmad 0.0.4
File Size Uploaded Provenance
snowmad-0.0.4.tar.gz 9.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for snowmad 0.0.4
File Interpreter ABI Platform
snowmad-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / snowmad-0.0.4.tar.gz

Download URL snowmad-0.0.4.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6b2295d6defee4e11489203b060573334cd76afa931c1d833ba5cd81c7f15536
BLAKE2b-256 checksum
How to use checksums
aa023bb568d0e5b06d029bb567e7066168c381123c4a9efd44b024fcbaeae710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / snowmad-0.0.4-py3-none-any.whl

Download URL snowmad-0.0.4-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
167cfca8c8f8bdce6cdda30e1fe57ba28fc1c89904981d3d216cdeed489b8b31
BLAKE2b-256 checksum
How to use checksums
26c6f846f320eb7e1d3e0ee50fc56d284620ad8a50573356455224333ff89ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for snowmad 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page