{"id":40968169,"url":"https://github.com/phdata/snowpipe-cli","last_synced_at":"2026-01-22T06:27:50.931Z","repository":{"id":43382445,"uuid":"353035126","full_name":"phdata/snowpipe-cli","owner":"phdata","description":"CLI script for interacting with Snowpipe REST APIs","archived":false,"fork":false,"pushed_at":"2025-04-22T20:43:26.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-06T10:33:04.344Z","etag":null,"topics":["cli","snowflake","snowpipe"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-30T14:42:25.000Z","updated_at":"2025-08-01T13:39:26.000Z","dependencies_parsed_at":"2025-04-22T21:39:05.707Z","dependency_job_id":null,"html_url":"https://github.com/phdata/snowpipe-cli","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"9d2763831a0f7ca49e5717a1b6d74bf6b22136e1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phdata/snowpipe-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phdata%2Fsnowpipe-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phdata%2Fsnowpipe-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phdata%2Fsnowpipe-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phdata%2Fsnowpipe-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phdata","download_url":"https://codeload.github.com/phdata/snowpipe-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phdata%2Fsnowpipe-cli/sbom","scorecard":{"id":730790,"data":{"date":"2025-08-11","repo":{"name":"github.com/phdata/snowpipe-cli","commit":"02810b1b97508fdbea651112e8d93a953003f331"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":6,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is not required on branch 'master'","Info: 'last push approval' is required to merge on branch 'master'","Warn: no status checks found to merge onto branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T14:21:12.021Z","repository_id":43382445,"created_at":"2025-08-22T14:21:12.021Z","updated_at":"2025-08-22T14:21:12.021Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28656838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","snowflake","snowpipe"],"created_at":"2026-01-22T06:27:49.926Z","updated_at":"2026-01-22T06:27:50.925Z","avatar_url":"https://github.com/phdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snowpipe CLI\n\nSnowpipe CLI provides access to\nthe [Snowpipe REST API](https://docs.snowflake.com/en/user-guide/data-load-snowpipe-rest-apis.html) via the CLI. The\nscript uses the [snowflake-ingest](https://github.com/snowflakedb/snowflake-ingest-python) python package to call the\nREST endpoints.\n\nIn addition to calling the Snowpipe REST endpoints, you can use Snowpipe CLI\nto [PUT](https://docs.snowflake.com/en/sql-reference/sql/put.html) local files in the stage used by the pipe and then\ningest. A single invocation of the ingest command handles any combination of already staged files and local files that\nneed to be staged.\n\nThere is also a JWT generator that you can use to simply generate a JWT for adhoc use.\n\n## Installation\n\nYou can install the latest version with pip\n\n```shell\npip install snowpipe-cli\n```\n\n**Note**: If you are installing into a virtual environment, you may need to deactivate and activate again in order for\nthe `snowpipe` command to work correctly from your shell.\n\n### Requirements\n\nSnowpipe CLI requires Python 3.8+.\n\n### Configuration\n\nCreate a config file with the Snowflake credentials and account information. The config file must be YAML like below:\n\n```yaml\nurl: phdata.snowflakecomputing.com\naccount: PHDATA\nuser: USER\nkey_fp: SHA256:something_from_snowflake_user\nkey_file: /path/to/user/private/key.pem\nkey_password: optional_password\n```\n\nSee also [example config](example-config.yaml).\n\nThe `account` value must not include the region and cloud if present in the Snowflake URL. The `url` is the URL of the\nSnowflake instance minus the scheme. For example, if your URL is https://tacos.us-east-2.azure.snowflakecomputing.com,\nthen the `account` will be `tacos` and the `url` will be `tacos.us-east-2.azure.snowflakecomputing.com`.\n\nTo generate a private key,\nsee [Key Pair Authentication \u0026 Key Pair Rotation](https://docs.snowflake.com/en/user-guide/key-pair-auth.html). When\nverifying the fingerprint, record the value into the `key_fp` YAML key.\n\n## Usage\n\nThe commands below are examples of calling the `snowpipe` script from your shell after it has been installed with pip.\nIf you have cloned the repository, you can also invoke the script from its parent directory with `./snowpipe.py`, or you\ncan run from the `src` directory with `python -m snowpipe_cli`.\n\nShow the script help, including the subcommands:\n\n```shell\nsnowpipe -h\n```\n\nShow subcommand help:\n\n```shell\nsnowpipe \u003csubcommand\u003e -h\n```\n\nRun a subcommand:\n\n```shell\nsnowpipe \u003csubcommand\u003e \u003cconfig_file\u003e \u003cother_args\u003e...\n```\n\nEnable debug logging:\n\n```shell\nsnowpipe -d \u003csubcommand\u003e \u003cconfig_file\u003e\n```\n\n## Contributing\n\nInstall the prerequisites:\n\n```shell\npip install -r requirements.txt\n```\n\nBuild the package in the `dist` directory\n\n```shell\n\npython3 -m build\n```\n\nUpload to pypi\n\n```shell\ntwine upload --repository pypi dist/*\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphdata%2Fsnowpipe-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphdata%2Fsnowpipe-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphdata%2Fsnowpipe-cli/lists"}