pygo-jwt
This project focuses on managing JSON Web Tokens signed with RS256. Inspired by pyjwt,
this library provides core encode and decode functionality, utilizing the standard crypto package within Go instead of
cryptography.
Example Usage for Python
pip install pygo-jwt
import pygo_jwt
private_jwk = pygo_jwt.new_jwk(size=2048)
private_pem = pygo_jwt.jwk_to_pem(private_jwk)
public_jwk = pygo_jwt.extract_public_jwk(private_jwk)
public_pem = pygo_jwt.extract_public_pem(private_pem)
payload = {'message': 'hello world', 'count': 4}
token = pygo_jwt.encode(payload=payload, key=private_pem, mode='pem')
token_data = pygo_jwt.decode(token=token, key=public_jwk, mode='jwk')
Example Usage for Go
go mod init main
go get github.com/rkhullar/python-libraries/pygo-jwt/pygo_jwt/go
package main
import (
"fmt"
lib "github.com/rkhullar/python-libraries/pygo-jwt/pygo_jwt/go/core"
)
func main() {
private_jwk, _ := lib.NewJWK(2048, nil)
private_pem, _ := lib.JWKToPEM(private_jwk)
fmt.Println(private_jwk)
fmt.Println(private_pem)
}
Metadata
Release files for pygo-jwt 0.0.9
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 |
|---|---|---|---|---|
| pygo-jwt-0.0.9.tar.gz | 10.5 kB | Without provenance | Details for pygo-jwt-0.0.9.tar.gz |
Built distributions (wheels)
Total release size: 38.2 MB
Release files / pygo-jwt-0.0.9.tar.gz
| Download URL | pygo-jwt-0.0.9.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bfb397b59b8e5f1ac37dbc81d51928f92fa74000b15365c4fd8ca93b73772dc
|
|
BLAKE2b-256 checksum How to use checksums |
b90c9eaab5282fe5eb4d50768cadc8a463884581ace1e65e45fa077fed88b0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
07867d153a55062c67264aba233cefb9cd848111308732e495f35d1c1aa759f0
|
|
BLAKE2b-256 checksum How to use checksums |
5875f2550c073fa8ebe196ba659b9a857117b9717280edaf05d482ba7201f79a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
feae78e1e7ba767a25d7cfa91c20c5e0134dd74cda3fa77173de9f690f650aaf
|
|
BLAKE2b-256 checksum How to use checksums |
21cc87a0e16a294998ec20dfe3840b0edc0898376ec9b3fa1fea39b404989b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pygo_jwt-0.0.9-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
338a225438ed0c47f7a6bde9d05686b6e1c97d271a08505e6503d114806cc77a
|
|
BLAKE2b-256 checksum How to use checksums |
eafe0a1e8c31e493d5ed296725a417a9d315ad3853b8e85bee9c2fcac24dd251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-pp310-pypy310_pp73-macosx_11_0_arm64.whl
| Download URL | pygo_jwt-0.0.9-pp310-pypy310_pp73-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | PyPy 3.10 PyPy 3.10 7.3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b839ad892c9ac4e331a46dd6da72289c2ec9c1103579e43522b6540fe7874b21
|
|
BLAKE2b-256 checksum How to use checksums |
0661c19bdb5bfe0cf95078259e97f6ce7faf706ebfab1f5912f057488307bb55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
| Download URL | pygo_jwt-0.0.9-pp310-pypy310_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | PyPy 3.10 PyPy 3.10 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
b9cd07a9fec1a31ec4d980f31b8946afef53c85dd26be01f6abe5decc2d4e2c2
|
|
BLAKE2b-256 checksum How to use checksums |
a07c8ad46ddf3c5ed77b24aa6598ae23dd9d72df8006372d540446a4954d0875
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pygo_jwt-0.0.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
34762e8494969509894bf6336dfa82cc570cfa2e5f3bf64614be1bb2fa7f0e7a
|
|
BLAKE2b-256 checksum How to use checksums |
d0e6ab328a51ef58c01d60f3da3c24188d07587ea3a228ad721fb658bb36e0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
c6719e3dc80bb78e50565aa83f3ea4b87001f870b4b75d896fbfdf32257b0380
|
|
BLAKE2b-256 checksum How to use checksums |
2726e7ea2b89b9007427ee42e23c6811ace34871f76814103b0b2b78c352d3fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pygo_jwt-0.0.9-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
f7f48b7213d4e915ab1d75e8c60408d03aff8b99474c62b911f9a11b2dd0e2cd
|
|
BLAKE2b-256 checksum How to use checksums |
75cd49ab0137d83057455cf61e8faaa70179a11f0fb6303f562e91d631c7a057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pygo_jwt-0.0.9-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0979655ec6528912f5bd9962401dcf59eaee6186cc2c6b20f0b1033c15be029e
|
|
BLAKE2b-256 checksum How to use checksums |
1cd2408b1b89eddfef7c329ee75b21da8400f60d939bd0d3da05dbde445a4468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp312-cp312-macosx_10_9_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp312-cp312-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
0ebf30880218c6f29ae9c90ca9fc293903ab1c385f130a2faa40c740baf74549
|
|
BLAKE2b-256 checksum How to use checksums |
89c7d4eac385805d3159025ad5d4fcbf51ac255c52bd1937f74f0f6379dfbe5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pygo_jwt-0.0.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
fc70c947d9a611343b7b5390adc64bcc1eb95f228910b37802fdd8e85af7e476
|
|
BLAKE2b-256 checksum How to use checksums |
fbc647aec514ac25ced38af05f806f943c3e796290be6dfe10a999c3578ff4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
776e2578bb0af98d27f743e9e9b2865652c6b84149966b8faae497f19dbf43c9
|
|
BLAKE2b-256 checksum How to use checksums |
66bf1d7643487ddba741b78ae1eb4d15fb7523724992dfe943815dc25f94d991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pygo_jwt-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
4450a2bd29238357a27365274a468a7c52d02ac2784e8bded8ad966c04e502c2
|
|
BLAKE2b-256 checksum How to use checksums |
456e03755d4a64b1df2e1ad5901a9399b5500c5a66c5dca392af36065213a547
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pygo_jwt-0.0.9-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c0f666004de52911398ca3b5393f38c6bffbe5b4e06075d6d9ebb53634d0d866
|
|
BLAKE2b-256 checksum How to use checksums |
11ace35f17ef01949fe438740d9fb5a2959c929c09d946a7ccc5c8faa20b0d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9ab50ea8248b72f9a4bca3b081736f27ef6e3de03705d3d0b321120459cea2e
|
|
BLAKE2b-256 checksum How to use checksums |
913525fd8df835c16c255f71c78acd58e4f69850e471babffa2c4159225dee02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pygo_jwt-0.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c4a85bd8ed21b99e230333f689058dee0f4ba62a51383f41fabab60f5770525
|
|
BLAKE2b-256 checksum How to use checksums |
551accc38380807486f7a3342f3251505050070a3d5f0698e24d1ec6744e47f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
86cd7f4cc62ed8653b10df858c09e095326af65d4fa18bc76bd96b334b2e2406
|
|
BLAKE2b-256 checksum How to use checksums |
b6cbc46fe56749bb78edea8273ca003be15f429cab27e7acce9d8967a486a491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pygo_jwt-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
e0f8aa917e1be4814e0a3e5ae113ab74101532f931f755f9a154ccc95e7a252f
|
|
BLAKE2b-256 checksum How to use checksums |
5555be2dec76df37331c5432e56570227a7b8a1cd9bc81bd8b66f73006fd48d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | pygo_jwt-0.0.9-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd25de23c1cee7e609c299bf3941ce0360f5e519a3ccfbf60cd5aeff430221cb
|
|
BLAKE2b-256 checksum How to use checksums |
2429e4f5e7e8b1e1454ccf165c3053fcede41389de4f76e5557970ebd6c6991c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / pygo_jwt-0.0.9-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | pygo_jwt-0.0.9-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
41f80f89739b3ea4bdba349f4396a332303d9771a879ff64cf69b26868797cda
|
|
BLAKE2b-256 checksum How to use checksums |
5fd9bd5468680d68d40f8c46931711f1b77f24d94e833263f023f3e8a834228e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Security for pygo-jwt 0.0.9
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.