semvec/pypi-packages huggingface dataset:
setSolver1-lukaswestholt 0.0.1
This script is solving set problems by brute-force.
Requires Python: >=3.10

This script is solving set problems by brute-force. See [HOWTO](#HOWTO).

# HOWTO
Use python3.10 or newer. Download it [here](https://www.python.org/downloads/). 

First import the module: `from main import search`

Now you can use the method `search(const_sets: dict[str, set[frozenset | int]], result: set[frozenset | int]) -> list[set] | None`

Where `const_sets` is a dictionary for the predefined constants and `result` is the wanted solution.
With the method `search` you can find the probably shortest way to this solution by the predefined constants
and normal set operations. With this method you will get a list of valid ways (mostly one way) back. 

Little example:
```
from main import search

# Here you set your predefined constants.
# Please make sure that you do not assign a variable letter twice.
# Python dictionaries will otherwise only store the last value and overwrite the previous ones.
const_sets: dict[str, set[frozenset | int]] = {
    "A": {frozenset({2, frozenset()}), frozenset({5})},
    "B": {frozenset(), frozenset({3}), frozenset({5})}
}

# Here you set your wanted solution.
result = {frozenset(), frozenset({3}), frozenset({5}), frozenset({frozenset()})}

search(const_sets, result)
```


See German examples [here](beispiele.md).

# Requirements

- python3.10 required

# Credits

- https://stackoverflow.com/a/25823885
- https://stackoverflow.com/a/13149770
- https://stackoverflow.com/a/176921
- https://stackoverflow.com/a/24065533
- https://stackoverflow.com/a/33945518
- https://stackoverflow.com/a/56143543
- https://stackoverflow.com/a/40876432
- https://stackoverflow.com/a/30986796
- https://stackoverflow.com/a/24261311
- https://stackoverflow.com/a/3274100
- https://stackoverflow.com/a/26576036
- https://stackoverflow.com/a/1482316
- https://stackoverflow.com/a/16543406
- https://stackoverflow.com/a/28845328
- https://stackoverflow.com/a/5931299
- https://stackoverflow.com/a/15768778
prependlicense 0.1.0b0
Python package for adding Apache v2.0 license for source files.
Requires Python: >=3.6

# addlicence

Python package for adding license for source files.

```sh
$ pip install addlicense
```

Usage:

```sh
python -m addlicense -extension py -folder src -author Odd Gunnar Aspaas -year 2021
```

Currently only support Apache v2.0.