semvec/pypi-packages huggingface dataset:
helsingborgalarm 1.0.1
Get alarms from Helsingborg Stad
License: MIT
Requires Python: >=3.5
Keywords: alarm helsingborg hbg

# helsingborgalarm
![GitHub](https://img.shields.io/github/license/jonasbjork/helsingborgalarm?style=for-the-badge)
![Twitter Follow](https://img.shields.io/twitter/follow/jonasbjork?style=for-the-badge&logo=twitter)

This package will download and format all current alarms presented at helsingborg.se homepage.

## Installation
```python
pip install helsingborgalarm
```

## Usage
To download and show current published alarms:
```python
import helsingborgalarm

h = HelsingborgAlarm()
h.print_larms()
```

## Help

No help yet.
youtube-dash-dl 1.0.0
Tool to download VoD of an ongoing stream without any time limitations.
License: MIT
Requires Python: >=3.7

# YouTube Dash DL
Tool to download VoD of an ongoing stream without any time limitations.

## How to use

### Install (pip)
```shell
pip install youtube_dash_dl
```

### Checking how much you can download back
```shell
yt_ddl <URL> -l
```
This will get the YouTube DASH manifest and calculate how much time you can go backwards for download. It will also give you all stream ids for download

### Downloading the whole stream
```shell
yt_ddl <URL> -o <OUTPUT>
```
This will get the stream from the beginning to the point of running the command and save it as OUTPUT (Use .mp4 file as output only!).

### Downloading specific part
```shell
yt_ddl <URL> -o <OUTPUT> --start <START_TIME> --duration <DURATION>
# or
yt_ddl <URL> -o <OUTPUT> --start <START_TIME> --end <END_TIME>

# e.g.
python yt_ddl.py https://www.youtube.com/watch?v=dQw4w9WgXcQ -o output.mp4 --start 2020-08-12T09:16 --duration 10m
# Will download 10 minute video starting 2020-08-12T09:16
```
Yoou can also use:
* -s instead of --start
* -d instead of --duration
* -e instead of --end 

`START_TIME` and `END_TIME` can be one of the following formats:
* `12:34`
* `12:34:56`
* `7.8 12:34`
* `7.8 12:34:56`
* `7.8.2009 12:34`
* `7.8.2009 12:34:56`
* `2009-08-07T12:34:56`

`DURATION` can be one of the following formats:
* `12h34m56s`
* `12h34m`
* `12h34s`
* `12m34s`
* `123h`
* `123m`
* `123s`

When the date part is omitted, today's date is assumed. 

The part of the video to be downloaded can be specified either by the start and end time, or by the start time and duration. 

Local timezone is used unless `--utc` switch is provided.

Only .mp4 and .mkv output format is supported at the moment.

## Python compatibility
 * 3.7+
bleak-sigspec 0.0.4
Bleak SIG Bluetooth Low Energy Characteristics Specification Formatter
License: MIT

## bleak_sigspec
### Bleak SIG Bluetooth Characteristic Specification Formatter

This package enables characteristic metadata parsing and automatic formatting (bytes unpacking) into the proper characteristic values.

To install

```
pip install bleak_sigspec
```

or to get the latest version

```
pip install https://github.com/Carglglz/bleak_sigspec.git
```

Compatibility with +200 GATT characteristics following [GATT Specifications](https://www.bluetooth.com/specifications/gatt/characteristics/)

### Usage example

`service_explorer.py` in bleak examples:

`char --> Temperature Characteristic`

```python
from bleak_sigspec.utils import get_char_value
[...]
37
			bytes_value = bytes(await client.read_gatt_char(char.uuid))
			formatted_value = get_char_value(bytes_value, char)
[...]
43
			log.info(
				"Characteristic Name: {0}, Bytes Value: {1}, Formatted
				Value: {2}".format(char.description, bytes_value, formatted_value))


```

```bash
$ python3 service_explorer.py
[...]
Characteristic Name: Temperature, Bytes Value: b'Z\x16', Formatted Value: {'Temperature': {'Quantity': 'thermodynamic temperature',
  'Unit': 'degree celsius',
  'Symbol': '°C',
  'Value': 57.22}}
```

### See characteristic metadata

```python
Python 3.7.6 (v3.7.6:43364a7ae0, Dec 18 2019, 14:18:50)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from bleak_sigspec.utils import get_xml_char
>>> temp = get_xml_char('Temperature')
>>> temp
Characteristic Metadata:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    - NAME: Temperature
    - UUID: 2A6E
    - ABSTRACT: None
    - SUMMARY: None
    - FIELDS:
        - Temperature:
            - InformativeText: Unit is in degrees Celsius with a resolution of 0.01 degrees Celsius
            - Requirement: Mandatory
            - Format: sint16
            - Ctype: h
            - Unit_id: org.bluetooth.unit.thermodynamic_temperature.degree_celsius
            - Quantity: thermodynamic temperature
            - Unit: degree celsius
            - Symbol: °C
            - DecimalExponent: -2
    - TYPE: org.bluetooth.characteristic.temperature
    - INFO TEXT: Unit is in degrees Celsius with a resolution of 0.01 degrees Celsius
    - DESCRIPTION: None
    - NOTE: None
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

>>>

```


### Documentation

See the documentation at  [https://bleak-sigspec.readthedocs.io](https://bleak-sigspec.readthedocs.io)