Skip to main content

A JWT Generator for Python. Creates JWTs for use with Vonage APIs.

Project description

Vonage JWT Generator for Python

This package provides functionality to generate a JWT in Python code.

It is used by the Vonage Python SDK.

Installation

Install from the Python Package Index with pip:

pip install vonage-jwt

Usage

This JWT Generator can be used implicitly, just by using the Vonage Python SDK to make JWT-authenticated API calls.

It can also be used as a standalone JWT generator for use with Vonage APIs, like so:

Import the JwtClient object

from vonage_jwt.jwt import JwtClient

Create a JwtClient object

jwt_client = JwtClient(application_id, private_key)

Generate a JWT using the provided application id and private key

jwt_client.generate_application_jwt()

Optional JWT claims can be provided in a python dictionary:

claims = {'jti': 'asdfzxcv1234', 'nbf': now + 100}
jwt_client.generate_application_jwt(claims)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vonage_jwt-0.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vonage_jwt-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file vonage_jwt-0.0.1.tar.gz.

File metadata

  • Download URL: vonage_jwt-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for vonage_jwt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 597123d14ea9d4541c301946c95cabfe2bba32b0257ca56317dbd95dd31ca5ba
MD5 d82b5703d5a79fe9116c02f508e8d0ad
BLAKE2b-256 9aded95cfd9c2ff5b1bd5e46f73d79aeda4baf5fd98af395c1f506c6488adbda

See more details on using hashes here.

File details

Details for the file vonage_jwt-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: vonage_jwt-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for vonage_jwt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d53e55c131cf0c86bff27ca8f9428d8d5af7440dbe810669b03e2cd94258e2a
MD5 722e2340da43ea04cb3de3792c8beef3
BLAKE2b-256 b6b74be0872ff169025955561c09d46460f8de47c8fe5a9f9a31e78edf05d6c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page