A Python wrapper around jwt-cpp.
pip install git+https://github.com/ns-yanghsing/py_jwt_cpp.git@VERSION
where VERSION
is something like 0.1.0
import py_jwt_cpp
jwt = py_jwt_cpp.encode(data, private_key)
where:
data
is adict
with string key and string value
- To install deployment dependencies, run
poetry install
. - To test the change locally, run
poetry run python setup.py build_ext --inplace
poetry install
poetry build
- tag the ref with a name staring with
cibuildwheel
- Push the tag onto Github. It will trigger
cibuildwheel
workflow building wheels for:
- OS
latest-ubuntu
macos-13
macos-latest
- Python:
ubuntu
:>= 3.8
macos
:>= 3.9
- Tag your branch with a name staring with
cibuildwheel
. - Push it onto Github to trigger the wheel build.
- Build sdist by
poetry run python setup.py sdist
. - Download the wheels from Github and put them into the
dist
folder. - Commit the change, tag a version such as
0.1.0
, and push the tag back to Github.
-
decode
function. - allowing
headers
- allowing algorithms other than
RS256
MIT