The collection of utility functions for hj3415
Project description
utils-hj3415
utils-hj3415 is the collection of utility functions.
두가지 모듈이 존재한다. - noti, utils
Installation
pip install utils-hj3415
Usage
utils module
from utils_hj3415 import utils
def to_float(s) -> float:
def to_int(s) -> int:
def deco_num(s) -> str:
def to_억(v) -> str:
def to_만(v) -> str:
def get_kor_amount(amount: int, omit: str = '', str_suffix: str = '원') -> str:
def str_to_date(d: str) -> datetime.datetime:
def date_to_str(d: datetime.datetime, sep: str = '-') -> str:
def isYmd(date: str) -> bool:
def isY_slash_m(date: str) -> bool:
def scrape_simple_data(url: str, css_selector: str) -> str:
def get_price_now(code: str) -> tuple:
def get_ip_addr() -> str:
def get_pc_info() -> dict:
def nan_to_zero(v: float) -> float:
def code_divider_by_cpu_core(entire_codes: list) -> Tuple[int, List[list]]:
noti module
from utils_hj3415 import noti
def mail_to(title: str, text: str, mail_addr='hj3415@hanmail.net') -> bool:
def telegram_to(botname: str, text: str, parse_html: bool = False) -> bool:
# botname - ['manager', 'dart', 'eval', 'cybos', 'servers']
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
utils_hj3415-2.9.3.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utils_hj3415-2.9.3.tar.gz.
File metadata
- Download URL: utils_hj3415-2.9.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb02bfd3b2829c6ba06592f85cb64fd25f7f481da96eb77c06f5eb50c8f7b5ac
|
|
| MD5 |
f6b8817a727e345cee1c406f1e848697
|
|
| BLAKE2b-256 |
a4ace534bdc3e2ade33ee3b4ee2563682460e98e16048794746fa96357b0a796
|
File details
Details for the file utils_hj3415-2.9.3-py2.py3-none-any.whl.
File metadata
- Download URL: utils_hj3415-2.9.3-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f08a5c0f97c50e3ef74b320b40cfdf258fdd84cd6eb164dbc11a56a1fd3ff254
|
|
| MD5 |
9b216330b1a0a28376f2a7185e4647fd
|
|
| BLAKE2b-256 |
d0593698bfec10b7037859a518f009d70db1b3fcb82cbde447fb41b661a22f89
|