semvec/pypi-packages huggingface dataset:
geizhals 0.0.9
A parser for the Geizhals.eu website.

# geizhals

The geizhals library will give you the best price of a product from Geizhals or a related site.
This information can be used in automations, e.g. to notify you when a price drops.


## Install

```bash
pip install geizhals
```

## Usage

```python
from geizhals import Geizhals

# setup the product data
ID_or_URL = 'https://geizhals.de/bose-quietcomfort-35-ii-schwarz-a1696985.html'

# the id of the product is also valid
#ID_or_URL = 1696985

# possible values: AT/EU/DE/UK/PL
locale = 'DE'

# parse the data
obj = Geizhals(ID_or_URL, locale)
device = obj.parse()

# print the available product information
print(device)
```

Get the `product_id` from the geizhals website of your chosen product by opening the *Price History* in a new browser tab (right-click on the price history > open in new tab).
The URL of this site reveals the ID, e.g. `https://geizhals.de/?phist=1696985` with a `product_id` of `1696985`.
vrypy 0.3
Collection of Python utilities

# vrypy
Collection of Python utilities.

## vrypy.test.deep

Test utilities inspired by Perl [Test::Deep](https://metacpan.org/pod/Test::Deep)

    >>> from vrypy.test.deep import ignore, bag, super_dict_of

The `ignore()` for ignoring part of the structure during test comparison:

    >>> assert {'key': 'value'} == {'key': ignore()}
    >>> assert ["value1", "value2", "value3"] == ["value1", ignore(), ignore()]

The `bag(List)` for order-insensitive comparison:

    >>> assert {'key': [1, 3, 2]} == {'key': bag([1,2,3])}
    >>> assert [1,2,3,4] != bag([1,2,3])

The `super_dict_of(Dict)` for dict comparison with ignoring superfluous keys:

    >>> assert {'key': 'value', 'not interesting key': 'value'} \
    ...        == super_dict_of({'key': 'value'})
    >>> assert {'key': 'value'} != super_dict_of({'expected key': 'value'})