Saravanan666/pypi-org huggingface dataset:
Package: azure-shell
An interactive Azure CLI 2.0 command line interface.[Note] Microsoft official Azure CLI 2.0 shell can be found atAzure/azure-cli-shellFeaturesAuto-completion of Azure CLI group, subgroups, commands, and
parametersSyntax highlightingCommand historySupported EnvironmentsPython versions: 2.7, 3.3, 3.4, 3.5, 3.5, 3.6 and maybe moreOS: Mac, Ubuntu, CentOS, Bash-on-Windows, or any platform where
azure-cli can be installedPrerequisitesYou need Azure CLI 2.0 installed as prerequisites for azure-shell.
Please refer toInstall Azure CLI
2.0and install it if not yet installedInstallationThe azure-shell requires python and pip to install. You can install the
azure-shell using pip:pip install azure-shellIf you’ve already have azure-shell installed and want to upgrade to the
latest version, you can upgrade like this:pip install --upgrade azure-shellUsageOnce you’ve installed the azure-shell, you can run azure-shell by simply
typing azure-shell:azure-shellYou can exit the azure-shell by typing either exit or quit:azure> exitBasically you can run azure-shell without making any configurations but
you can give options to azure-shell to change its default behabior:azure-shell --help

Usage: azure-shell [-h] [--version] [--basedir BASEDIR] [--config CONFIG]
                   [--index INDEX]

An interactive Azure CLI command line interface

optional arguments:
  -h, --help         show this help message and exit
  --version          show program's version number and exit
  --basedir BASEDIR  Azure Shell base dir path ($HOME/.azureshell by default)
  --config CONFIG    Azure Shell config file path
                     ($HOME/.azureshell/azureshell.conf by default)
  --index INDEX      Azure Shell index file to load ($HOME/.azureshel/cli-
                     index-<azure_cli_version>.json)Azure Shell Index GeneratorYou can generate an index for azure-shell using
azure-shell-index-generator command. Please be noted that it will take
time before all data generation works are doneazure-shell-index-generator --output ~/.azureshell/cli-index.jsonBasically you don’t need to generate the index by yourself as
azure-shell automatically downloads an index from its repository and
load it for commands and parameters completion in startup time. But you
also can give azure-shell your index using –index option.azure-shell --index ~/.azureshell/cli-index.jsonContributingBug reports and pull requests are welcome on GitHub athttps://github.com/yokawasa/azure-shellMore InformationGet started with Azure CLI
2.0Install Azure CLI
2.0
Package: azure-simple-email
azure_simple_emailPython library to send email trough azure service apiThis tool is very simple to use provided you already have an active account with Microsoft Azure Cloud.To ba able to access Azure Api this library will look for 3 environment variablesAZURE_EMAIL_CLIENT_ID
AZURE_EMAIL_CLIENT_SECRET
AZURE_EMAIL_AUTHORITYYou can find these values inside your Azure Entra DI services,Moreover to send an email you need to have a valid Microsoft email account inside the organizationThe you call instantiate AzureSendEmail passing the sender's email as paramenterthis is the example that I have tested here of course with different email address.azure_email = AzureSendMail(user_id='service@example.com')
azure_email.add_recipient('marco@test.com')
azure_email.add_attachment('../README.md')
azure_email.send_email(subject='test message', text='Hi, we are testing this python tool')
Package: azure-simple-pipeline
Azure simple pipeline package is implemented for deploying a Continuous Deployment or Delivery system (CD) by Azure services.You can use this simple pipeline for deploying your personal solution in 2 environments: staging and production.It is part of theeducational repositoriesto learn how to write stardard code and common uses of the TDD, CI and CD.PrerequisitesComing soon.InstallationComing soon.Change LogSeeCHANGELOG.mdfor details.LicenseThis package is released under the MIT license.  SeeLICENSEfor details.
Package: azuresphere-device-api
Microsoft Azure Sphere Device REST APIs for PythonMicrosoft Azure Sphere Device REST APIs for Python enables users to interact with an Azure Sphere device using REST APIs.InstallationYou can find Microsoft Azure Sphere Device REST APIs for Python onPyPi.If you haven't already,install and/or upgrade the pipof your Python environment to a recent version.Runpip install azuresphere_device_api.UsageBefore using Microsoft Azure Sphere Device REST APIs for Python, you must install the Azure Sphere SDK.To install the Azure Sphere SDK on Windows, follow theWindows Quickstart.To install the Azure Sphere SDK on Linux, follow theLinux Quickstart.SampleThedisplay_ip_deviceid samplegets the list of attached devices, displays the device IP address, and device ID.Active device IP addressBy default, this package will target Azure Sphere devices with IP address192.168.35.2. To change the active Azure Sphere device, callset_active_device_ip_addressAPI as below:from azuresphere_device_api import devices
devices.set_active_device_ip_address("<Device_Ip_Address")DocumentationMicrosoft Azure Sphere Device REST APIs for Python documentation is available atAzure Sphere Device REST APIs Docs.Supported host operating systemsWindows 10 and 11Ubuntu 18.04, 20.04, 22.04
Package: azuresphere-imagemetadata
Microsoft Azure Sphere Image Metadata for PythonMicrosoft Azure Sphere Image Metadata for Python enables users to interact with an Azure Sphere Image.InstallationYou can find Microsoft Azure Sphere Image Metadata for Python onPyPi.If you haven't already,install and/or upgrade the pipof your Python environment to a recent version.Runpip install azuresphere-imagemetadata.UsageBefore using Microsoft Azure Sphere Image Metadata for Python, you must install the Azure Sphere SDK.To install the Azure Sphere SDK on Windows, follow theWindows Quickstart. - To install the Azure Sphere SDK on Linux, follow theLinux Quickstart.Supported host operating systemsWindows 10 and 11Ubuntu 18.04, 20.04, 22.04
Package: azuresshconfig
Generate SSH config file from Azure ARM VM inventry in subscriptionIntroductionazuresshconfig is a simple script that collects Azure ARM Virtual
Machine(VM) inventry in subscription and generate a SSH config entries
to be appended to $HOME/.ssh/config (the file is newly created if no
exist). This is like an Azure version ofec2sshoraws-ssh-configthat strongly inspired this initiative. This would be very helpful when
you manage lots of VMs that have dynamic IP assignment settings and need
frequent VM up-and-down operations for them which causes the change of
IPs assigned to VMs. In such a case, azuresshconfig will definitly make
your SSH life easy.Installationpip install azuresshconfigConfigurationGenerate client profile template file by executing the following
command.azuresshconfig --initConfigure the client profile file, in which you add your service
principal account info to access your resources in Azure via Azure APIs.vi $HOME/.azure/azuresshconfig.json

