Skip to main content

Generate a self-contained offline HTML API reference for RouterOS

Project description

mikro-doc

Generate a self-contained offline HTML API reference for RouterOS.

Discovers the full RouterOS API tree from a live router via the REST interface, then produces a standalone HTML document (with search, sidebar navigation, pagination and example curl commands) and a Markdown reference — all usable directly from the file:// protocol without a web server.

mikro-doc --host H --user U --pass P [--store-credentials] [--output-dir DIR] [--endpoints] [--no-docs]
mikro-doc --schema PATH [--output-dir DIR] [--endpoints] [--no-docs]
mikro-doc PATH [--output-dir DIR] [--endpoints] [--no-docs]
mikro-doc --no-fetch [--host H|--schema PATH] [options]

⚠ BIG FAT WARNING

This tool will query your router (potentially hundreds of times) to discover the API structure. It is designed to be safe and non-intrusive, but the documentation it generates will include actual configuration information from your router (e.g. interface names, user names). Do NOT share the generated documentation publicy. It is for your eyes only. If you passed --store-credentials, the credentials will be stored in plaintext in the output JSON file for future use. You have been warned.

Output

<output-dir>/<router>.schema.json         — Full API schema (JSON)
<output-dir>/<router>.index.html          — Standalone docs page (works on file://)
<output-dir>/<router>.md                  — Markdown reference
<output-dir>/<router>_Endpoints.json      — Hierarchical endpoints tree (with --endpoints)
<output-dir>/<router>.log                 — Discovery log

Install

pipx install mikro-doc

This pulls from PyPI, creates an isolated environment, and installs the mikro-doc command and its dependencies. On macOS, pip without a virtual environment is blocked by system integrity protection; pipx is the recommended alternative.

To upgrade: pipx upgrade mikro-doc

Alternatives

  • pip3 install --user mikro-doc (works on most Linux, blocked on macOS)
  • python3 -m venv /path/to/venv && /path/to/venv/bin/pip install mikro-doc

Requirements

  • Python 3.7+

Bundled Data

mikro-doc.hints is bundled inside the package and provides example values for common RouterOS parameter types. Without it, placeholder values (<paramname>) will be used in curl examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mikro_doc-1.0.2.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mikro_doc-1.0.2-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file mikro_doc-1.0.2.tar.gz.

File metadata

  • Download URL: mikro_doc-1.0.2.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mikro_doc-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1f86a905a28297a9014c19eff4fe3857b2fa37bd80c9d2b089cb0f7216f2d7c4
MD5 4711db67bf7f39e4c0cc5d69a57d2bd9
BLAKE2b-256 b2927461d7684507143057c822594911946769797ce227bca8ec6136602f99a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mikro_doc-1.0.2.tar.gz:

Publisher: publish.yml on Munger/mikro-doc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mikro_doc-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mikro_doc-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mikro_doc-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2df599bc2abfc180a221443d98d7d395fa80739bf681e54f428de7e20269688f
MD5 f11740dc2187ad8a0903371c83186cc6
BLAKE2b-256 f95a07e550baf94f138b74dcc2ca31b2249737d7b04288447a891c6062d2c4e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mikro_doc-1.0.2-py3-none-any.whl:

Publisher: publish.yml on Munger/mikro-doc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page