![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Classes | |
| class | InventoryFileReader |
| class | InventoryItemType |
| class | InventoryType |
| class | InvMatch |
Functions | |
| InventoryType | from_sphinx (SphinxInventoryType inv) |
| SphinxInventoryType | to_sphinx (InventoryType inv) |
| InventoryType | load (IO stream, str|None base_url=None) |
| InventoryType | _load_v1 (InventoryFileReader stream, str|None base_url) |
| InventoryType | _load_v2 (InventoryFileReader stream, str|None base_url) |
| re.Pattern[str] | _create_regex (str pat) |
| bool | match_with_wildcard (str name, str|None pattern) |
| Iterator[InvMatch] | filter_inventories (dict[str, InventoryType] inventories, *str|None invs=None, str|None domains=None, str|None otypes=None, str|None targets=None) |
| Iterator[InvMatch] | filter_sphinx_inventories (dict[str, SphinxInventoryType] inventories, *str|None invs=None, str|None domains=None, str|None otypes=None, str|None targets=None) |
| str | filter_string (str|None invs, str|None domains, str|None otype, str|None target, *str delimiter=":") |
| InventoryType | fetch_inventory (str uri, *None|float timeout=None, None|str base_url=None) |
| inventory_cli (None|list[str] inputs=None) | |
Variables | |
| int | _BUFSIZE = 16 * 1024 |
Logic for dealing with sphinx style inventories (e.g. `objects.inv`). These contain mappings of reference names to ids, scoped by domain and object type. This is adapted from the Sphinx inventory.py module. We replicate it here, so that it can be used without Sphinx.
|
protected |
Create a regex from a pattern, that can include `*` wildcards, to match 0 or more characters. `\*` is translated as a literal `*`.
|
protected |
Load inventory data (format v1) from a stream.
|
protected |
Load inventory data (format v2) from a stream.
| InventoryType myst_parser.inventory.fetch_inventory | ( | str | uri, |
| *None | float | timeout = None, |
||
| None | str | base_url = None |
||
| ) |
Fetch an inventory from a URL or local path.
| Iterator[InvMatch] myst_parser.inventory.filter_inventories | ( | dict[str, InventoryType] | inventories, |
| *str | None | invs = None, |
||
| str | None | domains = None, |
||
| str | None | otypes = None, |
||
| str | None | targets = None |
||
| ) |
Filter a set of inventories. Filters are strings that can include `*` wildcards, to match 0 or more characters. To include a literal `*` in the pattern, use `\*`. :param inventories: Mapping of inventory name to inventory data :param invs: the inventory key filter :param domains: the domain name filter :param otypes: the object type filter :param targets: the target name filter
| Iterator[InvMatch] myst_parser.inventory.filter_sphinx_inventories | ( | dict[str, SphinxInventoryType] | inventories, |
| *str | None | invs = None, |
||
| str | None | domains = None, |
||
| str | None | otypes = None, |
||
| str | None | targets = None |
||
| ) |
Filter a set of sphinx style inventories. Filters are strings that can include `*` wildcards, to match 0 or more characters. To include a literal `*` in the pattern, use `\*`. :param inventories: Mapping of inventory name to inventory data :param invs: the inventory key filter :param domains: the domain name filter :param otypes: the object type filter :param targets: the target name filter
| str myst_parser.inventory.filter_string | ( | str | None | invs, |
| str | None | domains, | ||
| str | None | otype, | ||
| str | None | target, | ||
| *str | delimiter = ":" |
||
| ) |
Create a string representation of the filter, from the given arguments.
| InventoryType myst_parser.inventory.from_sphinx | ( | SphinxInventoryType | inv | ) |
Convert from a Sphinx compliant format.
| myst_parser.inventory.inventory_cli | ( | None | list[str] | inputs = None | ) |
Command line interface for fetching and parsing an inventory.
| InventoryType myst_parser.inventory.load | ( | IO | stream, |
| str | None | base_url = None |
||
| ) |
Load inventory data from a stream.
| bool myst_parser.inventory.match_with_wildcard | ( | str | name, |
| str | None | pattern | ||
| ) |
Match a whole name with a pattern, that can include `*` wildcards, to match 0 or more characters. To include a literal `*` in the pattern, use `\*`.
| SphinxInventoryType myst_parser.inventory.to_sphinx | ( | InventoryType | inv | ) |
Convert to a Sphinx compliant format.