semvec/pypi-packages huggingface dataset:
argparse-addons 0.12.0
Additional argparse types and actions.
License: MIT
Requires Python: >=3.6
Keywords: argparse

About
=====

Additional Python argparse types and actions.

Project homepage: https://github.com/eerimoq/argparse_addons

Installation
============

.. code-block:: text

    $ pip install argparse_addons

Examples
========

Integer type
------------

The script. See `examples/integer.py`_ for the complete script.

.. code-block:: python

   parser.add_argument('--min-max',
                       type=argparse_addons.Integer(0, 255))
   parser.add_argument('--min',
                       type=argparse_addons.Integer(0, None))
   parser.add_argument('--max',
                       type=argparse_addons.Integer(None, 255))
   parser.add_argument('--any',
                       type=argparse_addons.Integer())

Error message for the ``--min-max`` argument.

.. code-block:: text

   $ python3 examples/integer.py --min-max -1
   usage: integer.py [-h] [--min-max MIN_MAX] [--min MIN] [--max MAX] [--any ANY]
   integer.py: error: argument --min-max: -1 is not in the range 0..255

Error message for the ``--min`` argument.

.. code-block:: text

   $ python3 examples/integer.py --min -1
   usage: integer.py [-h] [--min-max MIN_MAX] [--min MIN] [--max MAX] [--any ANY]
   integer.py: error: argument --min: -1 is not in the range 0..inf

Error message for the ``--max`` argument.

.. code-block:: text

   $ python3 examples/integer.py --max 1000
   usage: integer.py [-h] [--min-max MIN_MAX] [--min MIN] [--max MAX] [--any ANY]
   integer.py: error: argument --max: 1000 is not in the range -inf..255

Error message for the ``--any`` argument.

.. code-block:: text

   $ python3 examples/integer.py --any a
   usage: integer.py [-h] [--min-max MIN_MAX] [--min MIN] [--max MAX] [--any ANY]
   integer.py: error: argument --any: invalid integer value: 'a'

All values within allowed ranges.

.. code-block:: text

   $ python3 examples/integer.py --min-max 47 --min 1000 --max -5 --any 1
   --min-max: 47
   --min:     1000
   --max:     -5
   --any:     1

Contributing
============

#. Fork the repository.

#. Install prerequisites.

   .. code-block:: text

      pip install -r requirements.txt

#. Implement the new feature or bug fix.

#. Implement test case(s) to ensure that future changes do not break
   legacy.

#. Run the tests.

   .. code-block:: text

      make test

#. Create a pull request.

.. _examples/integer.py: https://github.com/eerimoq/argparse_addons/blob/master/examples/integer.py
databet 2023.1.2
datasets with the same summary statistics that look like the alphabet
License: MIT

# The databet
![The alphabet](https://raw.githubusercontent.com/mscroggs/databet/main/img/all.png)

This repo contains 27 datasets: 26 of these resemble the letters of the alphabet, the 27th is a star:

![The starting dataset](https://raw.githubusercontent.com/mscroggs/databet/main/img/star.png)

For each of the datasets (to 2 decimal places):

- The mean of the x-values is 0.50
- The mean of the y-values is 0.52
- The standard deviation of the x-values is 0.17
- The standard deviation of the y-values is 0.18
- The correlation coefficient is 0.16

You can read more about these datasets at [mscroggs.co.uk/blog/101](https://mscroggs.co.uk/blog/101).

## Databet Python package
### Installing with pip
If you want to experiment with these datasets using Python, you can install the databet package
by running:

```bash
pip install databet
```

Alternatively, you can install databet directly from this repo by running:

```bash
pip install git+https://github.com/mscroggs/databet
```

### Using the databet package
Once you've installed the databet Python package, 
you can load a letter or create a plot of a letter using the `load_letter` and `plot_letter`
functions:

```python
import databet

a = databet.load_letter("A")

databet.plot_letter("B", "b.png")
```

You can also plot words using the `plot_word` function:

```python
import databet

databet.plot_word("DATABET", "databet.png")
```
pyrolld 0.2.2
A package to generate color sequences from videos and images
License: MIT
Requires Python: >=3.8.1,<4.0.0

# pyrolld

A package to generate color sequences from videos and images

Its main use is to create a set of unique colors from an image and then
sort the colors according to the selected sorting method.

## Installation

You can simply pip install this package:

```bash
pip install pyrolld
```

## Usage

Here is an example:

```python
from rolld import Roller


filepath = "image.png"
image = Roller(filepath)
rolled = image.roll()

rolled.show()
```

You can also chose between 3 different sorting methods `["HSV", "HSL", "YIQ", "LUM"]`:

```python
from rolld import Roller


filepath = "image.png"
image = Roller(filepath)
rolled = image.roll(sorter="LUM")

rolled.show()
```


## Example

Here is an example. We are going to use the image `lena.png`:

<img src="https://raw.githubusercontent.com/Vitaman02/pyrolld/main/assets/images/lena.png" width="250" height="250">

And with this code we will "roll" the image:

```python
from rolld import Roller


filepath = "lena.png"
roller = Roller(filepath)

sorters = ["HSV", "HSL", "YIQ", "LUM"]
for sorter in sorters:
    image = roller.roll(sorter=sorter)
    image.show()

```

Here is the output of all the sorting methods:

### Luminance

<img src="https://raw.githubusercontent.com/Vitaman02/pyrolld/main/assets/images/lena_lum.png">

### YIQ

<img src="https://raw.githubusercontent.com/Vitaman02/pyrolld/main/assets/images/lena_yiq.png">

### HSV

<img src="https://raw.githubusercontent.com/Vitaman02/pyrolld/main/assets/images/lena_hsv.png">

### HSL

<img src="https://raw.githubusercontent.com/Vitaman02/pyrolld/main/assets/images/lena_hsl.png">