bot.exts.utilities.snekbox._io
#
I/O File protocols for snekbox.
Module Contents#
Classes#
File Attachment from Snekbox eval. |
Functions#
|
Return a human-readable file size. |
|
Return a normalized valid discord file name. |
Attributes#
- bot.exts.utilities.snekbox._io.sizeof_fmt(num: float, suffix: str = 'B') str [source]#
Return a human-readable file size.
- bot.exts.utilities.snekbox._io.normalize_discord_file_name(name: str) str [source]#
Return a normalized valid discord file name.