semvec/pypi-packages huggingface dataset:
buckshot-roulette 0.1.1
Buckshot Roulette library for python, with complete game features & reasonable efficiency.
Requires Python: >=3.11

# Buckshot Roulette
> BETA- Things may be broken or not work as intended. If you find something wrong, make a PR or an Issue!

A Buckshot Roulette library ([PyPI](https://pypi.org/project/buckshot-roulette/)) for python, with complete game features & reasonable efficiency.

[What is Buckshot Roulette?](https://store.steampowered.com/app/2835570/Buckshot_Roulette/)

Mainly intended for use in developing engines to play the game optimally.

## Quickstart
```
pip install buckshot-roulette
```
```python
from buckshot_roulette import BuckshotRoulette

board = BuckshotRoulette(charge_count=4)
```
karton-dashboard 1.6.0
A small Flask application that allows for Karton task and queue introspection.

# Karton Dashboard

![](img/dashboard.png)

A small Flask application for Karton task and queue introspection.

## Usage

First of all, make sure you have setup the core system: https://github.com/CERT-Polska/karton

Then install karton-dashboard from PyPi:

```shell
$ pip install karton-dashboard

$ karton-dashboard run -h 127.0.0.1 -p 5000
```

The `karton-dashboard` is just a wrapper on the `flask` program, and it works with any arguments accepted by flask. For example `karton-dashboard --help`, or `karton-dashboard run -h 0.0.0.0 -p 1234`. See [flask documentation](https://flask.palletsprojects.com/en/1.1.x/cli/) for more information.

# Xref buttons

If you have other systems that store artifacts related to a specific karton task there's an option to easily link them in the task view.

You'll need to set the `xrefs` options of `dashboard` section in your `karton.ini` configuration file like so:

```ini
[dashboard]
xrefs={"mwdb": "https://mwdb.cert.pl/?q=karton:{root_uid}"}
```

Each link will be rendered as a button in the task view like so:

![](img/xref_button.png)


## Metrics

Karton tracks number of consumed, produced and crashed tasks for each service (identity).

Karton-dashboard exposes this information (in addition to some other task/queue statistics) on the `/varz` endpoint using Prometheus data format.

You can use this data to easily build custom karton dashboards and setup alerts for unusual events or high loads. Just point the data source URL to `https://karton-dashboard/varz` and configure the dashboard however you like.

Here are a few examples of how the data can be digested and presented in a grafana dashboard:

### `sum(karton_tasks{name!=""}) by (priority)`
![](img/grafana_priority.png)



### `sum(karton_tasks{name!=""}) by (status)`
![](img/grafana_status.png)



### `sum(karton_tasks{name!=""}) by (name)`
![](img/grafana_pending.png)


![Co-financed by the Connecting Europe Facility by of the European Union](https://www.cert.pl/uploads/2019/02/en_horizontal_cef_logo-e1550495232540.png)