Skip to main content

Parser for *.cubex files

Project description

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
    • :warning: ... 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycube-parser-0.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycube_parser-0.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file pycube-parser-0.0.1.tar.gz.

File metadata

  • Download URL: pycube-parser-0.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pycube-parser-0.0.1.tar.gz
Algorithm Hash digest
SHA256 20a5e7eac4b304e6d69db587f51d2d8f1d1dec4edff28bf9c8cad85bb31f2b77
MD5 d59e904c7eab03056c2e6de1ad382d15
BLAKE2b-256 8338d8bde68d3bbff5effdfbd506af42acca45bf339d11506cc6a3ca7133674d

See more details on using hashes here.

File details

Details for the file pycube_parser-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pycube_parser-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pycube_parser-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61c475ad413875415013f7b07e4bad475c03a1a69080ba42065598fd41267f41
MD5 74ddaf9245f9941a509e0bda63e369f6
BLAKE2b-256 2ccc8e912585cdc60ed37f735390e6e0d0375be3db61675b6fd94a6d396defa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page