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:
datais adictwith 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
cibuildwheelworkflow building wheels for:
- OS
latest-ubuntumacos-13macos-latest
- Python:
ubuntu:>= 3.8macos:>= 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
distfolder. - Commit the change, tag a version such as
0.1.0, and push the tag back to Github.
-
decodefunction. - allowing
headers - allowing algorithms other than
RS256
MIT