odsbox


Nameodsbox JSON
Version 1.0.14 PyPI version JSON
download
home_pageNone
SummaryToolbox for accessing ASAM ODS servers using the HTTP API
upload_time2025-10-23 18:41:34
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10.12
licenseNone
keywords asam ods measurement data access data science data analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ASAM ODSBox

![PyPI Version](https://img.shields.io/pypi/v/odsbox)
![Python Versions](https://img.shields.io/pypi/pyversions/odsbox)
![License](https://img.shields.io/github/license/peak-solution/odsbox)

The [*ODSBox*](https://peak-solution.github.io/odsbox) is a lightweight Python wrapper on the standardized
[ASAM ODS REST API](https://www.asam.net/standards/detail/ods/wiki/). It simplifies the handling of ASAM ODS data
in Python by utilizing intuitive [JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) queries
and [pandas DataFrames](https://pandas.pydata.org/).

## Features

- Lightweight Python wrapper for the [ASAM ODS HTTP API](https://www.asam.net/standards/detail/ods/wiki/#TechnicalContent).
- Intuitive querying using [JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) Query Language.
- Seamless integration with pandas DataFrames for data analysis.
- Includes generated [ASAM ODS protobuf](https://github.com/asam-ev/ASAM-ODS-Interfaces) stubs.
- Supports authentication mechanisms via [requests](https://pypi.org/project/requests/).
- [Bulk helper](https://peak-solution.github.io/odsbox/odsbox.html#odsbox.con_i.ConI.bulk) for quantity data access as
  pandas DataFrames.

## Quick Start

1. Install ODSBox: `pip install odsbox`
2. Connect to an ASAM ODS server:
    ```python
    from odsbox.con_i import ConI

    with ConI(url="https://MY_SERVER/api", auth=("USERNAME", "PASSWORD")) as con_i:
        measurements = con_i.query(
            {
                "AoMeasurement": {"name": {"$like": "*"}},
                "$attributes": {"name": 1, "id": 1},
                "$options": {"$rowlimit": 50},
            }
        )
        print(measurements) # print pandas DataFrame
    ```

## Documentation

* [*ODSBox* documentation](https://peak-solution.github.io/odsbox)
* [Work with ASAM ODS server](https://peak-solution.github.io/data_management_learning_path/ods/query-asam-server.html)

## Communication

The ASAM ODS server communicates via HTTP calls as specified in the [ASAM ODS standard](https://www.asam.net/standards/detail/ods/wiki/#TechnicalContent), which defines a RESTful API for accessing and manipulating measurement data. This allows for standardized interactions, including operations like querying, creating, updating, and deleting entities such as measurements, tests, and results.

Data exchanged between the client (e.g., ODSBox) and the server is encoded and decoded using [Protocol Buffers (protobuf)](https://protobuf.dev/programming-guides/proto3/), a binary serialization format developed by Google. Protobuf ensures efficient, compact, and fast data transfer compared to text-based formats like JSON, making it ideal for handling large datasets in technical measurement scenarios. The official protobuf message definitions are available in the [ASAM-ODS-Interfaces repository](https://github.com/asam-ev/ASAM-ODS-Interfaces).

Requests use the custom content type `application/x-asamods+protobuf` to indicate protobuf-encoded payloads. ODSBox abstracts these low-level details, allowing developers to interact with the API using intuitive Python dictionaries and methods, while handling authentication (e.g., via username/password or tokens) and connection management seamlessly.

## JAQuel Queries

[JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) enables intuitive data querying, drawing inspiration from the [MongoDB Query Language (MQL)](https://www.mongodb.com/docs/manual/tutorial/query-documents/). Its JSON-based query expressions seamlessly integrate with Python as dictionaries, offering a powerful and user-friendly approach to data retrieval.

## Installation

*ODSBox* is available on PyPI and GitHub.

|               |                                                                                      |
| :------------ | :----------------------------------------------------------------------------------- |
| github        | [https://github.com/peak-solution/odsbox/](https://github.com/peak-solution/odsbox/) |
| PyPI          | [https://pypi.org/project/odsbox/](https://pypi.org/project/odsbox/)                 |
| github docs   | [https://peak-solution.github.io/odsbox](https://peak-solution.github.io/odsbox)     |

```shell
# access ASAM ODS server
pip install odsbox
# access ASAM ODS EXD-API plugin
pip install odsbox[exd-data]
```

## Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

## License

This project is licensed under the MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "odsbox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10.12",
    "maintainer_email": null,
    "keywords": "asam, ods, measurement, data access, data science, data analysis",
    "author": null,
    "author_email": "Andreas Krantz <a.krantz@peak-solution.de>",
    "download_url": "https://files.pythonhosted.org/packages/f3/cf/4554e9a9bc6e941de1cb6b57e8d579835f5771314521b1d59135e6a09711/odsbox-1.0.14.tar.gz",
    "platform": null,
    "description": "# ASAM ODSBox\n\n![PyPI Version](https://img.shields.io/pypi/v/odsbox)\n![Python Versions](https://img.shields.io/pypi/pyversions/odsbox)\n![License](https://img.shields.io/github/license/peak-solution/odsbox)\n\nThe [*ODSBox*](https://peak-solution.github.io/odsbox) is a lightweight Python wrapper on the standardized\n[ASAM ODS REST API](https://www.asam.net/standards/detail/ods/wiki/). It simplifies the handling of ASAM ODS data\nin Python by utilizing intuitive [JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) queries\nand [pandas DataFrames](https://pandas.pydata.org/).\n\n## Features\n\n- Lightweight Python wrapper for the [ASAM ODS HTTP API](https://www.asam.net/standards/detail/ods/wiki/#TechnicalContent).\n- Intuitive querying using [JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) Query Language.\n- Seamless integration with pandas DataFrames for data analysis.\n- Includes generated [ASAM ODS protobuf](https://github.com/asam-ev/ASAM-ODS-Interfaces) stubs.\n- Supports authentication mechanisms via [requests](https://pypi.org/project/requests/).\n- [Bulk helper](https://peak-solution.github.io/odsbox/odsbox.html#odsbox.con_i.ConI.bulk) for quantity data access as\n  pandas DataFrames.\n\n## Quick Start\n\n1. Install ODSBox: `pip install odsbox`\n2. Connect to an ASAM ODS server:\n    ```python\n    from odsbox.con_i import ConI\n\n    with ConI(url=\"https://MY_SERVER/api\", auth=(\"USERNAME\", \"PASSWORD\")) as con_i:\n        measurements = con_i.query(\n            {\n                \"AoMeasurement\": {\"name\": {\"$like\": \"*\"}},\n                \"$attributes\": {\"name\": 1, \"id\": 1},\n                \"$options\": {\"$rowlimit\": 50},\n            }\n        )\n        print(measurements) # print pandas DataFrame\n    ```\n\n## Documentation\n\n* [*ODSBox* documentation](https://peak-solution.github.io/odsbox)\n* [Work with ASAM ODS server](https://peak-solution.github.io/data_management_learning_path/ods/query-asam-server.html)\n\n## Communication\n\nThe ASAM ODS server communicates via HTTP calls as specified in the [ASAM ODS standard](https://www.asam.net/standards/detail/ods/wiki/#TechnicalContent), which defines a RESTful API for accessing and manipulating measurement data. This allows for standardized interactions, including operations like querying, creating, updating, and deleting entities such as measurements, tests, and results.\n\nData exchanged between the client (e.g., ODSBox) and the server is encoded and decoded using [Protocol Buffers (protobuf)](https://protobuf.dev/programming-guides/proto3/), a binary serialization format developed by Google. Protobuf ensures efficient, compact, and fast data transfer compared to text-based formats like JSON, making it ideal for handling large datasets in technical measurement scenarios. The official protobuf message definitions are available in the [ASAM-ODS-Interfaces repository](https://github.com/asam-ev/ASAM-ODS-Interfaces).\n\nRequests use the custom content type `application/x-asamods+protobuf` to indicate protobuf-encoded payloads. ODSBox abstracts these low-level details, allowing developers to interact with the API using intuitive Python dictionaries and methods, while handling authentication (e.g., via username/password or tokens) and connection management seamlessly.\n\n## JAQuel Queries\n\n[JAQuel](https://peak-solution.github.io/odsbox/jaquel.html#examples) enables intuitive data querying, drawing inspiration from the [MongoDB Query Language (MQL)](https://www.mongodb.com/docs/manual/tutorial/query-documents/). Its JSON-based query expressions seamlessly integrate with Python as dictionaries, offering a powerful and user-friendly approach to data retrieval.\n\n## Installation\n\n*ODSBox* is available on PyPI and GitHub.\n\n|               |                                                                                      |\n| :------------ | :----------------------------------------------------------------------------------- |\n| github        | [https://github.com/peak-solution/odsbox/](https://github.com/peak-solution/odsbox/) |\n| PyPI          | [https://pypi.org/project/odsbox/](https://pypi.org/project/odsbox/)                 |\n| github docs   | [https://peak-solution.github.io/odsbox](https://peak-solution.github.io/odsbox)     |\n\n```shell\n# access ASAM ODS server\npip install odsbox\n# access ASAM ODS EXD-API plugin\npip install odsbox[exd-data]\n```\n\n## Contributing\n\nWe welcome contributions! See CONTRIBUTING.md for guidelines.\n\n## License\n\nThis project is licensed under the MIT License.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Toolbox for accessing ASAM ODS servers using the HTTP API",
    "version": "1.0.14",
    "project_urls": {
        "Documentation": "https://peak-solution.github.io/odsbox",
        "Homepage": "https://github.com/peak-solution/odsbox/tree/main#readme",
        "Repository": "https://github.com/peak-solution/odsbox",
        "Tracker": "https://github.com/peak-solution/odsbox/issues"
    },
    "split_keywords": [
        "asam",
        " ods",
        " measurement",
        " data access",
        " data science",
        " data analysis"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3536e77688fa6fd17ee9085768ef25ffe0653a0dca9e3bd21f1d19a57fdc100f",
                "md5": "3120edd02dedbbb0c24a1a2d7ecd224b",
                "sha256": "a4621bcc9af5069d581e584d4c7a0e8107890f17cb7eae3fe58292ee8576aaff"
            },
            "downloads": -1,
            "filename": "odsbox-1.0.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3120edd02dedbbb0c24a1a2d7ecd224b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10.12",
            "size": 61925,
            "upload_time": "2025-10-23T18:41:32",
            "upload_time_iso_8601": "2025-10-23T18:41:32.780873Z",
            "url": "https://files.pythonhosted.org/packages/35/36/e77688fa6fd17ee9085768ef25ffe0653a0dca9e3bd21f1d19a57fdc100f/odsbox-1.0.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f3cf4554e9a9bc6e941de1cb6b57e8d579835f5771314521b1d59135e6a09711",
                "md5": "0138225b9d9278001b9019f103c25c37",
                "sha256": "7c8d72727cf3ce106d8264d8c33ac07a2393487c0ff06832449b97ad3d42978f"
            },
            "downloads": -1,
            "filename": "odsbox-1.0.14.tar.gz",
            "has_sig": false,
            "md5_digest": "0138225b9d9278001b9019f103c25c37",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10.12",
            "size": 452295,
            "upload_time": "2025-10-23T18:41:34",
            "upload_time_iso_8601": "2025-10-23T18:41:34.114650Z",
            "url": "https://files.pythonhosted.org/packages/f3/cf/4554e9a9bc6e941de1cb6b57e8d579835f5771314521b1d59135e6a09711/odsbox-1.0.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-23 18:41:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "peak-solution",
    "github_project": "odsbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "odsbox"
}
        
Elapsed time: 0.78794s