{"id":19123343,"url":"https://github.com/vonage/vonage-python-jwt","last_synced_at":"2026-06-05T13:30:15.403Z","repository":{"id":171979456,"uuid":"648213180","full_name":"Vonage/vonage-python-jwt","owner":"Vonage","description":"A JWT Generator for Python. Creates JWTs for use with Vonage APIs.","archived":false,"fork":false,"pushed_at":"2023-10-18T14:17:31.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-03T08:47:33.265Z","etag":null,"topics":["authentication","jwt","jwt-authentication","token","vonage"],"latest_commit_sha":null,"homepage":"https://developer.vonage.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vonage.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T13:06:08.000Z","updated_at":"2023-07-02T20:11:23.000Z","dependencies_parsed_at":"2024-11-09T05:35:32.078Z","dependency_job_id":null,"html_url":"https://github.com/Vonage/vonage-python-jwt","commit_stats":null,"previous_names":["vonage/vonage-python-jwt"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonage%2Fvonage-python-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonage%2Fvonage-python-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonage%2Fvonage-python-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonage%2Fvonage-python-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vonage","download_url":"https://codeload.github.com/Vonage/vonage-python-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240181262,"owners_count":19761067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","jwt","jwt-authentication","token","vonage"],"created_at":"2024-11-09T05:25:18.313Z","updated_at":"2026-06-05T13:30:15.321Z","avatar_url":"https://github.com/Vonage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vonage JWT Generator for Python\n\n[![PyPI version](https://badge.fury.io/py/vonage-jwt.svg)](https://badge.fury.io/py/vonage-jwt)\n[![Build Status](https://github.com/Vonage/vonage-python-jwt/workflows/Build/badge.svg)](https://github.com/Vonage/vonage-python-jwt/actions)\n[![Python versions supported](https://img.shields.io/pypi/pyversions/vonage-jwt)](https://pypi.python.org/pypi/vonage-jwt)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nThis package provides functionality to generate a JWT in Python code.\n\nIt is used by the [Vonage Python SDK](https://github.com/Vonage/vonage-python-sdk).\n\n- [Installation](#installation)\n- [Generating JWTs](#generating-jwts)\n- [Verifying a JWT signature](#verifying-a-jwt-signature)\n\n## Installation\n\nInstall from the Python Package Index with pip:\n\n```bash\npip install vonage-jwt\n```\n\n## Generating JWTs\n\nThis JWT Generator can be used implicitly, just by using the [Vonage Python SDK](https://github.com/Vonage/vonage-python-sdk) to make JWT-authenticated API calls.\n\nIt can also be used as a standalone JWT generator for use with Vonage APIs, like so:\n\n### Import the `JwtClient` object\n\n```python\nfrom vonage_jwt.jwt import JwtClient\n```\n\n### Create a `JwtClient` object\n\n```python\njwt_client = JwtClient(application_id, private_key)\n```\n\n### Generate a JWT using the provided application id and private key\n\n```python\njwt_client.generate_application_jwt()\n```\n\nOptional JWT claims can be provided in a python dictionary:\n\n```python\nclaims = {'jti': 'asdfzxcv1234', 'nbf': now + 100}\njwt_client.generate_application_jwt(claims)\n```\n\n## Verifying a JWT signature\n\nYou can use the `verify_jwt.verify_signature` method to verify a JWT signature is valid.\n\n```python\nfrom vonage_jwt.verify_jwt import verify_signature\n\nverify_signature(TOKEN, SIGNATURE_SECRET) # Returns a boolean\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonage%2Fvonage-python-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvonage%2Fvonage-python-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonage%2Fvonage-python-jwt/lists"}