Skip to content

Commit e874502

Browse files
authored
Update Binary.py
1 parent 58827fe commit e874502

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

data/Binary.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'''
22
Binary.py
3-
Example websocket connection for price data
3+
Example binary packing/unpacking for large data storage/retrieval
44
Author: Dan Wallace
55
Date: 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
@@ -14,7 +15,7 @@
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
'''

0 commit comments

Comments
 (0)