nide 2026.7.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nide/__init__.py ADDED
@@ -0,0 +1,55 @@
1
+ import json
2
+ import pathlib
3
+ from typing import TypeAlias
4
+
5
+ # [[[fill scm_describe()]]]
6
+ __version__ = '2026.7.3+parent.26fc29220e'
7
+ # [[[end]]] (sum: tkVtZGaFPX)
8
+ __version_info__ = tuple(
9
+ e if '-' not in e else e.split('-')[0] for part in __version__.split('+') for e in part.split('.') if e != 'parent'
10
+ )
11
+ VERSION, VERSION_INFO = __version__, __version_info__
12
+
13
+ ENCODING: str = 'utf-8'
14
+ ENC_ERRS: str = 'ignore'
15
+ NL: str = '\n'
16
+ CB_END: str = '}'
17
+ COLON: str = ':'
18
+ DASH: str = '-'
19
+ DOT: str = '.'
20
+ FULL_STOP: str = '.'
21
+ HASH: str = '#'
22
+ PARA: str = '§'
23
+ RS: str = chr(30)
24
+ SEMI: str = ';'
25
+ SPACE: str = ' '
26
+ TM: str = '™'
27
+ GREMLINS: str = ' .,;?!_()[]{}<>\\/$:"\'`´'
28
+
29
+ PathLike: TypeAlias = str | pathlib.Path
30
+
31
+ DO_NOT_EDIT_MEMENTO: dict[str, str] = {
32
+ 'Please do not edit manually!': 'Cf. assembly-config.yaml and nide',
33
+ }
34
+
35
+ __all__ = [
36
+ '__version__',
37
+ 'VERSION',
38
+ 'VERSION_INFO',
39
+ ]
40
+
41
+
42
+ def dump(data: dict[str, str], path: PathLike) -> None:
43
+ with open(path, 'wt', encoding=ENCODING) as handle:
44
+ json.dump(data, handle, indent=2)
45
+ handle.write(NL)
46
+
47
+
48
+ from ._config import ( # noqa: E402
49
+ BinderIgnores as BinderIgnores,
50
+ Config as Config,
51
+ DeleteWhenRule as DeleteWhenRule,
52
+ SectionRefStyle as SectionRefStyle,
53
+ load_config as load_config,
54
+ )
55
+ from ._toc import generate_toc as generate_toc, inject as inject, load_toc as load_toc # noqa: E402
nide/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from nide._cli import main # pragma: no cover
2
+ import sys # pragma: no cover
3
+
4
+ sys.exit(main()) # pragma: no cover