We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58827fe commit e874502Copy full SHA for e874502
1 file changed
data/Binary.py
@@ -1,10 +1,11 @@
1
'''
2
Binary.py
3
-Example websocket connection for price data
+Example binary packing/unpacking for large data storage/retrieval
4
Author: Dan Wallace
5
Date: 6/5/2021
6
7
--> Binary.py Example
+Notes:
8
+-> Binary.py
9
1. This script contains two functions :: convert_to_binary(), unpack_binary_file().
10
-> convert_to_binary() :: Parses python dict(), where key's values are arrays, into a 1D binary file.
11
-> convert_to_binary() :: This can be used to optimize large data storage
@@ -14,7 +15,7 @@
14
15
2. For the example we will uses Numpy to create arrays
16
-> Type 'pip install numpy' in your terminal if you don't have it already
17
--> Struct Notes
18
+-> Struct
19
1. 'wb' overwrites binary file
20
2. 'ab' appends to existing binary file
21
0 commit comments