Skip to main content

A Sphinx extension to add Prefect flow visualizations.

Project description

https://travis-ci.org/sphinx-contrib/sphinxcontrib-prefectviz.svg?branch=master

A Sphinx extension to add Prefect flow visualizations.

Overview

This Sphinx extension allows you to add your prefect flow visualization into your Sphinx documentation using a single directive.

Installation

The best way to install this extension is to install it via PyPi:

pip install sphinxcontrib-prefectviz

Configuration

Add 'sphinxcontrib.prefectviz' to the extensions list in conf.py.

extensions = [ 'sphinxcontrib.prefectviz' ]

Usage

Long story short:

.. flowviz:: module.submodule.flow

An example:

First of all, you have to make sure that your prefect flow(s) can be imported by your Sphinx project. Let’s start with the following example, our prefect flow is in the same directory with the Sphinx project:

docs
├── _build
├── conf.py
├── index.rst
├── make.bat
├── Makefile
├── _static
├── _templates
└── flow.py

and the flow.py looks like:

from prefect import task, Flow

@tast
def hello_world():
    print("Hello world")

with Flow(name="foo") as f:
    hello_world()

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

sphinxcontrib-prefectviz-0.1.1.dev1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_prefectviz-0.1.1.dev1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib-prefectviz-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: sphinxcontrib-prefectviz-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sphinxcontrib-prefectviz-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 df6d90f1305a485871084d57180879761932e1a742b3e838ac7565947e49c4b4
MD5 46c8039f958372c07add303d0c2cb659
BLAKE2b-256 1b45d8455729ba453b01e5ccf4519c574ff8821d4bb572c503f795eb6a14d8d2

See more details on using hashes here.

File details

Details for the file sphinxcontrib_prefectviz-0.1.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: sphinxcontrib_prefectviz-0.1.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sphinxcontrib_prefectviz-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb29f40c0a791c02525bc78e89f14a2595dc72630c8a511cb00f2c6e0babc327
MD5 b02764b74fb66d2a99bed6f6e4c5e048
BLAKE2b-256 cc5883cd71cc90df96d8faa772d7c1f624324bde9f5bd92fc093445b87e29eb7

See more details on using hashes here.

Supported by

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