Parser for cubex files
cubex file format
anchor.xml- contains
cnodesmetricsregionssystem_tree_nodeslocationgroupslocations
- contains
index.0- the
0stands for the metric ID - contains
- a header
- "1"
- a "1" encoded as a
- endianness
- the number of
cnodesin thedata.0file
- "1"
- a list of
cnodeindicescnode_indices = [c1, c2, ...]
- a header
- the
data.0- contains
- a header
- data for each
cnode_idincnode_indices- contains metric values for all
locations - to retrieve the value of a particular
cnodewithcnode_id, and a specificlocation_id- get index of
cnode_indexincnode_indices- = the position of the
cnode_idincnode_indices
- = the position of the
- offset in
data.0:cnode_index * num_locations + location_id- the
locationsall have incrementinglocation_ids
- the
- get index of
- Important: the list is sorted!
- not in the order of the XML
- contains metric values for all
- contains
Notes
- Requires at least Python version 3.5
- Contains
typingsas defined in PEP 484
- Contains
- The
cubexfiles aretararchives- ⚠️ ... when extracting them and parsing the extracted
0.datafiles using the low-levelIndexParser/DataParserdirectly, they will create strange behaviour- in the most cases, parsing succeeds but some edge-cases (related to endianness?) create problems
- ⚠️ ... when extracting them and parsing the extracted
Metadata
Release files for pycube-parser 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycube-parser-0.0.1.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycube_parser-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / pycube-parser-0.0.1.tar.gz
| Download URL | pycube-parser-0.0.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20a5e7eac4b304e6d69db587f51d2d8f1d1dec4edff28bf9c8cad85bb31f2b77
|
|
BLAKE2b-256 checksum How to use checksums |
8338d8bde68d3bbff5effdfbd506af42acca45bf339d11506cc6a3ca7133674d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
|
Release files / pycube_parser-0.0.1-py3-none-any.whl
| Download URL | pycube_parser-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61c475ad413875415013f7b07e4bad475c03a1a69080ba42065598fd41267f41
|
|
BLAKE2b-256 checksum How to use checksums |
2ccc8e912585cdc60ed37f735390e6e0d0375be3db61675b6fd94a6d396defa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
|