Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gql exporter #433

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
386 changes: 337 additions & 49 deletions docs/graphql.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ dependencies = [
"rich-click>=1.8.3",
"rich>=13.9.4",
"ruff>=0.7.3",
"graphene>=3.4.3",
"pandas>=2.2.3",
]
authors = [
{name="COVESA VSS", email="[email protected]"}
Expand Down
10 changes: 8 additions & 2 deletions src/vss_tools/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@
# https://www.mozilla.org/en-US/MPL/2.0/
#
# SPDX-License-Identifier: MPL-2.0
from typing import Any, Callable, Set
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Set

from vss_tools import log

if TYPE_CHECKING:
from vss_tools.model import VSSUnit

# Global objects to be extended by other code parts
dynamic_datatypes: Set[str] = set()
dynamic_struct_schemas: dict[str, dict[str, Any]] = {}
dynamic_quantities: list[str] = []
dynamic_units: dict[str, list] = {} # unit name -> allowed datatypes
# Map of unit name and VSSUnit
dynamic_units: dict[str, VSSUnit] = {}


class DatatypesException(Exception):
Expand Down
Loading
Loading