librds


Namelibrds JSON
Version 2.1 PyPI version JSON
download
home_pagehttps://github.com/KubaPro010/librds
SummaryRDS Group Generator
upload_time2025-09-02 14:35:42
maintainerNone
docs_urlNone
authorKubaPro010
requires_pythonNone
licenseNone
keywords radiodatasystem rds broadcast_fm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

RBDS compatibility is not guranteed.

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`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/KubaPro010/librds",
    "name": "librds",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "radiodatasystem, rds, broadcast_fm",
    "author": "KubaPro010",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e7/a1/d5a37b651a50d948cde0f63fdebcb31130b7f1e513dd1b00d4e46e3d8c35/librds-2.1.tar.gz",
    "platform": null,
    "description": "# LibRDS\r\n\r\nLibRDS 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\r\n\r\nRBDS compatibility is not guranteed.\r\n\r\nExample code:\r\n\r\n```python\r\nimport librds\r\n\r\nbasic = librds.GroupGenerator.basic(0x3000)\r\nprint(basic)\r\n\r\nps = librds.GroupGenerator.ps(basic,\"hi\",0)\r\nprint(ps)\r\n\r\nprint(librds.GroupDecoder.decode(ps))\r\n```\r\n\r\nOutput:\r\n\r\n```python\r\n    Group(a=12288, b=0, c=0, d=0, is_version_b=False)\r\n    Group(a=12288, b=0, c=57549, d=26729, is_version_b=False)\r\n    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)))\r\n```\r\n\r\n**Note** that LibRDS required Python 3.10+ to run due to its use of `match`\r\n\r\n## Decoder\r\n\r\nLibRDS 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\r\n\r\n## How to install it?\r\n\r\neither clone this and do `pip install .` or be simple and do `pip install librds`\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "RDS Group Generator",
    "version": "2.1",
    "project_urls": {
        "Homepage": "https://github.com/KubaPro010/librds",
        "Source": "https://github.com/KubaPro010/librds"
    },
    "split_keywords": [
        "radiodatasystem",
        " rds",
        " broadcast_fm"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bd3ba2f043de5fb9d9baeba12f7c32bd0afa4f62702d0f8ddb2489a509f81b15",
                "md5": "60572e1ee70923853d69ed379eef92ab",
                "sha256": "c8579b2300cf34d72ece90c0b5efce6a12620a883d67a6dcf9a358965af42122"
            },
            "downloads": -1,
            "filename": "librds-2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "60572e1ee70923853d69ed379eef92ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 26796,
            "upload_time": "2025-09-02T14:35:41",
            "upload_time_iso_8601": "2025-09-02T14:35:41.143707Z",
            "url": "https://files.pythonhosted.org/packages/bd/3b/a2f043de5fb9d9baeba12f7c32bd0afa4f62702d0f8ddb2489a509f81b15/librds-2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e7a1d5a37b651a50d948cde0f63fdebcb31130b7f1e513dd1b00d4e46e3d8c35",
                "md5": "6120660c14c6aba29f6de5f9fd10f53d",
                "sha256": "13486305a8c3dfd432643f8bac288ddaa462e9dc2c5e0d35e01c9ac43511a321"
            },
            "downloads": -1,
            "filename": "librds-2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6120660c14c6aba29f6de5f9fd10f53d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25761,
            "upload_time": "2025-09-02T14:35:42",
            "upload_time_iso_8601": "2025-09-02T14:35:42.079215Z",
            "url": "https://files.pythonhosted.org/packages/e7/a1/d5a37b651a50d948cde0f63fdebcb31130b7f1e513dd1b00d4e46e3d8c35/librds-2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-02 14:35:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "KubaPro010",
    "github_project": "librds",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "librds"
}
        
Elapsed time: 4.20520s