Skip to main content

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


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.8.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

utils_hj3415-2.8.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file utils_hj3415-2.8.0.tar.gz.

File metadata

  • Download URL: utils_hj3415-2.8.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for utils_hj3415-2.8.0.tar.gz
Algorithm Hash digest
SHA256 770b82f28fdffb0b7e69c150bd66758054f60f36602ba8cde8a92cbecda41623
MD5 1d23d36962a46be3e51c22e2c282ed47
BLAKE2b-256 415692ec923e7fc015cd5cae6d4e875e6ad7dd73c48e66db638586a0787f698c

See more details on using hashes here.

File details

Details for the file utils_hj3415-2.8.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for utils_hj3415-2.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bcbc77fa2a6218ec76e9c671776649573a76f73bff799c0d7dc6f8c3b57cd512
MD5 2ca5d20e5432841c9f9d3d79b1fc1986
BLAKE2b-256 531ebebb77a82a58ac592e17d313308c815f1de01205794254ac423868c37918

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page