Metadata-Version: 2.4
Name: librds
Version: 2.0
Summary: RDS Group Generator
Home-page: https://github.com/KubaPro010/librds
Author: KubaPro010
Project-URL: Source, https://github.com/KubaPro010/librds
Keywords: radiodatasystem,rds,broadcast_fm
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Telecommunications Industry
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Description-Content-Type: text/markdown
License-File: LICENCE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: summary

# LibRDS

LibRDS is a simple library that you can use to generate and decode the RDS groups, just the groups, so something like `3000 2000 7575 7575` the origins of development of this started on 12 May, later creating the [rdPy](https://github.com/KubaPro010/rdPy) repository

Example code:

```python
import librds

basic = librds.GroupGenerator.basic(0x3000)
print(basic)

ps = librds.GroupGenerator.ps(basic,"hi",0)
print(ps)

print(librds.GroupDecoder.decode(ps))
```

Output:

```python
    Group(a=12288, b=0, c=0, d=0, is_version_b=False)
    Group(a=12288, b=0, c=57549, d=26729, is_version_b=False)
    DecodedGroup(raw_group=Group(a=12288, b=0, c=57549, d=26729, is_version_b=False), pi=12288, tp=False, pty=0, group=GroupIdentifier(group_number=0, group_version=False), details=PSDetails(segment=0, di_dpty=False, ta=False, text='hi', af=AlternativeFrequencyEntryDecoded(is_af=False, af_freq=0, af_freq1=0, lfmf_follows=False, all_af_lenght=0)))
```

**Note** that LibRDS required Python 3.10+ to run due to its use of `match`

## Decoder

LibRDS also includes a RDS Group decoder, so you can encode with librds and then also decode it, currently librds's decoder decodes all of the groups it can encode

## How to install it?

either clone this and do `pip install .` or be simple and do `pip install librds`
