semvec/pypi-packages huggingface dataset:
gyg-reader 0.1.1
Retrieve booking details from GetYourGuide orders
License: MIT

# GygReader

A tool for suppliers on the the GetYourGuide platform to retrieve booking details.
Ideal to automize the processing of GetYourGuide bookings.

## What it does
Unfortunatly GetYourGuide does not provide webhooks or an API for suppliers to retrieve details from bookings. This can be a problem if GetYourGuide orders need to be processed automatically or registered in your own application/backend.

However an email is sent to the supplier for each booking with the GetYourGuide booking number in the subject. Using services like Zapier or inbound email parsing of Mailgun or SendGrid a webhook can be send to an endpoint retrieving the subject of the GetYourGuide booking email.
After parsing the GetYourGuide order number from the subject the **GygReader** can be used to retrieve the order details and further process the information.
For example in Django retrieving the GetYourGuide order number from a SendGrid webhook can look like this:

```
def endpoint_for_webhook(request):
  subject = request.data["subject"]
  re.search('(GYG)(\d+)',subject).group(0)
```

## How to install and use
To install run:
```
pip install gyg_reader
```

Example use:
```
from gyg_reader import GygReader


gygreader = GygReader("your@email.com", "your_password")
booking = gygreader.get_booking("GYG11111111")
```
Where GYG11111111 is a GetYourGuide booking number, which can be retrieved like in the example above from the email subject.

`booking` contains following dictionary:
```
{'customer_email': 'die@hard.com',
 'customer_name': 'John Mcclane',
 'customer_phone': '+1 202-456-1111',
 'Tour in NYC',
 'amount': '1'}
```

The full response containing the full booking data can be access following:
```
gygreader.response.json()
```

## Requirements
* requests
* lxml
multisplitby 0.0.1
Split an iterable into multiple using arbitrary predicates.
License: MIT
Requires Python: >=3.5
Keywords: iteration

multisplitby |build| |coverage|
===============================
Split an iterable into multiple using arbitrary predicates.

This package comes with a single function: ``multisplitby.multi_split_by``.

For all lists ``values`` and ``predicates``, the following conditions are always true:

1. ``1 + len(predicates) = len(list(multi_split_by(values, predicates)))``
2. ``values == itertools.chain.from_iterable(multi_split_by(values, predicates))``

Normal usage with one predicate:

.. code-block:: python

   >>> values = range(4)
   >>> predicates = [lambda x: 2 < x]
   >>> list(map(list, multi_split_by(values, predicates)))
   [[0, 1, 2], [3]]

Normal usage with several predicates:

.. code-block:: python

   >>> values = range(9)
   >>> predicates = [lambda x: 2 < x, lambda x: 4 < x, lambda x: 7 < x]
   >>> list(map(list, multi_split_by(values, predicates)))
   [[0, 1, 2], [3, 4], [5, 6, 7], [8]]

If no values are given, will result in ``|predicates| + 1`` generators, all yielding empty lists.

.. code-block:: python

   >>> values = []
   >>> predicates = [lambda x: 2 < x, lambda x: 4 < x, lambda x: 7 < x]
   >>> list(map(list, multi_split_by(values, predicates)))
   [[], [], [], []]

If no predicates are given, will result in a single generator that yields the original list:

.. code-block:: python

   >>> values = range(4)
   >>> predicates = []
   >>> list(map(list, multi_split_by(values, predicates)))
   [[0, 1, 2, 3]]

Installation
------------
Install from PyPI with:

.. code-block:: bash

   $ pip install multisplitby

or get the latest code from `GitHub <https://github.com/cthoyt/multisplitby>`_ with:

.. code-block:: bash

   $ git clone https://github.com/cthoyt/multisplitby.git
   $ cd multisplitby
   $ pip install -e .

.. |build| image:: https://travis-ci.com/cthoyt/multisplitby.svg?branch=master
    :target: https://travis-ci.com/cthoyt/multisplitby

.. |coverage| image:: https://codecov.io/gh/cthoyt/multisplitby/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/cthoyt/multisplitby
hdlcomposer 0.32
HDL simulation and autoverification made agile
License: MIT
Keywords: VHDL Verilog simulation verification parse hierarchy

# HDL Composer <img src="/docs/img/icon.png" alt="HDL Composer" width="48px">
### HDL simulation and autoverification made agile

<br>

#### :information_source: Most relevant features:

:star: Automate simulation runs with parameter randomization

:star: Generate stimuli HDL packages

:star: Automate verification of simulation results

:star: Parse HDL and build object-oriented representations of your design

:star: Automatic sources location and compilation

:star: Compile and include vendor libraries

:star: Handle multiple testbenches with several user-defined wave views in a single run

:star: Display and save waveforms with GtkWave

:star: Diff simulation result waveforms

:star: Replay ILA / ChipScope captures in simulation
bookmarks-parser 0.1.3
netscape bookmarks parser
License: MIT
Requires Python: >=3.5,<4.0

# bookmarks-parser
[![Build Status](https://travis-ci.org/andriyor/bookmarks-parser.svg?branch=master)](https://travis-ci.org/andriyor/bookmarks-parser)
[![codecov](https://codecov.io/gh/andriyor/bookmarks-parser/branch/master/graph/badge.svg)](https://codecov.io/gh/andriyor/bookmarks-parser)
[![image](https://img.shields.io/pypi/v/bookmarks-parser.svg)](https://pypi.org/project/bookmarks-parser/)
[![image](https://img.shields.io/pypi/l/bookmarks-parser.svg)](https://pypi.org/project/bookmarks-parser/)
[![image](https://img.shields.io/pypi/pyversions/bookmarks-parser.svg)](https://pypi.org/project/bookmarks-parser/)

Parsing Netscape bookmark (Google Chrome, Firefox, ... export files) .

## Installation
```
$ pip install bookmarks-parser
```

## Usage
```python
import pprint
import bookmarks_parser

bookmarks = bookmarks_parser.parse("bookmarks.html")
pprint.pprint(bookmarks)
```
[output example](https://github.com/andriyor/bookmarks-parser/tree/master/tests/tests_data)

## Development
Install [Poetry](https://poetry.eustace.io/docs/)   
```
$ poetry install
```
run tests
```
$ poetry run pytest --cov=bookmarks_parser
```

## License
[MIT](https://choosealicense.com/licenses/mit/)