Python io.BytesIO.__init__() Examples

The following are 30 code examples of io.BytesIO.__init__(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module io.BytesIO , or try the search function .
Example #1
Source File: test_io.py    From mxnet-lambda with Apache License 2.0 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #2
Source File: test_io.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #3
Source File: test_io.py    From predictive-maintenance-using-machine-learning with Apache License 2.0 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #4
Source File: test_io.py    From pySINDy with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #5
Source File: test_cftp.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self, conn):
        """
        @param conn: The SSH connection associated with this channel.
        @type conn: L{SSHConnection}
        """
        self.conn = conn
        self.localClosed = 0
        super(InMemorySSHChannel, self).__init__() 
Example #6
Source File: test_cftp.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self):
        self._cache = {} 
Example #7
Source File: test_cftp.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self, availableFiles):
        self.transport = InMemorySSHChannel(self)
        self.options = {
            'requests': 1,
            'buffersize': 10,
            }
        self._availableFiles = availableFiles 
Example #8
Source File: test_cftp.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self, name):
        """
        @param name: Name of this file.
        @type name: L{str}
        """
        self.name = name
        BytesIO.__init__(self) 
Example #9
Source File: test_cftp.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self, testDir):
        self.testDir = testDir 
Example #10
Source File: test_cftp.py    From Safejumper-for-Desktop with GNU General Public License v2.0 5 votes vote down vote up
def __init__(self, testDir):
        self.testDir = testDir 
Example #11
Source File: test_io.py    From ImageFusion with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #12
Source File: fields.py    From django-encrypted-filefield with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, content):
        self.size = content.size
        BytesIO.__init__(self, Cryptographer.encrypted(content.file.read())) 
Example #13
Source File: test_io.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #14
Source File: test_io.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #15
Source File: test_io.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #16
Source File: test_io.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #17
Source File: test_io.py    From keras-lambda with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #18
Source File: test_io.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #19
Source File: server.py    From Sony-PMCA-RE with MIT License 5 votes vote down vote up
def __init__(self, file):
  BytesIO.__init__(self)
  self.wrappedFile = file 
Example #20
Source File: server.py    From Sony-PMCA-RE with MIT License 5 votes vote down vote up
def __init__(self, certFile, fakeHost, host='127.0.0.1', port=4443):
  HTTPServer.__init__(self, (host, port), HttpHandler)
  self.host = host
  self.port = port
  self.url = 'https://' + host + '/'
  self.fakeUrl = 'https://' + fakeHost + '/'
  self.apk = None
  self.result = None
  self.socket = ssl.wrap_socket(self.socket, server_side=True, ssl_version=ssl.PROTOCOL_TLSv1, certfile=certFile) 
Example #21
Source File: server.py    From Sony-PMCA-RE with MIT License 5 votes vote down vote up
def __init__(self, host):
  self.base = 'https://' + host 
Example #22
Source File: server.py    From Sony-PMCA-RE with MIT License 5 votes vote down vote up
def __init__(self, server):
  self._server = server 
Example #23
Source File: test_io.py    From lambda-packs with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #24
Source File: test_io.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #25
Source File: test_io.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #26
Source File: test_io.py    From Computable with MIT License 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #27
Source File: test_io.py    From recruit with Apache License 2.0 5 votes vote down vote up
def __init__(self, s=""):
        BytesIO.__init__(self, asbytes(s)) 
Example #28
Source File: buffers.py    From streamlink with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self, buf):
        self.length = len(buf)
        BytesIO.__init__(self, buf) 
Example #29
Source File: buffers.py    From streamlink with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        self.chunks = deque()
        self.current_chunk = None
        self.closed = False
        self.length = 0 
Example #30
Source File: buffers.py    From streamlink with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self, size=8192 * 4):
        Buffer.__init__(self)

        self.buffer_size = size
        self.buffer_lock = Lock()

        self.event_free = Event()
        self.event_free.set()
        self.event_used = Event()