PCAP tools and parsing library with nanosecond support and without dependencies
Project description
Fixie
Fixie is a Python FIX parsing library and collection of end-user tools for working with FIX data.
Tools
Standalone executable tools are located in the Fixie.Tools
module.
FixToJson.py
Converts FIX to JSON, line by line. Accepts input from stdin
, or a single file
argument (which may be a gzip archive with a file name ending in .gz
).
GenerateTagMappings.py
Used to generate new content for Fixie/Tags.py
based on a CSV file (run
infrequently).
ViewFix.py
Pretty prints a set of line-delimited FIX messages, e.g. from a log file (which may be a gzip archive). For easier human consumption, enumerations display an explanation after their value, and the length of the raw FIX message is limited.
> Fixie/Tools/ViewFix.py data/secdef-test.dat
0: 1128=9|9=667|35=d|49=CME|34=1263|52=20140615160300389|15=USD|22=8|48=24922|55=ZS|107=ZS:CF Q4U4X4F5|...
BodyLength [ 9] = 667
CheckSum [ 10] = 166 (calculated checksum = 166)
Currency [ 15] = USD
IDSource [ 22] = 8
MsgSeqNum [ 34] = 1263
MsgType [ 35] = d [Security Definition]
SecurityID [ 48] = 24922
...
Commonly used with less
:
> Fixie/Tools/ViewFix.py data/secdef-test.dat | less
Or, with color:
> Fixie/Tools/ViewFix.py -c data/secdef-test.dat | less -R
Development
Unit Tests
Unit tests can be run with the following command:
> python3 -m unittest discover
..........
----------------------------------------------------------------------
Ran 10 tests in 0.005s
OK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyFixie-0.0.3.tar.gz
.
File metadata
- Download URL: PyFixie-0.0.3.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeeeb9fb6ed88b62dd668bd419bc7a23a15d54986cc0d9953085e7a84883891b |
|
MD5 | 8ad6b3b4c42e755927d2a7e04e395e5c |
|
BLAKE2b-256 | 47da3f73347d200375cb95d3dc2d41b3950873d4a95532eab7d97bff12ce4b4a |
File details
Details for the file PyFixie-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: PyFixie-0.0.3-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4500bca13253abdad1ee0df2096e854508a854d9184f0b6c2baa496511420ce |
|
MD5 | 90f4a901d21a1861643115e362372c99 |
|
BLAKE2b-256 | 481e56333e9d211597e4bbb637c35b78671e3d5150caa9f96ad6c69d249713a6 |