Utils for ryoka
Project description
Utils for ryoka Version: 1.1.56
Utils for ryoka.
Usage:
If you want to output debug log, you can do it by export RK_DEBUG.
export RK_DEBUG=0 : Output no log.
export RK_DEBUG=1 : Output error log.
export RK_DEBUG=2 : Output error and warning log.
export RK_DEBUG=3 : Output error and warning and debug log.
Utils
from ryoka_utils.utils import Utils
utils = Utils()
utils.abspath(path)
utils.basename(path)
utils.chmod(path, mode)
utils.chown(path, user, group)
utils.command(cmd)
utils.copy(src, dst)
utils.decode(text)
utils.dirname(path)
utils.exists(path)
utils.exit()
utils.get_current(file_path)
utils.get_dir_path_in_dir(dir_path)
utils.get_env(key)
utils.get_file_path_in_dir(dir_path)
utils.get_path_in_dir(dir_path)
utils.get_pid()
utils.get_platform()
utils.is_root()
utils.isdir(path)
utils.isfile(path)
utils.join_dirs(path_list)
utils.match_keys(word)
utils.mkdir(path)
utils.popd()
utils.pushd(path)
utils.remove(path)
utils.rename(src, dst)
utils.splitext(path)
utils.unzip(src, dst)
utils.unzip_tar_bz2(src, dst)
utils.unzip_tar_gz(src, dst)
utils.zip(src, dst, forWin, forOSX)
utils.zip_tar_bz2(src, dst)
utils.zip_tar_gz(src, dst)
SendMail
from ryoka_utils.mail import SendMail
mail = SendMail()
mail.send()
mail.set_body(body)
mail.set_charcode(code)
mail.set_from_address(address)
mail.set_password(password)
mail.set_title(title)
mail.set_to_address(address)
Debugger
from ryoka_utils.debugger import Debugger
debugger = Debugger(debug_level)
debugger.error()
debugger.log()
debugger.warn()
Slack
from ryoka_utils.slack import Slack
slack = Slack()
slack.get_channel_list()
slack.get_history(count, latest, oldest, unread)
slack.listen(interval, callback)
slack.post_message(message)
slack.set_channel(channel_name)
slack.set_icon(url)
slack.set_username(username)
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
File details
Details for the file ryoka_utils-1.1.56.tar.gz
.
File metadata
- Download URL: ryoka_utils-1.1.56.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
037ada9b228ee83b5835374fa0012e600b0a5512ddfd365387db52692f726e43
|
|
MD5 |
2c5cdc57a217d47f72964b9b4f7e151c
|
|
BLAKE2b-256 |
cb9927306fd56e88548e8813d4d96dc48066a2a90f6f45869b1ce7e676b0457e
|