semvec/pypi-packages huggingface dataset:
u8488a 0.1.2
Keysight U8488A Powermeter Driver for USRP Power Calibration
License: MIT

# Unofficial driver for Keysight U8488A 

This is a simple driver for Keysight U8488A power meter. There are 2 classes in this package. You can use this package individually or for USRP calibration.

## Install 

```
$ pip install u8488a
```

## Example Usage 

```
from u8488a import base
from time import sleep

dev = base.PowerMeter()
# List available devices
devs = dev.get_device_list()

if len(devs) > 0:
    dev.open_device(devs(0))
else:
    print("No device found!")
    exit(1)

print("Available devices:")
print(devs)

# Setting frequency to 20 GHz
dev.frequency(20e9)

while True:
    # Read power level every second
    print(f"Power: {dev.get_power()} dBm")
    sleep(1)

```

## USRP TX Power Reference Level Calibration

This package includes "custom" driver for USRP calibration. `uhd_power_cal.py` scripts is installed with UHD installation by default. It's located under ```/usr/local/lib64/uhd/utils``.

Note: If you can't find uhd folder, it's probably under this directory ```/usr/local/lib/```

```
$ cd /usr/local/lib64/uhd/utils/
$ uhd_power_cal.py -d tx --meas-dev visa -o import=u8488a
```

Note: This can only be used for TX power calibration
saleor-social-auth 0.6.0
Social auth plugin (wx, alipay & etc.) for Saleor
License: MIT

# social_auth
Social auth plugin (wx, alipay &amp; etc.) for Saleor
> More details will come as the development goes on...

## Plugin Configuration Demo

```yaml
social_strategy: social_auth.strategy.SaleorPluginStrategy

social_storage: social_django.models.DjangoStorage

default_backend: google-openidconnect

social_auth_config: # yaml strings, see below
```

```yaml
# social_auth_config content demo

# https://www.cloudbees.com/blog/yaml-tutorial-everything-you-need-get-started
SOCIAL_AUTH_AUTHENTICATION_BACKENDS:
  - social_core.backends.google_openidconnect.GoogleOpenIdConnect
  - social_auth.backends.weapp.WeappAuth

SOCIAL_AUTH_GOOGLE_OPENIDCONNECT_KEY: xxxyyyzzz.apps.googleusercontent.com
SOCIAL_AUTH_GOOGLE_OPENIDCONNECT_SECRET: YOUR_GOIDC_SECRET

SOCIAL_AUTH_WEIXIN_WEAPP_KEY: wxaaabbbcccdddeee
SOCIAL_AUTH_WEIXIN_WEAPP_SECRET: YOUR_WEAPP_SECRET
```

![image](https://user-images.githubusercontent.com/1177332/150488501-89138aad-191d-43ef-8435-69729736b2ce.png)

## Env Props

```shell
# before `python manage.py migrate` 
export SOCIAL_AUTH_DB_INIT=true
# it may trigger `migrate` twice, but it's acceptable...
python manage.py migrate

unset SOCIAL_AUTH_DB_INIT
# you can run any django command without the extra(time-consuming) db init stuff of this plugin from now on
python manage.py runserver
```