This is the 'official' machine data/measurement and event data (MAED) 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 (slightly out of date) 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_zip('md.zip', header_format=HeaderFileFormats.CSV)
write_machine_data_zip('md_test.zip', md, header_format=HeaderFileFormats.CSV)
write_machine_data_v2(mk_canon_filenames_v2('test/', header_format=HeaderFileFormats.CSV), md, header_format=HeaderFileFormats.CSV)
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": null,
"name": "mdata",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.11",
"maintainer_email": null,
"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/58/34/bd7bcf293732cdf5b33b82a2e38f81d7cac04b926e515cc879ebad99267e/mdata-0.3.7.tar.gz",
"platform": null,
"description": "This is the 'official' machine data/measurement and event data (MAED) 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 (slightly out of date) 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\nmd = read_machine_data_zip('md.zip', header_format=HeaderFileFormats.CSV)\nwrite_machine_data_zip('md_test.zip', md, header_format=HeaderFileFormats.CSV)\nwrite_machine_data_v2(mk_canon_filenames_v2('test/', header_format=HeaderFileFormats.CSV), md, header_format=HeaderFileFormats.CSV)\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": null,
"version": "0.3.7",
"project_urls": null,
"split_keywords": [
"data format",
" machine data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bcd7bb12b5ebd09e19cffa4bdfd2ac149f6845daf67126deee276fb59dda6f52",
"md5": "8d0be214db8140223ce7b0133003cd19",
"sha256": "ed04568e87334f04216bf8093fd063435c7dfaad788b581a361934cfc8452eb0"
},
"downloads": -1,
"filename": "mdata-0.3.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8d0be214db8140223ce7b0133003cd19",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.11",
"size": 84675,
"upload_time": "2024-10-29T11:10:25",
"upload_time_iso_8601": "2024-10-29T11:10:25.470039Z",
"url": "https://files.pythonhosted.org/packages/bc/d7/bb12b5ebd09e19cffa4bdfd2ac149f6845daf67126deee276fb59dda6f52/mdata-0.3.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5834bd7bcf293732cdf5b33b82a2e38f81d7cac04b926e515cc879ebad99267e",
"md5": "fbdd1e3a089b5803e39bf846492bf8d8",
"sha256": "b77c8aa095a81c367e73ba59c5d12b372e435a66e71fd19e0b43daa7335f1e00"
},
"downloads": -1,
"filename": "mdata-0.3.7.tar.gz",
"has_sig": false,
"md5_digest": "fbdd1e3a089b5803e39bf846492bf8d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.11",
"size": 247195,
"upload_time": "2024-10-29T11:10:27",
"upload_time_iso_8601": "2024-10-29T11:10:27.303386Z",
"url": "https://files.pythonhosted.org/packages/58/34/bd7bcf293732cdf5b33b82a2e38f81d7cac04b926e515cc879ebad99267e/mdata-0.3.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-29 11:10:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mdata"
}