Skip to main content

Docrunner

A command line tool which allows you to run the code in your markdown files to ensure that readers always have access to working code.

What does it do?

Docrunner goes through your markdown file and runs any code in it, providing you safe testing for any markdown documentation. You can specify the path to the markdown file, along with other options, with flags.

Installation

Use the package manager pip to install docrunner.

pip install docrunner

QuickStart

docrunner --help

Language Specific Help

For help on a specific language, run:

docrunner <language> --help

Python Example

docrunner python --markdown-path example/example.md --multi-file

This command executes all python within example.md and does so by putting each snippet of python from this file into a separate file, and running each file. If you don't want each snippet in a separate python file, just remove the --multi-file option.

Contributing and Local Development

Please check the CONTRIBUTING guidelines for information on how to contribute to docrunner.

Supported Languages

  • Python - docrunner python --help
  • Javascript - docrunner javascript --help
  • Typescript - docrunner typescript --help
  • Dart - docrunner dart --help

Metadata

Release files for docrunner 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docrunner 0.1.8
File Size Uploaded Provenance Actions
docrunner-0.1.8.tar.gz 12.9 kB Without provenance Details for docrunner-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docrunner 0.1.8
File Interpreter ABI Platform Actions
docrunner-0.1.8-py3-none-any.whl Python 3 none any Details for docrunner-0.1.8-py3-none-any.whl

Total release size: 31.4 kB

Release files / docrunner-0.1.8.tar.gz

Download URL docrunner-0.1.8.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e7cca79218c0fe8c1f3f330f746eddfff0ee242ea7dc8ac947b6d5afcace630c
BLAKE2b-256 checksum
How to use checksums
c0259a7091eea9937067581ad612469c17148fe9bff481ae6b94da0550097388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.1 Windows/10

Release files / docrunner-0.1.8-py3-none-any.whl

Download URL docrunner-0.1.8-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c8f5e6ea8dd84b2b120a9979910b73b8851f4984f792e9768ea8e008b9eaf4c
BLAKE2b-256 checksum
How to use checksums
18aec4ce8e770369f6f5e96f4d218ec6492fa7f59de53a7f6bedc35d539d20cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.1 Windows/10

Security for docrunner 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page