Skip to main content

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)

Source distribution for turn-ephemeral-credentials 1.0.1
File Size Uploaded
turn_ephemeral_credentials-1.0.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for turn-ephemeral-credentials 1.0.1
File Interpreter ABI Platform
turn_ephemeral_credentials-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page