semvec/pypi-packages huggingface dataset:
pyvarint 0.0.1a2
Varints, a method of serializing integers using one or more bytes 
Requires Python: >=3.6,<4.0
Keywords: hypercore,hypercore-protocol

# pyvarint

[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/pyvarint/status.svg)](https://drone.autonomic.zone/hyperpy/pyvarint)

## Varints, a method of serializing integers using one or more bytes

## Install

```sh
$ pip install pyvarint
```

## Example

```python
from random import sample
from pyvarint import decode, encode

ten_rand_ints = sample(range(100), 10)

for rand_int in ten_rand_ints:
    encoded = encode(rand_int)
    decoded = decode(encoded)
    assert decoded == rand_int
```
merkle-tree-stream 0.0.1a5
A stream that generates a merkle tree based on the incoming data
Requires Python: >=3.6,<4.0
Keywords: hypercore,hypercore-protocol

# merkle-tree-stream

[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/merkle-tree-stream/status.svg)](https://drone.autonomic.zone/hyperpy/merkle-tree-stream)

## A stream that generates a merkle tree based on the incoming data

> A hash tree or merkle tree is a tree in which every leaf node is labelled
> with the hash of a data block and every non-leaf node is labelled with the
> cryptographic hash of the labels of its child nodes. Merkle trees in Dat are
> specialized flat trees that contain the content of the archives.

## Install

```sh
$ pip install merkle-tree-stream
```

## Example

```python
import hashlib

def _leaf(node, roots=None):
    return hashlib.sha256(node.data).digest()

def _parent(first, second):
    sha256 = hashlib.sha256()
    sha256.update(first.data)
    sha256.update(second.data)
    return sha256.digest()

merkle = MerkleTreeGenerator(leaf=leaf, parent=parent)

merkle.write(b"a")
merkle.write(b"b")

assert len(merkle) == 2 + 1
```
hypercore-crypto 0.0.1a4
Cryptography primitives for Hypercore
Requires Python: >=3.6,<4.0
Keywords: hypercore,hypercore-protocol

# hypercore-crypto

[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/hypercore-crypto/status.svg)](https://drone.autonomic.zone/hyperpy/hypercore-crypto)

## Cryptography primitives for Hypercore

## Install

```sh
$ pip install hypercore-crypto
```

## Example

```python
from hypercore_crypto import data, key_pair
from pysodium import crypto_sign_PUBLICKEYBYTES

public_key, secret_key = key_pair()
assert len(public_key) == crypto_sign_PUBLICKEYBYTES
print(data(b"hello world").hex())
```
onbon 0.0.9
Onbon dynamic area protocol package
Requires Python: >=3.5
Keywords: onbon,dynamic,area

## Onbon 6th series Dynamic area protocol package

Simple package to update and delete dynamic areas on Onbon led controllers
listed below:
* BX6QL
* BX6Q1
* BX6Q2
* BX6Q3
* BX6Q2L
* BX6Q3L

Package implements only three commands: **Ping**, **DeleteDynamicArea** 
and **UpdateDynamicArea**.

### Dependencies
* Pillow - for image processing

### Example
Example below creates creeping line dynamic area for one minute:

    from onbon import (
        LEDClient, ImageData, DynamicArea, ImageFont,
        Devices, RunModes, DisplayModes
    )

    font = ImageFont.truetype('arial.ttf', 12)  # os windows
    text = ImageData.from_text('test test test', (32, 16), font)
    dynamic_area = DynamicArea(
        text,
        runmode=RunModes.CYCLE_TIMEOUT,  # looped with timeout
        displaymode=DisplayModes.CONTINUOUS_MOVE_LEFT,  # creeping line
        timeout=60  # one minute
    )
    led = LEDClient(('192.168.1.15', 5005), Devices.BX6Q2L)
    led.delete_areas()  # clears all existing dynamic areas
    led.update_areas(dynamic_area)
icd10-c2d 0.0.2
A package to get ICD10 Description from ICD10 Codes
Requires Python: >=3.5

## Introduction

+ This is an Open-Source Project intended to aid the developers in the Healthcare Industry.
+ This package helps you to get the ICD-10 Code's Description when provided with a ICD-10 Code/ICD-10 Codes List

## How To Use

+ Install using `pip install icd10-c2d`
+ Import using `from icd10.code2description import Code2Description as c2d`
+ Get ICD Code's Description using `c2d.getICDDescription(["ICD10 Code 1","ICD10 Code 2","ICD10 Code N"])`
+ Finally, it looks like this :

```
from icd10.code2description import Code2Description as c2d
c2d.getICDDescription(["ICD10 Code 1","ICD10 Code 2","ICD10 Code N"])
```

+ Returns you a Map of ICD Codes with their Descriptions.

> Note : All the imports/dependencies are automatically installed.

## Bugs & Issues

+ If you find a Bug or have an Idea, please feel free to drop a mail @ sakethaux1111@gmail.com!
flat-tree 0.0.1a8
Utilities for navigating flat trees
Requires Python: >=3.6,<4.0
Keywords: hypercore,hypercore-protocol

# flat-tree

[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/flat-tree/status.svg)](https://drone.autonomic.zone/hyperpy/flat-tree)

## Utilities for navigating flat trees

> Flat Trees are the core data structure that power Hypercore feeds. They allow
> us to deterministically represent a tree structure as a vector. This is
> particularly useful because vectors map elegantly to disk and memory. Because
> Flat Trees are deterministic and pre-computed, there is no overhead to using
> them. In effect this means that Flat Trees are a specific way of indexing
> into a vector more than they are their own data structure. This makes them
> uniquely efficient and convenient to implement in a wide range of languages.

## Install

```sh
$ pip install flat-tree
```

## Example

```python
from flat_tree.accessor import FlatTreeIterator

tree_iter = FlatTreeIterator()
assert tree_iter.index == 0
assert tree_iter.parent() == 1
assert tree_iter.parent() == 3
```