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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utils_hj3415-2.9.4-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for utils_hj3415-2.9.4.tar.gz
Algorithm Hash digest
SHA256 dfc0e63ac5089f944c1e8241bc883c9ac5d06af912d38d5eeed9b08e84ccb105
MD5 aa58dd9f3ac9bbb5cf6360d75b3ddcec
BLAKE2b-256 b3cb5243c55bab0cd03441f5574747bb0e0ff5bb7e457b7c81165173a6a52103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for utils_hj3415-2.9.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b199f3cd9b7ffcaaede94fe90b4359ebae4f3011359d0ffd0d4921cf3ab3d91c
MD5 6a0b4ffeca77260aa3fcab8ed9de64ec
BLAKE2b-256 2dea763592d59d3b7e3721566c53099ab7bd72c8e55bccf9872bb0e49b29256f

See more details on using hashes here.

Supported by

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