semvec/pypi-packages huggingface dataset:
aicsapi-tool-python 0.3.2
Toolkit for Python backend template

# aicsapi-tool-python
```
|   .gitignore
|   .kvvars    # specifies environment variables needed by "keyvault_certgen.py" & "keyvault_utils.py"
|   LICENSE   
|   README.md
|   requirements.txt    # package dependencies
|   requirements_dev.txt    # required for packaging
|   setup.py    # for wrapping into a PyPI package
|
+---aicsapi_tool_python    # actual codes
|       appinsight_transport.py    # for logging custom events w/ correlation id to Azure Appinsights
|       keyvault_certgen.py    # provides utilities to generate X509v3 cert and upload to Azure KV
|       keyvault_tokenCache.py    # for caching credentials to save login time
|       keyvault_utils.py    # device-code sign in to Azure, get/import secret & cert to Azure KV
|       __init__.py
|
\---tests        # test_*.py performs unit test for the corresponding module
        test_appinsight_transport.py
        test_keyvault_certgen.py
        test_keyvault_tokenCache.py
        test_keyvault_utils.py  
```
## Description
A package to help Python API template in:  
 * Logging to Azure Application Insights 
 * Fetching secret from Azure Key Vault 
 * Generating self-signed certificate and upload it to Azure Key Vault
 * Caching credential token to save login time

## Installation
This package has been published to PyPI, so you can use  
`pip install aicsapi-tool-python`

## Note
When calling methods in `keyvault_utils` or `keyvault_certgen`, be sure to have the following environment variables set:  
~~~
KEY_VAULT_URL 
KEY_VAULT_SECRET_NAME 
KEY_VAULT_CERT_NAME
AZURE_TENANT_ID
~~~

## Example: Generate Self-signed Certification and Upload to Azure KV
  * Ensure required env. variables are loaded, create `.kvvars` under current working directory
~~~
KEY_VAULT_URL="https://[your keyvault name].vault.azure.net"  
KEY_VAULT_CERT_NAME="certificate name"
AZURE_TENANT_ID="your azure tenant id"
~~~

 * Run the following code snippet with  
`python certgen.py [your ASUS account name] [filename of generated key & cert]`
```python
# certgen.py

from aicsapi_tool_python.keyvault_certgen import generate_v3cert, upload_v3cert_to_kv
import sys

asus_account = sys.argv[1]
cert_name = sys.argv[2]

generate_v3cert( asus_account, cert_name )
upload_v3cert_to_kv( cert_name + '.pfx' )
```
helmpy 0.1.0rc20190802075106
HELMpy is an open source package of power flow solvers, including the Holomorphic Embedding Load Flow Method (HELM).

# HELMpy

[![pipeline status](https://gitlab.com/bengt/HELMpy/badges/master/pipeline.svg)](https://gitlab.com/bengt/HELMpy/commits/master)
[![coverage report](https://gitlab.com/bengt/HELMpy/badges/master/coverage.svg)](https://gitlab.com/bengt/HELMpy/commits/master)

HELMpy is an open source package of power flow solvers.

This package contains the Holomorphic Embedding Load flow Method (HELM) and
    the Newton-Raphson (NR) algorithm.
The intention of HELMpy is to support research, especially on the HELM,
    and to contribute with the development of open source code
    related to this subject.
The developed code is properly commented and organized
    so it would be easy to understand and modify.

## Compatibility

This package is compatible with Python 3.6 and 3.7.

## History

This package was developed by Tulio Molina and Juan José Ortega
    as a part of their thesis research
    to obtain the degree of Electrical Engineer
    at Universidad de los Andes (ULA) in Mérida, Venezuela.

## HELMpy Guide

Please refer to `HELMpy user's guide.pdf`.

## Setting up a virtual environment

Under Linux:

    python3.7 -m venv venv

## Activating the virtual environment

Under BASH:

    source venv/bin/activate

## Installing requirements

Anywhere:

    python -m pip install -r requirements.txt

## Running tests

    pytest test

## Freezing the requirements

    python -m pip freeze --all --exclude-editable > requirements.txt

## Commit all upgrades

    git commit requirements.txt
    git push origin master

## License - AGPLv3

	HELMpy, open source package of power flow solvers developed on Python 3
	Copyright (C) 2019 Tulio Molina tuliojose8@gmail.com and Juan José Ortega juanjoseop10@gmail.com

	This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

	This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

	You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.