mdata


Namemdata JSON
Version 0.2.0 PyPI version JSON
download
home_page
Summary
upload_time2024-02-27 12:29:45
maintainer
docs_urlNone
authorLeah Tacke genannt Unterberg
requires_python>=3.11,<3.13
licenseMIT
keywords data format machine data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This is the official machine data format package.

It supports csv importing, exporting and format compliance checking.
Machine data files can be parsed into a python object that provides typed views on the contained measurement and event timeseries.

Some examples:

`validation.py` in `files/input/extension_testing` 
```python
from mdata.core import as_v2
from mdata.io import write_machine_data_v2, read_machine_data_zip, write_machine_data_zip
from mdata.io.util import HeaderFileFormats, mk_canon_filenames_v2

# md = read_machine_data_v2(mk_canon_filenames_v2(header_format=HeaderFileFormats.YAML))
md = read_machine_data_zip('md.zip', header_format=HeaderFileFormats.YAML)
write_machine_data_zip('md_test.zip', md, header_format=HeaderFileFormats.YAML)
write_machine_data_v2(mk_canon_filenames_v2('test/', header_format=HeaderFileFormats.YAML), md, header_format=HeaderFileFormats.YAML)

as_v2(md)

print(md.event_specs)
print(md.measurement_specs)
print(md.segment_specs)
print(md.segment_data_specs)
print()
print(md.observation_index)
print(md.segments.df)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mdata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11,<3.13",
    "maintainer_email": "",
    "keywords": "data format,machine data",
    "author": "Leah Tacke genannt Unterberg",
    "author_email": "leah.tgu@pads.rwth-aachen.de",
    "download_url": "https://files.pythonhosted.org/packages/19/09/8eecf6748ae3f79a583ec3d2dc925721df44c8b0c9bb8a8424833d158d57/mdata-0.2.0.tar.gz",
    "platform": null,
    "description": "This is the official machine data format package.\n\nIt supports csv importing, exporting and format compliance checking.\nMachine data files can be parsed into a python object that provides typed views on the contained measurement and event timeseries.\n\nSome examples:\n\n`validation.py` in `files/input/extension_testing` \n```python\nfrom mdata.core import as_v2\nfrom mdata.io import write_machine_data_v2, read_machine_data_zip, write_machine_data_zip\nfrom mdata.io.util import HeaderFileFormats, mk_canon_filenames_v2\n\n# md = read_machine_data_v2(mk_canon_filenames_v2(header_format=HeaderFileFormats.YAML))\nmd = read_machine_data_zip('md.zip', header_format=HeaderFileFormats.YAML)\nwrite_machine_data_zip('md_test.zip', md, header_format=HeaderFileFormats.YAML)\nwrite_machine_data_v2(mk_canon_filenames_v2('test/', header_format=HeaderFileFormats.YAML), md, header_format=HeaderFileFormats.YAML)\n\nas_v2(md)\n\nprint(md.event_specs)\nprint(md.measurement_specs)\nprint(md.segment_specs)\nprint(md.segment_data_specs)\nprint()\nprint(md.observation_index)\nprint(md.segments.df)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [
        "data format",
        "machine data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "10f5ed0ea4b478ff15d3de87c0e052d8afd0021fccb19b769eb1f982a1ca5168",
                "md5": "87f07d0d63fb3b7a4c202dbcdd50ab86",
                "sha256": "317507e13e630b2763d4424970b6bb668814ca80374e66e98bd3dfea72609dee"
            },
            "downloads": -1,
            "filename": "mdata-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87f07d0d63fb3b7a4c202dbcdd50ab86",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<3.13",
            "size": 78904,
            "upload_time": "2024-02-27T12:29:43",
            "upload_time_iso_8601": "2024-02-27T12:29:43.457184Z",
            "url": "https://files.pythonhosted.org/packages/10/f5/ed0ea4b478ff15d3de87c0e052d8afd0021fccb19b769eb1f982a1ca5168/mdata-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19098eecf6748ae3f79a583ec3d2dc925721df44c8b0c9bb8a8424833d158d57",
                "md5": "ae602e7b33fc6356f70d2ee302655dbe",
                "sha256": "8410553c51af678bc6b56d7c7285581aa610f568b2135a8e103a682ae9cf371c"
            },
            "downloads": -1,
            "filename": "mdata-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ae602e7b33fc6356f70d2ee302655dbe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<3.13",
            "size": 231028,
            "upload_time": "2024-02-27T12:29:45",
            "upload_time_iso_8601": "2024-02-27T12:29:45.663472Z",
            "url": "https://files.pythonhosted.org/packages/19/09/8eecf6748ae3f79a583ec3d2dc925721df44c8b0c9bb8a8424833d158d57/mdata-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-27 12:29:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mdata"
}
        
Elapsed time: 0.18314s