Saravanan666/pypi-org huggingface dataset:
Package: azurify
Azure resource access library for Shopify AppsThe motivation for this library arose out of a data analysis project for a Shopify
Store.This package allows easy access to some Azure resources, particullarly:create/delete a keyvaultpopulate keyvault with Shopify relevant secretsread secretsconvertlist[dict]data to JSON, CSV and Excelstore data in Azure blobThe source for this project is available here.Sample usageInstall package withpip install azurifycreate your environment variables:AZURE_DEFAULT_OBJECT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_TENANT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_CLIENT_SECRET=xxxxxx-xxxxxxxxxxxx-xxxxxxxxxx-xxxxxxxx
AZURE_DEFAULT_GROUP_NAME=my-resources
AZURE_SUBSCRIPTION_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_DEFAULT_LOCATION=uscentralRun:fromazure.identityimportDefaultAzureCredentialfromazurify.azsecretsimportAzureSecretsAZURE_KEYVAULT_NAME="enter your keyvault name here"defmain():"""Simple test case"""azsecrets=AzureSecrets(vault_url=f"https://{AZURE_KEYVAULT_NAME}.vault.azure.net/",credential=DefaultAzureCredential(),)print(azsecrets.SHOPDOMAIN)if__name__=="__main__":main()Printsmyshop.myshopify.comPackage structure.
├── LICENSE
├── Readme.md
├── azurify
│   ├── Readme.md
│   ├── __init__.py
│   ├── azconverter.py
│   ├── azkeyvault.py
│   ├── azsecrets.py
│   ├── azstorage.py
│   ├── test_azconverter.py
│   ├── test_azkeyvault.py
│   ├── test_azsecrets.py
│   └── test_azstorage.py
├── requirements.txt
├── run.py
└── setup.pyPackage creationAssuming package resides in directoryazurify.
First runrun.pyto check everthing is functioning.Creating the packagecd azurify
pip install wheel
python3 setup.py bdist_wheel sdistLocal testingDirectory structure:.
├── azurify
└── testazurifycd testazurify
python3 -m venv .venv
source .venv/bin/activate
pip install -e ../azurifyUpload to test repositorycd ../azurify
pip install twine
twine check dist/*
twine upload -r testpypi dist/*Upload to PyPitwine upload dist/*
Package: azurisorting
These sorters are based on speed with 3 options: AzuriSorter is the default sorter used. AzuriFastSorter is meant for small datasets, it doesn’t perform any corrections. AzuriCorrectiveSorter is a sorter that runs through the data as many times specified it sacrifices speed for accuracy.
Fixes: Fixed Major error in which causes the package to be unusable. Attempts to fix: #2
Package: azurlane
Repository for the Python library for the unofficial Azur Lane APIExampleImporting module and instancing the apifromazurlane.azurapiimportAzurAPIapi=AzurAPI()Getting ship informationType: Multilingualapi.getShip(ship="Enterprise")orapi.getShipByName(name="Enterprise")Type: IDWorks with string or integer. Do not use integer if the id is less than
100 since integers such as 077 is a syntax error in Pythonapi.getShip(ship=115)api.getShip(ship="115")or# sid stands for "ship id" since id is a reserved function name in Pythonapi.getShipById(sid=115)api.getShipById(sid="115")MaintainersAugustSpimyIn Collaboration WithsynopNode()Support ServerDiscord Link:https://discord.gg/aAEdys8
Package: azutils
azutilsazutilsis to provide convenient Python functions for Azure Services.Databricks,Azure Batch ?install$pipinstallazutilsusageforDatabricksfromazutils.databricksimportDatabricksClienttoken="..."dc=DatabricksClient(token=token)# list clustercluster_list=dc.clusters_list()forclusterincluster_list:print(cluster)# * cluster_name: some-cluster#   * cluster_id: XXXX-XXXXXX-xxxxxxx#   * spark_version: 7.1.x-scala2.12#   * driver_node_type: Standard_DS12_v2#   * node_type: Standard_DS3_v2#   * cost: 96.208 + 79.408 * NUM [YEN/HOUR]cluster_id="XXXX-XXXXXX-xxxxxxx"print(dc.cluster_cost(cluster_id=cluster_id,start_time="2020-10-01",end_time="2020-10-31"))# display cluster usage with `seaborn`cluster_id_1="XXXX-XXXXXX-xxxxxx1"cluster_id_2="XXXX-XXXXXX-xxxxxx2"dc.cluster_running_time_as_sns(cluster_id=[cluster_id_1,cluster_id_2])
Package: azyc
azyc: Yaml to azure deployment parameter json converterHelper to create large large deployment-parameters.json files from small yaml filesUsageYou can specify deployment variables in a yml file.Additionally to simple variables, you can add file pathes, which are read and written into the deplyoemnt file as string.KeyVault values as also supported.Examples:foo:barbooleanParam:truenumericParam:22arrayParam:array:-id:firstIdname:firstName-id:secondIdname:secondNameobjectParam:object:id:firstIdname:firstNamefileParam:file:path_to_file# will be read as utf-8, escaped and passed as stringbinaryFileParam:binary:path_to_binary_file# will be read as binary, base64 encoded and passed as stringyamlParam:yaml:path_to_file# will be read as utf-8 yaml, optionally transformed and passed as escaped stringoverwrite:# optional, you can overwrite or add some parts in the yaml file with overwritetitle:other titlekeyVaultParam:keyVault:/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>secretName:ExamplePasswordkeyVaultParamWitVersion:keyVault:/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>secretName:ExamplePasswordsecretVersion:cd91b2b7e10e492ebb870a6ee0591b68Basic call:python3-mazyc-ipath_to_config.yml-oparamters.jsonYou can add/overwrite parameters on the call:python3-mazyc-ipath_to_config.yml-oparamters.json--paramsuffix=bar--parambooleanParam=false