Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Create path to filename and saves binary data

        def write_binary(filename, data):
    """Create path to filename and saves binary data"""
    dir = os.path.dirname(filename)
    if not os.path.exists(dir):
    with open(filename, 'wb') as f:

src/p/y/pytinypng-0.0.9/pytinypng/pytinypng.py   pytinypng(Download)
from api import shrink
from handlers import ScreenHandler
from utils import files_with_exts, target_path, write_binary, read_binary, find_apikey
    if compressed.success and compressed.bytes:
        write_binary(output_file, compressed.bytes)
        if compressed.errno in FATAL_ERRORS: