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 get_driver_edge() -> WebDriver | None:
def get_driver_safari() -> WebDriver | None:
def get_driver(temp_dir: str = '', headless=True, geolocation=False) -> WebDriver | None:
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.2.0.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file utils_hj3415-2.2.0.tar.gz
.
File metadata
- Download URL: utils_hj3415-2.2.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611f3840b3a79ef934caa372cb6e81d91a074c5f251e39b4b8c6c8a31414d74b |
|
MD5 | fe2547aa2e4e3ccc3cf41e429b47cee3 |
|
BLAKE2b-256 | 6f466d434a2b7586cc2b2ba314f25d07235c83094d2538bfcf01e33b4d4b4fd8 |
File details
Details for the file utils_hj3415-2.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: utils_hj3415-2.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e25a1d73efcfda3f8a49534969a9744b8e7590b12dff892e5dae86ae22c8155a |
|
MD5 | 1673ea56755d71c0bb7233b412619c41 |
|
BLAKE2b-256 | e12536a87b0f962ed51487b358541a53887ec64b547c636a56ae8ec56e9082ec |