File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11'''
22Binary.py
3- Example websocket connection for price data
3+ Example binary packing/unpacking for large data storage/retrieval
44Author: Dan Wallace
55Date: 6/5/2021
66
7- -> Binary.py Example
7+ Notes:
8+ -> Binary.py
89 1. This script contains two functions :: convert_to_binary(), unpack_binary_file().
910 -> convert_to_binary() :: Parses python dict(), where key's values are arrays, into a 1D binary file.
1011 -> convert_to_binary() :: This can be used to optimize large data storage
1415 2. For the example we will uses Numpy to create arrays
1516 -> Type 'pip install numpy' in your terminal if you don't have it already
1617
17- -> Struct Notes
18+ -> Struct
1819 1. 'wb' overwrites binary file
1920 2. 'ab' appends to existing binary file
2021'''
You can’t perform that action at this time.
0 commit comments