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.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

stacklet_client_sinistral-0.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stacklet_client_sinistral-0.2.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.66.1 importlib-metadata/5.2.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.1

File hashes

Hashes for stacklet_client_sinistral-0.2.0.tar.gz
Algorithm Hash digest
SHA256 78bd3de27a9cf37470e3c8dcc4ca77fa526b296ac806cf67fb82e36b3305fb34
MD5 8aa2931b4bea50d1c971b9248643ad1a
BLAKE2b-256 cf54631b5e0f8c3a60ce4540897db2ce2339a6dede413eed2ec834ce09a810b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stacklet_client_sinistral-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.66.1 importlib-metadata/5.2.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.1

File hashes

Hashes for stacklet_client_sinistral-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44e096cc7e5afca267f13bcda67340b7963ecab1fafab851d554f8c71ce48f58
MD5 d642bbccf940a8357f9c1864aaf3e17d
BLAKE2b-256 904bc429edb8bcd1847f7f2fd551041c5e4df1cbd8b7b65f475d157cbfebfab4

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