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)
Metadata
Release files for ryoka_utils 1.1.56
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ryoka_utils-1.1.56.tar.gz | 6.4 kB | Without provenance | Details for ryoka_utils-1.1.56.tar.gz |
Release files / ryoka_utils-1.1.56.tar.gz
| Download URL | ryoka_utils-1.1.56.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
037ada9b228ee83b5835374fa0012e600b0a5512ddfd365387db52692f726e43
|
|
BLAKE2b-256 checksum How to use checksums |
cb9927306fd56e88548e8813d4d96dc48066a2a90f6f45869b1ce7e676b0457e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ryoka_utils 1.1.56
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.