Open marksmall opened 4 years ago
I started to look into this and quickly realized there doesn't seem to be a way to add dependencies i.e. pyjwt
. I did come across this in setup.py
, but that is only for build I believe, am I right @allynt?
I just added a simple function to jwt.py
before realizing this, but I'm happy to adopt any preferred method e.g. stand-alone script, with it's own Pipfile, adding a Pipfile, to this project.
It's fine to stick it in setup.py b/c this is only meant to be used w/ other apps. During development, you should be using your own virtual environment into which you can install whatever dependencies you need.
We have some ad hoc scripts to create JWT tokens, but nothing consistent. It would be good to add that feature to this library for future projects. See https://github.com/astrosat/static-data-source/blob/master/gentok/gentok.py as an example script.
The script, needs you to edit the scopes etc in the script. It would be good if we could maybe point the file to a JSON file, so we can easily generate different tokens.
A suggested library to use for adding arguments to python scripts is https://click.palletsprojects.com/en/7.x/