Benign python Download

mkdocs-literate-nav 0.6.2

“MkDocs plugin to specify the navigation in Markdown instead of YAML”

imports urllib.parseReferences a public code-forge URL

Evidence

imports urllib.parse parser.py · lines 1–30
1from __future__ import annotations
2
3import copy
4import functools
5import itertools
6import logging
7import posixpath
8import urllib.parse
9import xml.etree.ElementTree as etree
10from collections.abc import Iterator
11from typing import TYPE_CHECKING, Callable, Optional, Union, cast
12
13import markdown
14import markdown.extensions
15import markdown.postprocessors
16import markdown.preprocessors
17import markdown.treeprocessors
18import mkdocs.utils
19
20from mkdocs_literate_nav import exceptions
21
22if TYPE_CHECKING:
23 from .plugin import MkDocsGlobber
24
25
⋯5 lines
English function-word token "and" parser.py · lines 38–43
38:52… bool = True):
39 norm = posixpath.normpath(posixpath.join(*path_parts).lstrip("/"))
40 if path_parts[-1].endswith("/") and not self.trim_slash:
41 norm += "/"
42 self.value = norm
43 self.fallback = …
Calls Python glob for file enumeration parser.py · lines 208–214
208:19… ntinue
209
210 any_matches = False
211 for item in self.globber.glob(entry.value.rstrip("/")):
212 any_matches = True
213 if item in self.seen_items:
214 co …
Checks condition using Python assert parser.py · lines 235–240
235:38…
236 if isinstance(item, dict):
237 assert len(item) == 1
238 [(key, val)] = item.items()
239 if isinstance(val, list):
240 r …
References a public code-forge URL plugin.py · lines 83–88
83:64… onLevel.NOT_IN_NAV
84 except AttributeError:
85 # https://github.com/mkdocs/mkdocs/blob/ff0b726056/mkdocs/structure/nav.py#L113
86 Page(None, file, {}) # type: ignore[arg-type]
87
88 t …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.