semvec/pypi-packages huggingface dataset:
jrwhypy 0.1.1
Jumping Rivers: Why Python
Requires Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.12.*

# Python packages

These packages were created using the poetry python package.

https://github.com/sdispater/poetry

To rebuild this package, clone the repo and install poetry.

The following commands at the project root will then be useful

* `poetry install` - grab and install all the dependencies necessary for building the package.
* `poetry build` - build the wheels and tar for the package
* `poetry publish` - publish the package to pypi

If you want to build your own package from scratch, the README for poetry is a good source.

## Usage

To use the package during a session:

`import jrwhypy`

### Data sets

The package has a data module for loading any data required.

e.g

`jrwhypy.data.load("bond")`
protosaurus 0.3.2
Protocol Buffers at runtime
Requires Python: >=3.8

# Protosaurus

Parse and create ProtoBuffer messages at runtime. Deserialize Protobuf from Kafka using `kcat` and a schema registry.

[![Pip Action Status][actions-pip-badge]][actions-pip-link]
[![Wheel Action Status][actions-wheels-badge]][actions-wheels-link]
[![PyPi][pypi-badge]][pypi-link]


[actions-pip-link]:        https://github.com/oberbichler/protosaurus/actions?query=workflow%3APip
[actions-pip-badge]:       https://github.com/oberbichler/protosaurus/workflows/Pip/badge.svg
[actions-wheels-link]:     https://github.com/oberbichler/protosaurus/actions?query=workflow%3AWheels
[actions-wheels-badge]:    https://github.com/oberbichler/protosaurus/workflows/Wheels/badge.svg
[pypi-link]:               https://pypi.org/project/protosaurus/
[pypi-badge]:              https://img.shields.io/pypi/v/protosaurus

## Installation

```bash
pip install protosaurus
```

## Usage

## Deserialize Protobuf from Kafka using a schema registry

If a schema registry is available, Protosaurus can deserialize Protobuf messages in Kafka automatically:

```bash
kcat -C -e -F <kafka.config> -t <topic> -f "%o\\n%k\\n%R%s" | protosaurus - --schema-registry <url>
```

Using [pipx](https://pipx.pypa.io/):

```bash
kcat -C -e -F <kafka.config> -t <topic> -f "%o\\n%k\\n%R%s" | pipx run protosaurus - --schema-registry <url>
```

## Parse Proto in Python

Protosaurus can parse `.proto` definitions at runtime without using `protoc`. This allows Protobuf byte arrays to be converted to JSON and vice versa.

```python
import json
from protosaurus import Context
from base64 import b64decode

# create a context which stores the proto schemas
ctx = Context()

# add protos by specifying name and content
ctx.add_proto('diet.proto',
    """
    syntax = "proto3";
    enum Diet {
        carnivorous = 0;
        herbivorous = 1;
    }
    """)

# the proto can be imported via the specified name
ctx.add_proto('animal.proto',
    """
    syntax = "proto3";
    import "diet.proto";
    message Animal {
        string name = 1;
        Diet diet = 2;
        double length = 3;
    }
    """)

# convert a message from base64 string...
data = ctx.to_json('Animal', b64decode('CglJZ3Vhbm9kb24QARkAAAAAAAAkQA=='))

# ...or hex string
data = ctx.to_json('Animal', bytes.fromhex('0a09496775616e6f646f6e1001190000000000002440'))

print(data)
# >>> '{"name":"Iguanodon","diet":"herbivorous","length":10}'


# convert json to protobuf
data = ctx.from_json('Animal', json.dumps({"name":"Iguanodon","diet":"herbivorous","length":10}))

print(data)
# >>> b'\n\tIguanodon\x10\x01\x19\x00\x00\x00\x00\x00\x00$@'
```
quest-maker-api-shared-library 1.0.5
This package contains code shared by the Quest Maker microservices.
Requires Python: >=3.11

# Quest Maker API Shared Library

The Quest Maker API Shared Library provides a set of reusable components and utilities for building applications using the Quest Maker API. This library aims to simplify common tasks, enhance code consistency, and facilitate the development of projects related to quest management.