aboutsummaryrefslogblamecommitdiffstats
path: root/generate_token.py
blob: 54e3c391512132b88e6039631eb58408b05af0f9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)