Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Colight Site

Static site generator for Colight visualizations.

Converts .py files into markdown/HTML documents where:

  • Comments become narrative markdown
  • Code blocks are executed to generate Colight visualizations
  • Output is embedded as interactive .colight files

Usage

# Build a single file
colight-prose build src/post.py --output build/post.md

# Watch for changes
colight-prose watch src/ --output build/

# Initialize new project
colight-prose init my-blog/

File Format

.py files mix comments (markdown) with executable Python code:

# My Data Visualization
# This creates an interactive plot...

import numpy as np
x = np.linspace(0, 10, 100)

# The sine wave
np.sin(x)  # This expression generates a colight visualization

Pragma Directives

Control the output format and visibility of content using pragma comments:

File-level pragmas

Begin with hide-all-, at the beginning of the file:

# | hide-all-code

# Your content here...

Form-level pragmas

Place directly before a code block:

# | show-code
x = np.array([1, 2, 3])

Available pragmas

  • hide-code / show-code - Hide or show code blocks
  • hide-statements / show-statements - Hide or show Python statements (imports, assignments)
  • hide-visuals / show-visuals - Hide or show results/visuals
  • hide-prose / show-prose - Hide or show markdown prose (comments)
  • format-html - Output in HTML format
  • format-markdown - Output in Markdown format

Pragma formats

# %% hide-code          # Double percent format
# | show-visuals        # Pipe format
#| colight: hide-prose  # Legacy format (still supported)

Precedence

  1. Form-level pragmas (highest priority)
  2. CLI options
  3. File-level pragmas
  4. Defaults (lowest priority)

show-* pragmas always override corresponding hide-* pragmas.

Metadata

Release files for colight-prose 2025.7.3.dev202507251615

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

Source distribution (sdist)

Source distribution for colight-prose 2025.7.3.dev202507251615
File Size Uploaded Provenance Actions
colight_prose-2025.7.3.dev202507251615.tar.gz 150.8 kB Without provenance Details for colight_prose-2025.7.3.dev202507251615.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colight-prose 2025.7.3.dev202507251615
File Interpreter ABI Platform Actions
colight_prose-2025.7.3.dev202507251615-py3-none-any.whl Python 3 none any Details for colight_prose-2025.7.3.dev202507251615-py3-none-any.whl

Total release size: 218.6 kB

Release files / colight_prose-2025.7.3.dev202507251615.tar.gz

Download URL colight_prose-2025.7.3.dev202507251615.tar.gz
Size 150.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6acf879b702e371a682c6b3d5293f4e946f00ad560f88863fa66ebcea702b830
BLAKE2b-256 checksum
How to use checksums
c52103d2c8b8d385f5078c926821031628af73ebb74e73c9513584d2ae2cf34d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Release files / colight_prose-2025.7.3.dev202507251615-py3-none-any.whl

Download URL colight_prose-2025.7.3.dev202507251615-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ca43e0194ce36248f9d4566876207fd39fe504b5a58af8dbb1b1edd2725ca8f
BLAKE2b-256 checksum
How to use checksums
7d0010d3553bfe2a8c9aad13feecda623e40b0f28744772a64fb7219ea45cab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Security for colight-prose 2025.7.3.dev202507251615

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