NNstorm cloud automation
Project description
NNstorm cloud
Install
Install latest stable release from PyPI:
pip install nnstorm-cloud
Set up development version
git clone https://github.com/NNstorm/nnstorm-cloud.git
cd nnstorm-cloud
pip install -e .
Set up for usage
Create Azure ssh keys:
ssh-keygen -t rsa -b 4096 -f $HOME/.ssh/azure_key.pem -P ""
Set these in $HOME/.profile
or source it in your shell's .rc
file or just in the current shell.
export NNSTORM_AZURE_AUTH_LOCATION=${HOME}/.azure/NNSTORM_azure_credentials.json
export NNSTORM_AZURE_KEYVAULT=<your azure keyvault name>
Run this to store service credentials locally:
az ad sp create-for-rbac --sdk-auth > $NNSTORM_AZURE_AUTH_LOCATION
client_id=$(cat $NNSTORM_AZURE_AUTH_LOCATION | python3 -c "import sys, json; print(json.load(sys.stdin)['clientId'])")
az keyvault set-policy -n $NNSTORM_AZURE_KEYVAULT --spn ${client_id} --secret-permissions delete get list set --key-permissions create decrypt delete encrypt get list unwrapKey wrapKey
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file nnstorm_cloud-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: nnstorm_cloud-0.4.5-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f33c0c15cd06815948cdfa42cb904d882de2eadaa12ce807c86749a7e7715d3 |
|
MD5 | a10c00fe02a38e81c25729f1bf8ce6cc |
|
BLAKE2b-256 | 710a8e26f8d3095851fd9c84536a5ac7c9df9f352c9d475373f9ed226df87148 |