Skip to main content

Parser for cubex files

cubex file format

  • anchor.xml
    • contains
      • cnodes
      • metrics
      • regions
      • system_tree_nodes
        • locationgroups
          • locations
  • index.0
    • the 0 stands for the metric ID
    • contains
      • a header
        • "1"
          • a "1" encoded as a
        • endianness
        • the number of cnodes in the data.0 file
      • a list of cnode indices
        • cnode_indices = [c1, c2, ...]
  • data.0
    • contains
      • a header
      • data for each cnode_id in cnode_indices
        • contains metric values for all locations
        • to retrieve the value of a particular cnode with cnode_id, and a specific location_id
          • get index of cnode_index in cnode_indices
            • = the position of the cnode_id in cnode_indices
          • offset in data.0: cnode_index * num_locations + location_id
            • the locations all have incrementing location_ids
        • Important: the list is sorted!
          • not in the order of the XML

Notes

  • Requires at least Python version 3.5
    • Contains typings as defined in PEP 484
  • The cubex files are tar archives
    • ⚠️ ... when extracting them and parsing the extracted 0.data files using the low-level IndexParser/DataParser directly, they will create strange behaviour
      • in the most cases, parsing succeeds but some edge-cases (related to endianness?) create problems

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)

Source distribution for pycube-parser 0.0.1
File Size Uploaded
pycube-parser-0.0.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycube-parser 0.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page