semvec/pypi-packages huggingface dataset:
folderikon 0.0.2
A Windows utility to set folder icons
License: MIT
Requires Python: >=3.6

# FolderIkon

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/folderikon?color=g)
![PyPI - Status](https://img.shields.io/pypi/status/folderikon)
![PyPI - License](https://img.shields.io/pypi/l/folderikon)
![Lines of code](https://img.shields.io/tokei/lines/github/demberto/folderikon?label=loc)

> A Windows utility to set folder icons.

Normally, setting a folder icon (not to be confused with a folder picture) through Windows Explorer requires an icon of ICO format, this means converting it first. Also changing the folder name will make the icon ineffective.

**FolderIkon** will take a JPG, ICO or a PNG file, convert it, create/edit the configuration file `desktop.ini`, set the appropriate permissions and [notify the Shell](https://docs.microsoft.com/windows/win32/api/shlobj_core/nf-shlobj_core-shchangenotify) about the icon. The icon will be hidden as it has generally no other use, *also it is a 256x256 image, nothing beautiful*.

However tilted images e.g those of product boxes etc. will not be displayed properly. A square image is recommended for optimum results. I suggest not to use images of other aspect ratios although they will work.

## Installation

Requires Python 3.6+ and Windows

```
pip install --upgrade folderikon
```

## Usage

Set the first ICO, JPG or PNG found in the current folder as the folder icon (subfolders not included).
```
folderikon
```

Set `image` as the folder icon of the current folder. `image` can be a URL as well.
```
folderikon -i image
```

Set `image` as the folder icon of `folder` and name the icon as `icon`
```
folderikon -i image -d folder -o icon
```

## Note
It may take some time; or a restart of Windows Explorer for the folder icon to appear.

## Command-line options
```
folderikon [-h] [--image IMAGE] [--icon ICON] [--folder FOLDER] [--delete-original] [--raise-on-existing] [--dont-hide-icon] [--silent] [--no-color]

A Windows utility to set folder icons.

optional arguments:
  -h, --help            show this help message and exit
  --image IMAGE, --input IMAGE, -i IMAGE
                        The image to set as folder icon. JPG, ICO and PNG formats are supported. URLs can be specified as well. Defaults to the       
                        first JPG/PNG file found in the current folder.
  --icon ICON, --output ICON, -o ICON
                        Output icon file name. Defaults to the name of first JPG/PNG found in current folder saved with a '.ico' extension.
  --folder FOLDER, -d FOLDER
                        The path of the folder whose icon is to be set. Defaults to the current folder.
  --delete-original, -f
                        Deletes the original image.
  --raise-on-existing   Raise an exception if the folder already has an icon.
  --dont-hide-icon      The folder icon is marked as hidden by default. Use this option to not do it.
  --no-color            Disables colored output.
```

### [TODO](TODO.md)

### [Changelog](CHANGELOG.md)

## Licence
FolderIkon is distributed under the **MIT License**
betting 0.0.4
Utility library for converting between betting odds
License: MIT

# Betting

Utility library to convert between betting odds.

Converts to/from:

- American/Moneyline odds
- Decimal odds
- Fractional odds
- Implied probability

## Installation

`pip install betting`

## Functions

- `american_odds_to_decimal_odds(american_odds: float) -> float`
- `american_odds_to_fractional_odds(american_odds: float) -> Tuple[float, float]`
- `american_odds_to_probability(american_odds: float) -> float`
- `decimal_odds_to_american_odds(decimal_odds: float) -> float`
- `decimal_odds_to_fractional_odds(decimal_odds: float) -> Tuple[float, float]`
- `decimal_odds_to_probability(decimal_odds: float) -> float`
- `fractional_odds_to_american_odds(numerator: float, denominator: float) -> float`
- `fractional_odds_to_decimal_odds(numerator: float, denominator: float) -> float`
- `fractional_odds_to_probability(numerator: float, denominator: float) -> float`
- `probability_to_american_odds(p: float) -> float`
- `probability_to_decimal_odds(p: float) -> float`
- `probability_to_fractional_odds(p: float) -> Tuple[float, float]`

## Usage

```
from betting import convert

print(f"The implied probability for decimal odds of 3 is {decimal_odds_to_probability(3.)}")
```