Skip to main content

Sinistral CLI

Project description

Sinistral CLI

Setup

$ poetry shell
$ poetry install

Create a config file at ~/.stacklet/sinistral/config.json:

{
  "api": "https://api.sinistral.stacklet.io",
  "region": "us-east-1",
  "cognito_client_id": "5bogrjv9om1tjhfsd1c8d2kouo",
  "cognito_user_pool_id": "us-east-1_F4Ca4BFQS",
  "idp_id": "idp-4a301a48-cd63-4c6c-caf7-419c5b0ee737",
  "auth_url": "https://auth.sinistral.stacklet.io"
}

Login with a cognito user:

$ sinistral login --username $USER --password $PASSWORD

Or, login with SSO:

$ sinistral login

Run your first command:

$ sinistral projects list

Python client:

from stacklet.client.sinistral.client import sinistral_client

sinistral = sinistral_client()
policy_client = sinistral.client('policies')
print(policy_client.list())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stacklet_client_sinistral-0.2.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

stacklet_client_sinistral-0.2.3-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file stacklet_client_sinistral-0.2.3.tar.gz.

File metadata

  • Download URL: stacklet_client_sinistral-0.2.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.1 Darwin/22.6.0

File hashes

Hashes for stacklet_client_sinistral-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d7c121ef78dcecbd51dd601f3daef61e91e52e8335c4e2e64ea9cb09de1da362
MD5 2945602f61a24626e5f20a30df8d8673
BLAKE2b-256 80274074d39d8b460aec3f789239aae1c579d2736fb1d7ac17000de74cf36d03

See more details on using hashes here.

File details

Details for the file stacklet_client_sinistral-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bdc537d21f6f104a5582d1ae73918c134c4e69ecb8c9f7903e85d8eb15b6fca
MD5 5513b70a062d9735902cf8330c7e9c1b
BLAKE2b-256 4d393aef09f3fea050edd022712790e75c7d0ae23e1446446ed9ecc084b03fab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page