Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python(feat): Add python CLI #147

Closed
wants to merge 1 commit into from
Closed

Conversation

marcsiftstack
Copy link
Contributor

$ sift-cli --help                                                       
Usage: sift-cli [OPTIONS] COMMAND [ARGS]...

Options:
  --auth_file PATH  Path to the auth file.  [default:
                    /Users/mjulien/.sift/.auth.env]
  --help            Show this message and exit.

Commands:
  get-ingestion-config    Return an ingestion config by its client key.
  list-ingestion-configs  List ingestion configs using an optional filter.
  ping                    Test the connection to the Sift API.
$ sift-cli list-ingestion-configs --help                                
Usage: sift-cli list-ingestion-configs [OPTIONS]

List ingestion configs using an optional filter.

Options:
--filter TEXT  A Common Expression Language (CEL) filter string.
--help         Show this message and exit.
$ sift-cli ping                                                         
response: "Hello from Sift!"
$ sift-cli list-ingestion-configs --filter="client_key.contains('test')"
Results:

ingestion_config_id: "524b1e6e-1679-425c-801f-4e4787bd77ec"
asset_id: "1ef161c4-f9cf-4ebc-9a8a-41d35ae76d00"
client_key: "ch10-test-ch10-stream-81c82d0f56fac15e6358b30a4c7338adca5b3ced39c4b98ea098cf2fc6110b30"

ingestion_config_id: "6b7315b5-0613-4283-bf2c-4a0bfafb4312"
asset_id: "8288078c-4266-49ba-bd7a-d44ffc7e365c"
client_key: "test csv upload"

ingestion_config_id: "5b3995e6-8863-49bd-bf43-655d4f3f52cb"
asset_id: "f046496f-470a-4e93-8123-72aece8a6a84"
client_key: "sift-stream-test-100-100-73889f465b55caaf26f760c3f150d0651a0be46d045c7108c3503acd5f83d259"

ingestion_config_id: "1b46102c-dbfd-405d-9d56-20edac64a4b5"
asset_id: "f046496f-470a-4e93-8123-72aece8a6a84"
client_key: "sift-stream-test-500-100-564d11391786b350191fd7c12b321cda08b62f14959291f9c9adeed6fcaf6839"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant