The collection of utility functions for hj3415
Project description
util-hj3415
util-hj3415 is the collection of utility functions.
Usage
from util_hj3415 import utils
def to_float(s) -> float:
def to_억(v) -> str:
def to_만(v) -> str:
def str_to_date(d: str) -> datetime.datetime:
def date_to_str(d: datetime.datetime) -> str:
def pick_rnd_x_code(count: int) -> list:
from util_hj3415 import noti
def mail_to(title: str, text: str, mail_addr='hj3415@hanmail.net') -> bool:
BOT_LIST = ['manager', 'dart', 'eval']
def telegram_to(botname: str, text: str, parse_html: bool = False) -> bool:
from util_hj3415 import mongo
class UnableConnectServerException(Exception):
def connect_mongo(addr: str, timeout=5) -> pymongo.MongoClient:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for util_hj3415-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4a6178a1ef8764a5da0deeaec2bf02672fc38b812bfb60bbb3c0a2942e3ead |
|
MD5 | b929cfcb0f836a6d44ed3b4a483cfd73 |
|
BLAKE2b-256 | 852e14cafcf2a66d45b72b5893549e830a44e710f789365cc8e3e7ed7f4b1390 |