semvec/pypi-packages huggingface dataset:
offline-pass 0.0.4
Offline Pass
Keywords: python,first package

# Offline Pass

## Description

This package can be used to read and validate COVID1-9 Vaccin Pass in New Zealand.

## Installation

```bash
python3 -m pip install offline-pass
```

## Usage

```python
from offline_pass import OfflinePassReader

sebPass = 'NZCP:/1/2KCE3IQEJB5DCMSLMY3VKUIBE2QFSAJQUUAXQH3ENFSDU53FMI5G46TDOAXGSZDFNZ2GS5DZFZUGKYLMORUC43T2AUNGDJQEGACBUYUWANAGE5TDURUEAY3PNZ2GK6DUQJ4CM2DUORYHGORPF53XO5ZOO4ZS433SM4XTEMBRHAXWG4TFMRSW45DJMFWHGL3WGF4CU2DUORYHGORPF5XHUY3QFZRW65TJMQYTSLTIMVQWY5DIFZXHUL3DN5XHIZLYORZS65RRM53GK4TTNFXW4ZJRFYYC4MDEOR4XAZMCORLGK4TJMZUWCYTMMVBXEZLEMVXHI2LBNRXVA5LCNRUWGQ3POZUWIUDBONZXCY3SMVSGK3TUNFQWYU3VMJVGKY3UUNUWO2LWMVXE4YLNMV2FGZLCMFZXI2LFNYQEO5LZEBIGSZLSOJSWUZTBNVUWY6KOMFWWKZ2NMF2GQ2LFOVRWI33CNIYTSOBSFUYTCLJRG4DVAEG5333ZLM2CA6CAMPSGLICR73KYIDR2JFNZ2BPEJ25HCU4M6SQU6EBTRF5YB2T7BBILADDOHBQLXP22IVKP6NBMFATTPNVMJOPNJN36EDMUXRYDWNMNKT3ADL4S72AXEV27'

passReader = OfflinePassReader([
  "did:web:nzcp.identity.health.nz"
], './cache/')

oPass = passReader.read(sebPass)

try :
  passReader.validate(oPass)
  print(oPass.protocol_version)
  print(oPass.type)
except Exception as e:
  print(e.message)

print('Pass Validation : ', oPass.valid)
print('Pass Content : ', oPass.content())
print('Pass Expiration : ', oPass.exp)

```
pytorch-clip 2021.12.21.0
Pytorch API to work with CLIP models.

# pytorch_clip: Pytorch API to work with CLIP models.

## Install package

```bash
pip install pytorch_clip
```

## Install the latest version

```bash
pip install --upgrade git+https://github.com/bes-dev/pytorch_clip.git
```

## Features
- Supports original CLIP models by OpenAI and ruCLIP model by SberAI.

## Usage

### Simple code

```python
import torch
from pytorch_clip import get_models_list, get_clip_model

print(get_models_list())

model, text_processor, image_processor = get_clip_model()
```
loreio-sdk 0.5.9
Lore IO sdk

#Lore IO python SDK


####Interactive shell:
```bash
python -m loreiosdk wss://ui.getlore.io/storyteller
 ```  
More information here : https://loreio.atlassian.net/wiki/spaces/LD/pages/711720969/Spyglass+Interactive+Shell

####Scripting:
 ```python
from loreiosdk.spyglass_script import Spyglass   

# get your spyglass instance
spyglass_instance = Spyglass('wss://ui.getlore.io/storyteller', 'USERNAME',
'PASSWORD', dataset_id='DATASET_ID')

# cmd will trigger an sync command and will return an JSON object containing the result    
# passing a keyword argument = None is the equivalent of passing --argument without any value in the shell
# result will always be in the following format:
# {'seqno': 0, 'message': 'the message from the b-e', 'data': {"Some json/array": 0}}
# based the command used, message and/or data can be None  
result = spyglass_instance.cmd("Command Name", "argument1", "argument2", Keyword_arg1=True, arg2=None)

# streaming_cmd will return a generator.
# Today it is only compatible with the "chart"
# result will be formatted like
for result in spyglass_instance.streaming_cmd('chart', 'chart_id', streaming=None):
    print result  

# async_cmd will trigger a none blocking command, allowing you to do something else
# and if you need the result later, you can use get_result_for_cmd with the seqno
# to get the status ('IN_PROGRESS' or 'DONE') and if done, the result of your command.
seqno = spyglass_instance.async_cmd("Command Name", "Positional_argument", Keyword_arg=1)
print "Do Something else"
status, result = spyglass_instance.get_result_for_cmd(seqno)

```



##Contributors resources

Build using:
```bash
update version in setup.py and __init__.py

python setup.py sdist bdist_wheel  
```
Publish using:
```bash
twine upload dist/loreio-sdk-VERSION.tar.gz
```
kgc-chart 1.1.0
Generating Krüger-Gauge-Circular-Charts
Keywords: python,gauge chart,circular gauge chart,charts


krüger-gauge-circular-chart is an addition to the gauge-circular-chart. the added feature is another data dimension the chart, by adjusting the bar width of each bar seperately.

below there is a code example.

""" 
import kcg_chart as krueger_circular_gauge_chart

data = {"Pigs":(2,50), "Cows":(3,350), "Dogs":(5,125), "Chickens":(0.7, 20)}

k_c_g_chart = krueger_circular_gauge_chart(data)

k_c_g_chart.draw()

k_c_g_chart.add_labels()

k_c_g_chart.save_and_display_image()

print(k_c_g_chart) """

the data passed is hypothetical data of a farm, with the first element the age at which the animals are slaughtered, the second element the amount of animals slaughtered the main difference between a krüger-gauge-circular-chart and a bar chart with variable bar width is the functionality of display. a bar chart displays the whole amount as an area (A = length * width), which makes sense when the two variables are compatible to multiply (e.g. per Capita CO2 emissions and number of people). However, as seen in the hypothetical data above, this chart type is not compatible, as the interesting fact is not the whole amount of years lived by the animals, but the comparison of amount of animals slaughtered and their age.

est. December 2021
Christoph Krüger