useful-stuff
Useful Stuff
Libraries
argparser # parse command line args for python module call
json # convert between JSON text and python objects
string
unittest
marshmallow_dataclass
hashlib
shutil
argparse
pathlib
sybprocess
os
sys
uuid
Commands
bytearray()
memoryview() # Access underlying bytes without copying
lambda:
file.readinto()
os.walk(directory) # Get path of each dir and file recursively
my_string.removeprefix("my_prefix")
" ".join(["my", "string"]) # Joins items into space-delimited string
"/path/to/my/file".split('/') # Splits string into list by delimiter
Last updated