dataset/seed/applicationservice/2022.03.08/unbound/funcs/funcs.py

18 lines
446 B
Python
Raw Normal View History

2022-03-08 19:42:28 +01:00
from typing import List
from ipaddress import ip_interface
from os.path import join
from datetime import datetime
def unbound_filename(dirname: str,
variables: List[str],
extension: str) -> List[str]:
ret = []
for variable in variables:
ret.append(join(dirname, f'{variable}{extension}'))
return ret
def unbound_serial() -> str:
return datetime.now().strftime('%Y%m%d%H%M%S')