Metadata-Version: 2.1
Name: bufu
Version: 0.0.2
Summary: Minimal file upload for Snowflake internal stage
Home-page: https://github.com/indigo13love/bufu
Author: indigo13love
Author-email: indigo13love@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6,<3.9
Description-Content-Type: text/markdown

# bufu - Minimal file uploader CLI for Snowflake stage

`bufu` is a minimal file uploader CLI for Snowflake stage.

**Important Note: it is not a Snowflake official software.**

# Install

`$ pip install bufu`

# Configuration

`bufu` automatically uses `[connections]` section in `~/.snowsql/config` to setup a connection.

To use `bufu`, specifying current database, schema and warehouse are mandatory.

Please see "Configuring SnowSQL" document to setup `~/.snowsql/config` file:
https://docs.snowflake.com/en/user-guide/snowsql-config.html#snowsql-config-file

# Usage

`bufu show` ... List up all stages in the current schema

`bufu show <stage>` ... List up first 100 files in the stage

`bufu create <stage>` ... Create a stage in the current schema

`bufu put <file>` ... Create a stage starting with "bufu_" and put the file to the stage

`bufu put <file> <schema>` ... Put the file to the stage


