blob: 54e3c391512132b88e6039631eb58408b05af0f9 (
plain) (
tree)
|
|
#!/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)
|