diff options
Diffstat (limited to 'generate_token.py')
-rwxr-xr-x | generate_token.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/generate_token.py b/generate_token.py new file mode 100755 index 0000000..54e3c39 --- /dev/null +++ b/generate_token.py @@ -0,0 +1,17 @@ +#!/usr/bin/env sh +import IPython as IPython + +if __name__ == "__main__": + print("Generate a access token") + from argparse import ArgumentParser + parser = ArgumentParser() + parser.add_argument("-p", + "--password", + dest="password", + help="The password you want to use for authentication.", + required=True) + args = parser.parse_args() + + print("\nCopy this line into the .env file:\n") + hash = IPython.lib.passwd(args.password) + print("ACCESS_TOKEN=" + hash) |