mikro-doc 1.0.0__tar.gz
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.
- mikro_doc-1.0.0/LICENSE +21 -0
- mikro_doc-1.0.0/MANIFEST.in +1 -0
- mikro_doc-1.0.0/PKG-INFO +80 -0
- mikro_doc-1.0.0/README.md +62 -0
- mikro_doc-1.0.0/mikro_doc/__init__.py +1380 -0
- mikro_doc-1.0.0/mikro_doc/__main__.py +2 -0
- mikro_doc-1.0.0/mikro_doc/mikro-doc.hints +1919 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/PKG-INFO +80 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/SOURCES.txt +13 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/dependency_links.txt +1 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/entry_points.txt +2 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/requires.txt +1 -0
- mikro_doc-1.0.0/mikro_doc.egg-info/top_level.txt +1 -0
- mikro_doc-1.0.0/pyproject.toml +36 -0
- mikro_doc-1.0.0/setup.cfg +4 -0
mikro_doc-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tim Hosking
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include mikro_doc/mikro-doc.hints
|
mikro_doc-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mikro-doc
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Generate a self-contained offline HTML API reference for RouterOS
|
|
5
|
+
Author: Tim Hosking
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/munger/mikro-doc
|
|
8
|
+
Project-URL: Source, https://github.com/munger/mikro-doc
|
|
9
|
+
Keywords: routeros,mikrotik,documentation,api
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: requests
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# mikro-doc
|
|
20
|
+
|
|
21
|
+
Generate a self-contained offline HTML API reference for RouterOS.
|
|
22
|
+
|
|
23
|
+
Discovers the full RouterOS API tree from a live router via the REST
|
|
24
|
+
interface, then produces a standalone HTML document (with search,
|
|
25
|
+
sidebar navigation, pagination and example curl commands) and a
|
|
26
|
+
Markdown reference — all usable directly from the `file://` protocol
|
|
27
|
+
without a web server.
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
mikro-doc --host H --user U --pass P [--store-credentials] [--output-dir DIR] [--endpoints] [--no-docs]
|
|
31
|
+
mikro-doc --schema PATH [--output-dir DIR] [--endpoints] [--no-docs]
|
|
32
|
+
mikro-doc PATH [--output-dir DIR] [--endpoints] [--no-docs]
|
|
33
|
+
mikro-doc --no-fetch [--host H|--schema PATH] [options]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## ⚠ BIG FAT WARNING
|
|
37
|
+
|
|
38
|
+
This tool will query your router (potentially hundreds of times) to discover the API structure.
|
|
39
|
+
It is designed to be safe and non-intrusive, but the documentation it generates will include actual configuration
|
|
40
|
+
information from your router (e.g. interface names, user names). **Do NOT share the generated documentation publicy.**
|
|
41
|
+
It is for your eyes only. If you passed `--store-credentials`, the credentials will be stored in plaintext in the
|
|
42
|
+
output JSON file for future use. You have been warned.
|
|
43
|
+
|
|
44
|
+
## Output
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
<output-dir>/<router>.schema.json — Full API schema (JSON)
|
|
48
|
+
<output-dir>/<router>.index.html — Standalone docs page (works on file://)
|
|
49
|
+
<output-dir>/<router>.md — Markdown reference
|
|
50
|
+
<output-dir>/<router>_Endpoints.json — Hierarchical endpoints tree (with --endpoints)
|
|
51
|
+
<output-dir>/<router>.log — Discovery log
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Install
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pipx install mikro-doc
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This pulls from PyPI, creates an isolated environment, and installs the
|
|
61
|
+
`mikro-doc` command and its dependencies. On macOS, `pip` without a
|
|
62
|
+
virtual environment is blocked by system integrity protection; **pipx
|
|
63
|
+
is the recommended alternative.**
|
|
64
|
+
|
|
65
|
+
To upgrade: `pipx upgrade mikro-doc`
|
|
66
|
+
|
|
67
|
+
### Alternatives
|
|
68
|
+
|
|
69
|
+
- `pip3 install --user mikro-doc` (works on most Linux, blocked on macOS)
|
|
70
|
+
- `python3 -m venv /path/to/venv && /path/to/venv/bin/pip install mikro-doc`
|
|
71
|
+
|
|
72
|
+
## Requirements
|
|
73
|
+
|
|
74
|
+
- Python 3.7+
|
|
75
|
+
|
|
76
|
+
## Bundled Data
|
|
77
|
+
|
|
78
|
+
`mikro-doc.hints` is bundled inside the package and provides example
|
|
79
|
+
values for common RouterOS parameter types. Without it, placeholder values
|
|
80
|
+
(`<paramname>`) will be used in curl examples.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# mikro-doc
|
|
2
|
+
|
|
3
|
+
Generate a self-contained offline HTML API reference for RouterOS.
|
|
4
|
+
|
|
5
|
+
Discovers the full RouterOS API tree from a live router via the REST
|
|
6
|
+
interface, then produces a standalone HTML document (with search,
|
|
7
|
+
sidebar navigation, pagination and example curl commands) and a
|
|
8
|
+
Markdown reference — all usable directly from the `file://` protocol
|
|
9
|
+
without a web server.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
mikro-doc --host H --user U --pass P [--store-credentials] [--output-dir DIR] [--endpoints] [--no-docs]
|
|
13
|
+
mikro-doc --schema PATH [--output-dir DIR] [--endpoints] [--no-docs]
|
|
14
|
+
mikro-doc PATH [--output-dir DIR] [--endpoints] [--no-docs]
|
|
15
|
+
mikro-doc --no-fetch [--host H|--schema PATH] [options]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## ⚠ BIG FAT WARNING
|
|
19
|
+
|
|
20
|
+
This tool will query your router (potentially hundreds of times) to discover the API structure.
|
|
21
|
+
It is designed to be safe and non-intrusive, but the documentation it generates will include actual configuration
|
|
22
|
+
information from your router (e.g. interface names, user names). **Do NOT share the generated documentation publicy.**
|
|
23
|
+
It is for your eyes only. If you passed `--store-credentials`, the credentials will be stored in plaintext in the
|
|
24
|
+
output JSON file for future use. You have been warned.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
<output-dir>/<router>.schema.json — Full API schema (JSON)
|
|
30
|
+
<output-dir>/<router>.index.html — Standalone docs page (works on file://)
|
|
31
|
+
<output-dir>/<router>.md — Markdown reference
|
|
32
|
+
<output-dir>/<router>_Endpoints.json — Hierarchical endpoints tree (with --endpoints)
|
|
33
|
+
<output-dir>/<router>.log — Discovery log
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pipx install mikro-doc
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
This pulls from PyPI, creates an isolated environment, and installs the
|
|
43
|
+
`mikro-doc` command and its dependencies. On macOS, `pip` without a
|
|
44
|
+
virtual environment is blocked by system integrity protection; **pipx
|
|
45
|
+
is the recommended alternative.**
|
|
46
|
+
|
|
47
|
+
To upgrade: `pipx upgrade mikro-doc`
|
|
48
|
+
|
|
49
|
+
### Alternatives
|
|
50
|
+
|
|
51
|
+
- `pip3 install --user mikro-doc` (works on most Linux, blocked on macOS)
|
|
52
|
+
- `python3 -m venv /path/to/venv && /path/to/venv/bin/pip install mikro-doc`
|
|
53
|
+
|
|
54
|
+
## Requirements
|
|
55
|
+
|
|
56
|
+
- Python 3.7+
|
|
57
|
+
|
|
58
|
+
## Bundled Data
|
|
59
|
+
|
|
60
|
+
`mikro-doc.hints` is bundled inside the package and provides example
|
|
61
|
+
values for common RouterOS parameter types. Without it, placeholder values
|
|
62
|
+
(`<paramname>`) will be used in curl examples.
|