semvec/pypi-packages huggingface dataset:
iothub-service-client 2.0.0
iothub-service-client is now azure-iot-hub

# iothub-service-client is now azure-iot-hub

This package has been renamed. Use `pip install azure-iot-hub` instead.

New package: [https://pypi.org/project/azure-iot-hub/](https://pypi.org/project/azure-iot-hub/)

The new package contains many breaking changes to APIs from the 1.x versions. Please see the [samples](https://github.com/Azure/azure-iot-sdk-python/tree/main/azure-iot-hub/samples) for details.

If you still need to use the old 1.x version APIs, the archival source code is still available [here](https://github.com/Azure/azure-iot-sdk-python/tree/v1-deprecated).

Note that 1.x is fully deprecated and no longer supported.
iothub-client 2.0.0
iothub-client is now azure-iot-device

# iothub-client is now azure-iot-device

This package has been renamed. Use `pip install azure-iot-device` instead.

New package: [https://pypi.org/project/azure-iot-device/](https://pypi.org/project/azure-iot-device/)

The new package contains many breaking changes to APIs from the 1.x versions. Please see the [migration guide](https://github.com/Azure/azure-iot-sdk-python/blob/main/migration_guide.md) for details.

If you still need to use the old 1.x version APIs, the archival source code is still available [here](https://github.com/Azure/azure-iot-sdk-python/tree/v1-deprecated).

Note that 1.x is fully deprecated and no longer supported.
unit4 0.0.2
Package for pulling datasets using the Unit4 Multivers API
Requires Python: >=3.7
Keywords: python,sampleproject

<p align="center">
  <img alt="logo" src="https://www.zypp.io/static/assets/img/logos/zypp/white/500px.png"  width="200"/>
</p>

Unit4 Multivers API
===
> Package for pulling datasets using the Unit4 Multivers API

[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI](https://img.shields.io/pypi/v/unit4)](https://pypi.org/project/unit4/)
[![Latest release](https://badgen.net/github/release/zypp-io/unit4)](https://github.com/zypp-io/unit4/releases)


## Installation
```commandline
pip install unit4
```

## Usage
for an extensive list of examples, please refer to the [Unit4 test suite](unit4/tests/test_unit4.py).

```python
from unit4 import Unit4

unit4 = Unit4()
data = unit4.request_data(endpoint="/api/AdministrationGroupList/All")

```

## environment variables
The following environment variables need to be set:
- UNIT4_CLIENT_ID: the client id of the registered application
- UNIT4_CLIENT_SECRET: the client secret associated with the application
- UNIT4_REFRESH_TOKEN: The refresh token. To obtain the refresh token, please refer to the official [Unit 4 API Documentation](https://api.online.unit4.nl/V221/Documentation/Guide/OAuth)
yahtzee-solve 0.0.1
A package and command line tool for Yahtzee
Requires Python: >=3.8

# yahtzee
A Yahtzee-solving python package and command line tool.

The algorithm is mathematically guaranteed to have the best strategy. That is, it maximizes expected score for a single game of Yahtzee.

The command line tool (`play_yahtzee`) guides you through a game and advises you on the best moves to make.

The algorithm assumes "vanilla" rules. It attains an average score of ~230 points.

## Installation

Clone the repository:

`$ git clone git@github.com:dpmerrell/yahtzee.git`

Make sure you have python >= 3.8.
I recommend using a virtual environment:

`$ source my_py38_env`

Install via pip:

```
(my_py38_env)$ cd yahtzee
(my_py38_env)$ pip install .
```

Congratulations! The `yahtzee` package and `play_yahtzee` command line tool are now installed.

## Command line tool
After installation, you can run the interactive command line tool `play_yahtzee`:

```
(my_py38_env)$ play_yahtzee

###### STARTING GAME ######

    Roll all of your dice!
    Enter all of your dice here:
    
```
The prompts will lead you through a game of Yahtzee and advise you on the best moves to make.

## Python package
The `yahtzee` python package has the following components:
* A dynamic programming algorithm that solves the whole game (`solve_game`, `solve_turn`)
* Precomputed results for that algorithm (`PRECOMP_STATE_VALUES`) (you can compute those results for yourself, but it will take hours)
* An object-oriented interface for the algorithm to interact with a game of Yahtzee (`OptimalPlayer`, `InteractiveGame`)
* A command line script based on that interface (`play_interactive_game()`)

The source code is small -- look through it for details.

## Algorithmic ideas

Yahtzee is a [Markov Decision Process](https://en.wikipedia.org/wiki/Markov_decision_process).
It has convenient properties that make it straightforward to solve.

The solver uses dynamic programming to iterate through every possible state and action in a game of Yahtzee.
For each state, the algorithm computes the maximal expected score (subject to the game's randomness), and the corresponding action.
The algorithm stores these expected scores and optimal actions in a pair of tables.
The table of actions is called the _policy_.

It turns out Yahtzee's state space has an interesting structure that makes it economical to 
1. Store a cache of expected scores for a very small number (2^13 = 8192) of states.
2. At play time, recompute a small portion of the entire game's policy at the beginning of each turn.

This design strikes a balance between memory and computation. A very small number of expected values are stored, but some computation is required during the game.

(In a fully automated setting where speed matters, it may be better to just store the entire policy.)


## Legal stuff

This software is distributed under an MIT license, see LICENSE.txt.

The name "Yahtzee" may or may not be trademarked. I don't know, Hasbro can get in touch with me if they have problems with what I'm doing