Skip to content

Commit

Permalink
add api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielT committed Sep 18, 2023
1 parent 014f3a3 commit 887cb47
Show file tree
Hide file tree
Showing 6 changed files with 861 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ docs/_build/
.vscode/

# Pyenv
.python-version
.python-version

# mkdocs output
/site/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ for (depth, element) in model.elements_dfs:
- maturin must be installed: `pip install maturin` if it isn't
- create a venv in the cloned source: `python -m venv .venv`
- build the wheel and directly install it in the venv: `maturin develop`
- activate the venv in a shell: `.venv/Scripts/activate` or `.venv\Scripts\Activate.ps1`
- activate the venv in a shell: `source .venv/bin/activate` or `.venv\Scripts\Activate.ps1`
- run python in the shell with the venv
6 changes: 4 additions & 2 deletions autosar_data.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class Element:
"""
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
def serialize(self) -> str: ...
def serialize(self) -> str:
"""serialize this element and its sub elements int oa string. This string is valid xml, but it is not a vaild arxml file"""
...
parent: Element
"""reference to the parent of this element"""
element_name: ElementName
Expand Down Expand Up @@ -218,7 +220,7 @@ class Element:
sub_elements: ElementsIterator
"""an iterator over all sub elements in the content of this element. It skips character data content items"""
elements_dfs: ElementsDfsIterator
"""dpeth first search iterator for this element and all of its sub elements"""
"""depth first search iterator for this element and all of its sub elements"""
character_data: CharacterData
"""character content of this element, if any. For elements with ContentType=Element, or empty elements this is None"""
def remove_character_data(self) -> None:
Expand Down
Loading

0 comments on commit 887cb47

Please sign in to comment.