#!/usr/bin/env python
# encoding=utf-8

import os
import time


# =========================================== COPYRIGHT ===========================================
NAME = 'amk.pytb'
CMD = 'pytb'
DESC = 'Python toolbox'
VERSION = '1.0.0'
UPDATE_TIME = '2022/04/11'
AUTHOR_NAME = 'Andy Meng'
AUTHOR_EMAIL = 'andy_m129@163.com'
AUTHOR_URL = 'https://juejin.cn/user/2875978147966855'
GIT_URL = 'https://github.com/AndyM129/python_toolbox'
PIP_URL = f'https://pypi.org/project/{NAME}'

# =========================================== GLOBAL CONST ===========================================
TIMESTAMP = int(time.time())  # 当前时间戳，eg. 1617351251
DATE_TIME = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(TIMESTAMP))  # 当前时间，eg. 2021-04-02 16:14:11
DATE_STAMP = time.strftime('%Y%m%d%H%M%S', time.localtime(TIMESTAMP))  # 当前时间戳，eg. 20210402161411
FILE = __file__  # 当前文件路径
DIR = os.path.dirname(FILE)  # 当前的文件目录
BASENAME = os.path.basename(FILE)  # 当前脚本的文件名
BASENAME_WITHOUT_SUFFIX = BASENAME.split('.')[0]  # 文件名（不含后缀）
BASENAME_SUFFIX = BASENAME.split('.')[1]  # 文件后缀
