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 1
1
'''
2
2
Binary.py
3
- Example websocket connection for price data
3
+ Example binary packing/unpacking for large data storage/retrieval
4
4
Author: Dan Wallace
5
5
Date: 6/5/2021
6
6
7
- -> Binary.py Example
7
+ Notes:
8
+ -> Binary.py
8
9
1. This script contains two functions :: convert_to_binary(), unpack_binary_file().
9
10
-> convert_to_binary() :: Parses python dict(), where key's values are arrays, into a 1D binary file.
10
11
-> convert_to_binary() :: This can be used to optimize large data storage
14
15
2. For the example we will uses Numpy to create arrays
15
16
-> Type 'pip install numpy' in your terminal if you don't have it already
16
17
17
- -> Struct Notes
18
+ -> Struct
18
19
1. 'wb' overwrites binary file
19
20
2. 'ab' appends to existing binary file
20
21
'''
You can’t perform that action at this time.
0 commit comments