{
    "subscription_id": "<YOUR SUBSCRIPTION ID>",
    "client_id": "<YOUR APPLICATION CLIENT IP>",
    "client_scret": "<YOUR APPLICATION CLIENT SCRET>",
    "tenant_id": "<YOUR TENANT ID>"
}For those who don’t know how to create service principal, there is a
great instruction:Use Azure CLI to create a service principal to
access resources. If you have Azure CLI 2.0 command installed on your
evironment, you can create your service principal and configure its
access to your azure resources with a single command ‘az ad sp
create-for-rbac’.Suppose your app id uri is ‘http://unofficialism.info’ and role you want
to give for the app is ‘Reader’, you can create your service principal
like this:az ad sp create-for-rbac -n "http://unofficialism.info" --role readerYou will get an output like this, and with them you can fill out the
client profile file:{
  "appId": "c36x4b4f-bef6-422e-bd3b-65057e7ab065",        # -> client_id in client profile file
  "displayName": "azure-cli-2017-03-30-05-16-59",
  "name": "http://unofficialism.info",
  "password": "32126d32-7453-4053-3353-c420d4ffef2e",     # -> client_scret in client profile file
  "tenant": "72f988bf-86f1-41af-91cb-2d7cd011db47"        # -> tenant_id in client profile file
}For the detail of service principal role, please refer toBuilt-in
roles for Azure Role-Based Access Control.UsageAssuming all required packages are installed and rightly configured,
you’re ready to run azuresshconfig``` azuresshconfig –helpusage: azuresshconfig.py [-h] [–version] [–init] [–profile PROFILE]
[–output OUT
Package: azure-status
Azure StatusThis is a python package which scrapesAzure Status Health pageUsagefrom azure_status import AzureStatus
a.status()
stats = a.status()

stat[0]
'Last updated 19 seconds ago'

stat[1]['americas']['compute']['virtual_machines']
{'east_us': 'good', 'east_us_2': 'good', 'central_us': 'good', 'north_central_us': 'good', 'south_central_us': 'good', 'west_central_us': 'good', 'west_us': 'good', 'west_us_2': 'good', 'canada_east': 'good', 'canada_central': 'good', 'brazil_south': 'good'}All the keys are lower case, stripped, snake cased, and without any chars except [a-z0-9\ .]
Package: azure-storage
Microsoft Azure Storage SDK for PythonThis package was the Microsoft Azure Storage bundle.Starting with v0.37.0, this package is deprecated. Please install the service specific packages prefixed byazure-storageneeded for your application.The complete list of available packages can be found at:https://aka.ms/azsdk/python/allHere's a non-exhaustive list of common packages:azure-storage-blob: Blob storage clientazure-storage-file-share: Storage file share clientazure-storage-file-datalake: ADLS Gen2 clientazure-storage-queue: Queue storage client
Package: azure-storage-utils
# azure-storage-utilsAzure Storage Utilities performs several linked functions for azure storage accounts:It enables translation of the flat storage format of blobs to the hierarchical format human users expect when navigating through storage accounts in the Azure Web Portal or Azure Storage Explorer application. This translated hierarchical storage is returned as a dictionary that can be saved locally or written back to the storage container.It compares hierarchical maps of storage containers to produce a differential map that tracks gains and losses in file count and byte size, or the overall difference between two maps.
Package: azurestoragewrap
Inspired by the implementation of data modeling in [SQLAlchemy](https://github.com/zzzeek/sqlalchemy) lib - What the great Job! Thank You! -, i wrote this little wrapper around the [Azure Storage SDK for Python](https://github.com/Azure/azure-storage-python) to simplify modeling data structures and easily implement Client Side Encryption for my own needs. Would be lucky if this lib helps other peoples too. GitHub Issues, Stars, Forks and Contribution are Welcome! Have fun with azurestoragewrap. Microsoft Azure Storage is a Microsoft-managed cloud service that provides storage that is highly available, secure, durable, scalable, and redundant. Azure Storage consists of Blob storage, Table Storage, and Queue storage.  All Data can be accessed from anywhere in the world via HTTP or HTTPS.
Package: azure-synapse
Microsoft Azure Synapse SDK for PythonThis package was the Microsoft Azure Synapse bundle.It is deprecated. Please install the service specific packages prefixed by azure-synapse needed for your application.The complete list of available packages can be found at:https://aka.ms/azsdk/python/allHere's a non-exhaustive list of common packages:azure-synapse-accesscontrolazure-synapse-artifactsazure-synapse-sparkazure-synapse-managedprivateendpointsazure-synapse-monitoringRelease History0.1.1 (2020-04-13)Deprecate azure-synapse0.1.0 (2020-02-20)Initial Release
Package: azure-synapse-accesscontrol
Microsoft Azure SDK for PythonThis is the Microsoft Azure Synapse AccessControl Client Library.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see theazure sdk python release.UsageFor code examples, seeSynapse AccessControlon docs.microsoft.com.Provide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History0.7.0 (2021-08-10)Updated API version to "2020-12-01"0.6.0 (2021-03-09)Internal bugfixes (re-generated with latest generator)Stop Python 3.5 support0.5.0 (2021-02-09)Update to API version 2020-08-010.4.0 (2020-12-08)Internal bugfixes (re-generated with latest generator)0.3.0 (2020-09-15)Internal bugfixes (re-generated with latest generator)0.2.0 (2020-07-01)Initial Release
Package: azure-synapse-managedprivateendpoints
Microsoft Azure SDK for PythonThis is the Microsoft Azure Synapse Managed Private Endpoints Client Library.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see theazure sdk python release.UsageFor code examples, seeSynapse Managed Private Endpointson docs.microsoft.com.Provide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History0.4.0 (2021-08-10)Updated API version to "2020-12-01" which is the default API versionAdded API version "2021-06-01-preview" supportManagedPrivateEndpointsClientis renamed toVnetClient0.3.0 (2021-03-09)Internal bugfixes (re-generated with latest generator)Stop Python 3.5 support0.2.0 (2021-02-09)Internal bugfixes (re-generated with latest generator)0.1.0 (2020-12-08)Initial Release
Package: azure-synapse-monitoring
Microsoft Azure SDK for PythonThis is the Microsoft Azure Synapse Monitoring Client Library.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see theazure sdk python release.UsageFor code examples, seeSynapse Monitoringon docs.microsoft.com.Provide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History0.2.0 (2021-03-09)Internal bugfixes (re-generated with latest generator)Stop Python 3.5 support0.1.0 (2020-12-08)Initial Release
Package: azure-synapse-spark
Microsoft Azure SDK for PythonThis is the Microsoft Azure Synapse Spark Client Library.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see theazure sdk python release.DisclaimerAzure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691UsageFor code examples, seeSynapse Sparkon docs.microsoft.com.Provide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History0.7.0 (2021-10-05)Features AddedAddedLivyStatementStatesandLivyStates0.6.0 (2021-08-10)Updated API version to "2020-12-01"0.5.0 (2021-03-09)Internal bugfixes (re-generated with latest generator)Stop Python 3.5 support0.4.0 (2020-12-08)Internal bugfixes (re-generated with latest generator)0.3.0 (2020-09-15)Internal bugfixes (re-generated with latest generator)0.2.0 (2020-07-01)Initial Release
Package: azure-template
Azure Template Package client library for PythonThis template package matches necessary patterns that the development team has established to create a unified SDK. The packages contained herein can be installed singly or as part of theazurenamespace. Any other introductory text should go here.This package has been tested with Python 3.7+.For a more complete set of Azure libraries, seehttps://aka.ms/azsdk/python/all.Getting startedFor a rich example of a well formatted readme, please checkhere.In addition, this is anexample readmethat should be emulated. Note that the top-level sections in this template align with that of thetemplate.Key conceptsBullet point list of your library's main concepts.ExamplesExamples of some of the key concepts for your library.TroubleshootingRunning into issues? This section should contain details as to what to do there.Next stepsMore sample code should go here, along with links out to the appropriate example tests.ContributingIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.
Package: azuretoolbox
AzureToolboxUtilities for working with Azure services. This version provides tools for:KeyvaultDatabaseInstallationpipinstallazuretoolboxKeyvaultGet secrets from Azure Keyvault.PrerequisitesTo use the Keyvault utilities, you need to have the following environment variables set:AZURE_TENANT_IDAZURE_CLIENT_IDAZURE_CLIENT_SECRETexportAZURE_TENANT_ID="<your-tenant-id>"exportAZURE_CLIENT_ID="<your-client-id>"exportAZURE_CLIENT_SECRET="<your-client-secret>"Usagefromazuretoolbox.keyvaultimportKeyVaultvault_url="https://<keyvault-name>.vault.azure.net"secret=KeyVault(vault_url).get_secret("SecretName")print(secret)DatabaseConnect to and query an Azure SQL Database.PrequisitesTo use the Database utilities, you need to haveODBC Driver 18 for SQL Serverinstalled. You can download it fromhere.Usagefromazuretoolbox.databaseimportDatabasedb=Database()server='<server>'# Typically 'tcp:<server-name>.database.windows.net,1433'database='<database-name>'username='<username>'password='<password>'db.connect(server,database,username,password)print(db.query('<query-string>'))
Package: azure-translator
# azure-translator-python-sdk[![CircleCI](https://circleci.com/gh/Work4Labs/azure-translator-python-sdk/tree/master.svg?style=shield&circle-token=d06ed7a66ca3c1565f4defd3ca8f4fe6137008a6)](https://circleci.com/gh/Work4Labs/azure-translator-python-sdk/tree/master)[![PyPI version](https://badge.fury.io/py/azure-translator.svg)](https://badge.fury.io/py/azure-translator)![License](https://img.shields.io/pypi/l/azure-translator.svg)For more information on Azure translator API, follow[their documentation](http://docs.microsofttranslator.com/text-translate.html#!/default/get_Translate).Usage:```python>>> from azure_translator import Translator>>> t = Translator('your_api_key')>>> t.translate('Je suis fatigué')'I am tired'>>> t.translate("Hello", to='fr')'Bonjour'>>> t.translate("Aujourd'hui", source_language='fr')'Today'```
Package: azure-tts
https://learn.microsoft.com/en-us/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux%2Cubuntu%2Cdotnetcli%2Cdotnet%2Cjre%2Cmaven%2Cnodejs%2Cmac%2Cpypi&pivots=programming-language-pythonTo install OpenSSL 1.x from sources on Debian/Ubuntu based systems that don't have it, do:wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf -
cd openssl-1.1.1u
./config --prefix=/usr/local
make -j $(nproc)
sudo make install_sw install_ssldirs
sudo ldconfig -v
export SSL_CERT_DIR=/etc/ssl/certs
Package: azure-utils
Azure UtilsAzure Utilities for pythonDocumentationTechnical documentationcan be foundhere.SetupMake sure you have Python 3.6.x (or higher) installed on your system. You can download ithere.Recommended (but Optional) -> Expand this section to setup and activate a virtual environment.Install (or upgrade) virtualenv:python3 -m pip install --upgrade virtualenvCreate your virtualenv namedvenv:python3 -m virtualenv venvActivate your virtual environmentOn Unix (Mac or Linux):source venv/bin/activateOn Windows:venv\scripts\activatepip install azure_utilsBasic Usageimportos,sysfromazure_utils.blob_storageimportAZContainer# Get the working directory of this filewd=os.path.abspath(os.path.dirname(sys.argv[0]))# Create a container objectaz=AZContainer(account_url="https://<account_name>.blob.core.windows.net",account_key="<account_key>",container_name="<container_name>")# Get a list of all files in the container and print the first 5files=az.list_files(remote_folderpath='/')print(files[:5])# Upload a file to the containeraz.upload_file(remote_filepath='/test.csv',local_filepath=f'{wd}/test_data/upload/test.csv',overwrite=True)# Download the file from the containeraz.download_file(remote_filepath='/test.csv',local_filepath=f'{wd}/test_data/download/test.csv',overwrite=True,smart_sync=True)# Delete the file from the containeraz.delete_file(remote_filepath='/test.csv')# Upload a folder to the containeraz.sync_to_remote(remote_folderpath='/',local_folderpath=f'{wd}/test_data/upload/',overwrite=True,)# Download the folder from the containeraz.sync_to_local(remote_folderpath='/',local_folderpath=f'{wd}/test_data/download/',overwrite=True,smart_sync=True,)# Delete all files in the containeraz.delete_folder(remote_folderpath='/',)# Delete all local metadataaz.clear_local_meta(f'{wd}/test_data/')Contributors:Alice ZhaoConnor Makowski
Package: azure-vault-loader
Azure Vault LoaderAzure Vault Loader is a Python command-line utility for securely loading secrets from Azure Key Vault into environment variables. It is designed to enable secure execution of commands on remote servers, by ensuring that secrets are loaded as environment variables only at the time of command execution, thereby reducing the exposure of sensitive data.The utility makes use of Azure's role-based access control (RBAC) and Azure Key Vault, a cloud service for securely storing and accessing secrets. A "secret" in Azure Key Vault could be a password, a token, an API key, a connection string, or any other piece of data that is sensitive and needs to be kept secure.InstallationUse the package managerpipto install Azure Vault Loader.pipinstallazure-vault-loaderUsageload_azure_secrets-kobfuscation_key-pprincipals-mmap-uurl-ccommandwithorwithoutarguments-k, --obfuscation_key: The key used for reading an obfuscated principals file. If this option is provided, the tool will attempt to decrypt the service principals file.-p, --principals: The Azure service principals. This file can be in plain JSON format or obfuscated using theobfuscate_service_principalscommand.-m, --map: The JSON file containing secret names and the environment variable names as key-value pairs. This map dictates which Azure secrets get loaded into which environment variables.-c, --command: The command to run after loading secrets. This can include one or more arguments.-u, --url: The URL of your Azure Key Vault.-v, --verbose: Enable verbose mode.Secret-Environment Variables MapThemapargument requires a JSON file that contains a mapping between the secret names in your Azure Key Vault and the environment variables that they correspond to.Here is an example of what the contents of the JSON file might look like:{"databasepasswordsecret":"DB_PASSWORD","apikeysecret":"API_KEY"}In the example above,database_password_secretandapi_key_secretare the names of secrets stored in Azure Key Vault. When theload_azure_secretscommand is run, the secrets corresponding to these names will be fetched from the Azure Key Vault, and then loaded into theDB_PASSWORDandAPI_KEYenvironment variables, respectively.The purpose of this is to abstract the actual values of the secrets, allowing you to change the secrets in the Azure Key Vault without having to change your code or your environment setup. As long as the secret name and corresponding environment variable name remain the same, you can change the value of the secret in Azure Key Vault at any time, and theload_azure_secretscommand will always fetch the most current value.obfuscate_service_principals-jjson-ooutput-kkey-j, --json: The JSON file containing service principals to obfuscate.-o, --output: The output file for the obfuscated service principals.-k, --key: The key for obfuscation.LicenseApache 2.0