forked from axiom-team/jaklis
rearranging files
This commit is contained in:
parent
cd945654bb
commit
eb4982f94a
|
@ -6,7 +6,7 @@ from shutil import copyfile
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from lib.cesiumMessaging import ReadFromCesium, SendToCesium, DeleteFromCesium, VERSION
|
from lib.cesiumMessaging import ReadFromCesium, SendToCesium, DeleteFromCesium, VERSION
|
||||||
|
|
||||||
# Get varriables environment
|
# Get variables environment
|
||||||
if not os.path.isfile('.env'):
|
if not os.path.isfile('.env'):
|
||||||
copyfile(".env.template", ".env")
|
copyfile(".env.template", ".env")
|
||||||
dotenv_path = join(dirname(__file__), '.env')
|
dotenv_path = join(dirname(__file__), '.env')
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os, sys, ast, requests, json, base58, base64, time, string, random, re
|
import os, sys, ast, requests, json, base58, base64, time, string, random, re
|
||||||
from natools import fmt, sign, get_privkey, box_decrypt, box_encrypt
|
from lib.natools import fmt, sign, get_privkey, box_decrypt, box_encrypt
|
||||||
from hashlib import sha256
|
from hashlib import sha256
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from termcolor import colored
|
from termcolor import colored
|
||||||
|
|
||||||
VERSION = "0.1"
|
VERSION = "0.1.1"
|
||||||
PUBKEY_REGEX = "(?![OIl])[1-9A-Za-z]{42,45}"
|
PUBKEY_REGEX = "(?![OIl])[1-9A-Za-z]{42,45}"
|
||||||
|
|
||||||
def pp_json(json_thing, sort=True, indents=4):
|
def pp_json(json_thing, sort=True, indents=4):
|
||||||
|
# Print beautifull JSON
|
||||||
if type(json_thing) is str:
|
if type(json_thing) is str:
|
||||||
print(json.dumps(json.loads(json_thing), sort_keys=sort, indent=indents))
|
print(json.dumps(json.loads(json_thing), sort_keys=sort, indent=indents))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue