coturn-ephemeral-credentials


Namecoturn-ephemeral-credentials JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryGenerate time limited, ephemeral, long term credentials to authenticate usage of a coturn server.
upload_time2023-08-30 12:24:35
maintainer
docs_urlNone
author
requires_python>=3.8.10
licenseMIT License Copyright (c) 2023 p4irin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords coturn turn stun ice
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Coturn Ephemeral Credentials - v0.1.1

Generate time limited, i.e. ephemeral, long term credentials to authenticate against a coturn server. The _default_ duration for the validity of the credentials is set to _one day_ as recommended in [A REST API For Access To TURN Services](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1:~:text=ttl%3A%20the%20duration%20for%20which%20the%20username%20and%20password%20are%20valid%2C%0A%20%20%20%20%20%20in%20seconds.%20%20A%20value%20of%20one%20day%20(86400%20seconds)%20is%20recommended). The same document describes how to generate the _username_ and _password_ [here](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1:~:text=username%3A%20the%20TURN,algorithm%0A%20%20%20%20%20%20and%20secret.).

## Stack

- Python 3.8.10 on Ubuntu 20.04.2 LTS

## Installation

### From PyPI

```bash
(venv) $ pip install coturn-ephemeral-credentials
```

### From GitHub

```bash
(venv) $ pip install git+https://github.com/p4irin/coturn_ephemeral_credentials.git
```

## Usage

```python
from coturn_ephemeral_credentials import generate

credentials = generate(shared_secret='A shared secret with a coturn server')
coturn_username = credentials['coturn_username']
coturn_password = credentials['coturn_password']
```

## Reference

- [A REST API For Access To TURN Services](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1)
- [coturn](https://github.com/coturn/coturn)
- [RFC 5766. Traversal Using Relays around NAT (TURN):Relay Extensions to Session Traversal Utilities for NAT (STUN)](https://datatracker.ietf.org/doc/html/rfc5766)
- [RFC 5389, Session Traversal Utilities for NAT (STUN)](https://datatracker.ietf.org/doc/html/rfc5389#section-10.2)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "coturn-ephemeral-credentials",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.10",
    "maintainer_email": "",
    "keywords": "coturn,turn,stun,ice",
    "author": "",
    "author_email": "p4irin <139928764+p4irin@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/98/87/60b2cd3ee4f812102d7d06fa783faa19b9ddd2d54c62889dd47eefa2c949/coturn_ephemeral_credentials-0.1.1.tar.gz",
    "platform": null,
    "description": "# Coturn Ephemeral Credentials - v0.1.1\n\nGenerate time limited, i.e. ephemeral, long term credentials to authenticate against a coturn server. The _default_ duration for the validity of the credentials is set to _one day_ as recommended in [A REST API For Access To TURN Services](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1:~:text=ttl%3A%20the%20duration%20for%20which%20the%20username%20and%20password%20are%20valid%2C%0A%20%20%20%20%20%20in%20seconds.%20%20A%20value%20of%20one%20day%20(86400%20seconds)%20is%20recommended). The same document describes how to generate the _username_ and _password_ [here](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1:~:text=username%3A%20the%20TURN,algorithm%0A%20%20%20%20%20%20and%20secret.).\n\n## Stack\n\n- Python 3.8.10 on Ubuntu 20.04.2 LTS\n\n## Installation\n\n### From PyPI\n\n```bash\n(venv) $ pip install coturn-ephemeral-credentials\n```\n\n### From GitHub\n\n```bash\n(venv) $ pip install git+https://github.com/p4irin/coturn_ephemeral_credentials.git\n```\n\n## Usage\n\n```python\nfrom coturn_ephemeral_credentials import generate\n\ncredentials = generate(shared_secret='A shared secret with a coturn server')\ncoturn_username = credentials['coturn_username']\ncoturn_password = credentials['coturn_password']\n```\n\n## Reference\n\n- [A REST API For Access To TURN Services](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00#section-2.1)\n- [coturn](https://github.com/coturn/coturn)\n- [RFC 5766. Traversal Using Relays around NAT (TURN):Relay Extensions to Session Traversal Utilities for NAT (STUN)](https://datatracker.ietf.org/doc/html/rfc5766)\n- [RFC 5389, Session Traversal Utilities for NAT (STUN)](https://datatracker.ietf.org/doc/html/rfc5389#section-10.2)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 p4irin  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Generate time limited, ephemeral, long term credentials to authenticate usage of a coturn server.",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/p4irin/coturn_ephemeral_credentials/issues",
        "Homepage": "https://github.com/p4irin/coturn_ephemeral_credentials"
    },
    "split_keywords": [
        "coturn",
        "turn",
        "stun",
        "ice"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1e386eb2978c1e5fd5d54aa8c3b2768237cbb10dd231f2cdca84be83a5171ce",
                "md5": "dfce864dfc875ee7b5a88560eca04af4",
                "sha256": "910727ec26f8261551ba435267b2223cc47f716328e4ada8acb5b73eaa96e3c8"
            },
            "downloads": -1,
            "filename": "coturn_ephemeral_credentials-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dfce864dfc875ee7b5a88560eca04af4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.10",
            "size": 4466,
            "upload_time": "2023-08-30T12:24:33",
            "upload_time_iso_8601": "2023-08-30T12:24:33.641830Z",
            "url": "https://files.pythonhosted.org/packages/a1/e3/86eb2978c1e5fd5d54aa8c3b2768237cbb10dd231f2cdca84be83a5171ce/coturn_ephemeral_credentials-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "988760b2cd3ee4f812102d7d06fa783faa19b9ddd2d54c62889dd47eefa2c949",
                "md5": "2ba08f99809e17058bfaa68eaa673cd2",
                "sha256": "57581e45e3f515f2067ee22e51aa9cec129cff26b1a53cb1ea430a36efec581a"
            },
            "downloads": -1,
            "filename": "coturn_ephemeral_credentials-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2ba08f99809e17058bfaa68eaa673cd2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.10",
            "size": 4027,
            "upload_time": "2023-08-30T12:24:35",
            "upload_time_iso_8601": "2023-08-30T12:24:35.216251Z",
            "url": "https://files.pythonhosted.org/packages/98/87/60b2cd3ee4f812102d7d06fa783faa19b9ddd2d54c62889dd47eefa2c949/coturn_ephemeral_credentials-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-30 12:24:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "p4irin",
    "github_project": "coturn_ephemeral_credentials",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "coturn-ephemeral-credentials"
}
        
Elapsed time: 0.29536s