Metadata-Version: 2.1
Name: mattebox
Version: 0.1.1
Summary: Unofficial library for MatteBOX API.
License: ISC
Author: samedamci
Author-email: samedamci@disroot.org
Requires-Python: >=3.9.2,<4.0.0
Classifier: License :: OSI Approved
Classifier: Programming Language :: Python :: 3
Requires-Dist: m3u8 (>=0.9.0,<0.10.0)
Requires-Dist: requests (>=2.26.0,<3.0.0)
Description-Content-Type: text/markdown

# python-mattebox

Unofficial Python library for MatteBOX IPTV.

## Installing

```shell
$ python -m pip install mattebox
```

## Usage

```python
>>> from mattebox import MatteBOX
>>> mbox = MatteBOX(USERNAME, PASSWORD, DEVICE_ID, SUBSCRIPTION_CODE)
```

### Examples

```python  
>>> # get list of TV channels
>>> channels = mbox.channels

>>> # get list of programs on specified channel
>>> programs = mbox.get_programs(channels[0])

>>> # get recordings
>>> recordings = mbox.recordings

>>> # get stream URL for specified program/recording
>>> stream = mbox.get_stream(programs[0])

>>> # search for TV program
>>> results = mbox.search("Masza i niedźwiedź")
```

