TURN Ephemeral Credentials - v1.0.1
Generate time limited, i.e. ephemeral, long term credentials to authenticate against a TURN 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. The same document describes how to generate the username and password here.
Stack
- Python 3.8.10 on Ubuntu 20.04.2 LTS
Installation
From PyPI
(venv) $ pip install turn-ephemeral-credentials
From GitHub
(venv) $ pip install git+https://github.com/p4irin/turn_ephemeral_credentials.git
Usage
from turn_ephemeral_credentials import generate
# Generate a username and use the default ttl of one day
credentials = generate(shared_secret='A shared secret with a TURN server')
# Pass a username and use the default ttl
credentials = generate(username='username', shared_secret='A shared secret with a TURN server')
# Generate a username and use a ttl of half a day
credentials = generate(shared_secret='A shared secret with a TURN server', ttl=43200)
Reference
Metadata
Release files for turn-ephemeral-credentials 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turn_ephemeral_credentials-1.0.1.tar.gz | 4.3 kB | Without provenance | Details for turn_ephemeral_credentials-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turn_ephemeral_credentials-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for turn_ephemeral_credentials-1.0.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / turn_ephemeral_credentials-1.0.1.tar.gz
| Download URL | turn_ephemeral_credentials-1.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
845ad661230da7b56ab8bcb1f26790b1ecab55079ad2c03fb025728e0b268abb
|
|
BLAKE2b-256 checksum How to use checksums |
d3ee38716611f798a485fb1be00ed57a33605355468d886cf2b6c0fab843a849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / turn_ephemeral_credentials-1.0.1-py3-none-any.whl
| Download URL | turn_ephemeral_credentials-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a404f4dcb40a00e14da3c0082dd16707415881b2f2f372457952cf9e79fe29fd
|
|
BLAKE2b-256 checksum How to use checksums |
ad9afdeaac0a27c783b74e554d8a3dfd07a69a4d9c19836167b6a46998b4c507
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for turn-ephemeral-credentials 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.