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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1835a884e8b87ce4ed5e186e5fea227b0077c26a89cba09a3382d2946d0375 |
|
MD5 | 9ad7eef153fe19bed2306366c369c50d |
|
BLAKE2b-256 | 537b5ca75b7c2ae939e35054888e9b44da2364aae1de20aaff04b1f0d83cefc5 |